XF 2.1 Sitemap N/A

ehd

Well-known member
After upgrading from 1.5 to 2.1.1 I checked the sitemap.

It usually took around 4 minutes to generate. After the update the first automatic generation shows no end-date, just "N/A"

I manually started the cron, but also "N/A" appears for the end-date.

When checking directly, it shows:
<lastmod>2019-03-29T05:40:04+00:00</lastmod>

There is no entry in the error-log: /forum/admin.php?logs/server-errors/

Any idea what might have happened?

Thanks!
 
After further investigation back a the pc I found out that the generation of the sitemap was interrupted.

There was a temp-sitemap-1554235829-6.xml and the tmp-sitemap it stopped at the same URL every time the sitemap-creation stopped.

So it was a media item which caused the problem. Checked the old sitemap for the URLs, which came next after that one but were no corrupted images or images with problems. I even deleted the next album. But this the error persisted.


When the sitemap failed, I got this.
ErrorException: Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 274432 bytes) src/XF/Db/Mysqli/Statement.php:125


Stack-Trace
#0 [internal function]: XF::handleFatalError()
#1 {main}



array(4) {
["url"] => string(30) "/forum/admin.php?tools/run-job"
["referrer"] => string(61) "https://xxx/forum/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(71) "https://xxx/forum/admin.php?tools/rebuild&success=1"
["_xfToken"] => string(8) "****"
["only_ids"] => string(4) "4706"
}
}

Nothing in the server's error.log, even when the browser showed an error 500.

Then I started to rebuild everything in the media gallery: admin.php?tools/rebuild

Same error. Then I excluded the media-items from the sitemap. That worked now.

How can I find out which is the culprit?
 
Last edited:
Top Bottom