Please review
#1435264-23: Xml stops working Uncaught exception 'XMLSitemapGenerationException' error
#1435264-34: Xml stops working Uncaught exception 'XMLSitemapGenerationException' error
Original Issue
XMLSitemap was working fine with 6.x-2.0-rc1 generating two pages (links are more than 10.000)
Some day i noticed there was an error preventing cron to finish.
Unknown error occurred while writing to file sites/default/files/xmlsitemap/NXhscRe0440PFpI5dSznEVgmauL25KojD7u4e9aZwOM/1.xml. στο αρχείο /var/www/vhosts/moriasnow.gr/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.generate.inc στη γραμμή 158.
also i found this in apache's error log:
2012-02-10 09:42:17.497 [NOTICE] [194.219.230.130:57503-0#APVH_moriasnow.gr] [STDERR] PHP Fatal error: Uncaught exception 'XMLSitemapGenerationException' with message 'Unknown error occurred while writing to file sites/default/files/xmlsitemap/NXhscRe0440PFpI5dSznEVgmauL25KojD7u4e9aZwOM/1.xml.' in /var/www/vhosts/moriasnow.gr/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.xmlsitemap.inc:162
Stack trace:
#0 /var/www/vhosts/moriasnow.gr/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.generate.inc(155): XMLSitemapWriter->endDocument()
#1 /var/www/vhosts/moriasnow.gr/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.generate.inc(338): xmlsitemap_generate_page()
#2 /var/www/vhosts/moriasnow.gr/httpdocs/includes/batch.inc(189): xmlsitemap_regenerate_batch_generate(Object(stdClass), 1)
#3 /var/www/vhosts/moriasnow.gr/httpdocs/includes/form.inc(2550): _batch_process()
#4 /var/www/vhosts/moriasnow.gr/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.module(1436): batch_process()
#5 /var/www/vhosts/moriasnow.gr/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.module(222): xmlsitemap_run_unprogressive_batch('NXhscRe0440 in /var/www/vhosts/moriasnow.gr/httpdocs/sites/all/modules/xmlsitemap/xmlsitemap.xmlsitemap.inc on line 162
I downloaded the 6.x-2.x.-dev version with the same errors.
Disabling XMLSitemap module (and uninstalling) seems to work fine again but when the xml file gets bigger with cron jobs, the problem comes again. (for rc1 and dev version also)
Trying to rebuild sitmapxml file, the batch proccess never ends successfully.
Any ideas ?