简体   繁体   English

xml 站点地图错误 class 页面上下文在 laravel

[英]xml sitemap Error class PageContext in laravel

I am making some site map for my site its is work correctly, but at now I have some problem in my sitemap我正在为我的网站制作一些网站 map 它工作正常,但现在我的网站地图中有一些问题

<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>

I get error:我得到错误:

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') 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); 让 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'. ZC1C425268E68A385D1AB5074C17 () { self;onUrlChange(); }). } onUrlChange() { this.client;emitToBg('URLS_SAFE_CHECK__CONTENT_URL_REWRITED'); } })('MARIO_POST_CLIENT_eppiocemhmnlbhjplcgkofciiegomcon')

I had the same issue, it was because of a browser extension (in my case Urban VPN).我遇到了同样的问题,这是因为browser extension (在我的例子中是 Urban VPN)。

The problem went away after disabling the extension.禁用扩展后问题就消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM