【问题标题】:xml sitemap Error class PageContext in laravellaravel中的xml站点地图错误类PageContext
【发布时间】:2020-10-05 21:21:06
【问题描述】:

我正在为我的网站制作一些站点地图,它工作正常,但现在我的站点地图有一些问题

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.rosena.ir/sitemap.html</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=pro</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=cat</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=brand</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=en</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
<sitemap>
<loc>https://www.rosena.ir/sitemap_filter.xml?do=ptag</loc>
<lastmod>2020-06-16</lastmod>
</sitemap>
</sitemapindex>

我得到错误:

new (class PageContext { constructor(clientKey) { this.client = window[Symbol.for(clientKey)]; this.bindEvents(); } bindEvents() { const self = this; history.pushState = (f = > function pushState() { const ret = f.apply(this, arguments); self.onUrlChange(); return ret; })(history.pushState); let firstReplaceEvent = true; history.replaceState = (f => function replaceState (params) { var ret = f.apply(this, arguments); if (!firstReplaceEvent) { self.onUrlChange(); } firstReplaceEvent = false; return ret; })(history.replaceState); window.addEventListener('hashchange ', function () { self.onUrlChange(); }); } onUrlChange() { this.client.emitToBg('URLS_SAFE_CHECK__CONTENT_URL_REWRITED'); } })('MARIO_POST_CLIENT_eppiocemhmnlbhjplcgkofciiegomcon')

【问题讨论】:

  • 我在使用站点地图时遇到了同样的问题。对此有任何修复吗?
  • 对此的修复有任何更新吗?
  • 请分享更多细节,比如您面临的错误。您发布的内容看起来像 JS 代码 - 这与站点地图有什么关系?

标签: php laravel xml-sitemap


【解决方案1】:

我遇到了同样的问题,这是因为 browser extension(在我的情况下是 Urban VPN)。

禁用扩展程序后问题消失了。

【讨论】:

    猜你喜欢
    • 2020-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-14
    • 2019-01-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多