Closed (fixed)
Project:
XML sitemap
Version:
6.x-2.x-dev
Component:
xmlsitemap.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2010 at 13:55 UTC
Updated:
18 Jan 2011 at 00:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Greg Sims commentedI disabled custom and the behavior appears the same.
Comment #2
andrewfn commentedI am getting exactly the same. And now every cron run fails with "exceeded the time limit and was aborted"
Comment #3
dave reidCould I have both of you go to admin/reports/status/php on your site and report back the following values:
memory_limit
max_execution_time
Also if you can lookup your server's timeout as well (for Apache servers it's usually in httpd.conf)
Comment #4
andrewfn commentedPHP memory limit 64M
max_execution_time 30 (although cron aborts within less than a second)
from httpd.conf:
Timeout 120
Also, I added the cron debugging line into my modules.inc to log every cron hit. Here is the result (obviously newest events at the top)
cron 5:10pm Cron run exceeded the time limit and was aborted. Anonymous
cron 5:10pm hit xmlsitemap cron Anonymous
cron 5:10pm hit xmlsitemap_taxonomy cron Anonymous
cron 5:10pm hit xmlsitemap_node cron Anonymous
cron 5:10pm hit xmlsitemap_menu cron Anonymous
cron 5:10pm hit ad_cache_file cron Anonymous
cron 5:10pm hit ad cron Anonymous
cron 5:10pm hit update cron Anonymous
cron 5:10pm hit system cron Anonymous
cron 5:10pm hit statistics cron Anonymous
cron 5:10pm hit search cron Anonymous
cron 5:10pm hit node cron Anonymous
cron 5:10pm hit filter cron Anonymous
cron 5:10pm hit dblog cron Anonymous
cron 5:10pm hit googleanalytics cron Anonymous
cron 5:10pm hit date_timezone cron Anonymous
Comment #5
Greg Sims commentedmemory_limit = 96M
max_execution_time = 30
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 120
I am also seeing an immediate abort of cron so the timeouts don't seem to be a factor here.
Comment #6
andrewfn commentedI made a clone of the site and gradually removed things to see what was causing the problem.
I deleted every node and removed every non-core module except xmlsitemap and the problem was still there!
The server is a standard CentOS 5.4 running php 5.16
(I am using the current Acquia distribution).
Comment #7
Anonymous (not verified) commentedDoes the following command show anything interesting? Cron didn't timeout because it runs for 240 seconds before timing out. Maybe a database lock issue?
mysqladmin processlist -u root -pComment #8
Greg Sims commentedI performed a SHOW PROCESSLIST. It only has one entry which is the process of the SHOW PROCESSLIST request itself.
Comment #9
andrewfn commentedSame for me
Comment #10
andrewfn commentedSteps to reproduce:
-create new drupal 6.16 installation
-add xmlsitemap 6.x-2.x-dev (today's version)
-enable just the xmlsitemap
-try and rebuild links and it will fail
Server is a stock Centos 5.4 (which uses php 5.16)
The apc accelerator is installed
Comment #11
andrewfn commentedI ran the same steps as above on another server which has the CentOS customized so that php 5.26 is installed
No error!
Comment #12
dave reidCan you try disabling APC on the PHP 5.16 server? Can you check the server's error logs?
Comment #13
andrewfn commentedLooked at the httpd error_log
Now we are getting somewhere!
PHP Fatal error: Call to undefined function memory_get_peak_usage() in /opt/dr6/jazz/trunk/modules/xmlsitemap/xmlsitemap.generate.inc on line 140Comment #14
dave reidAh indeed. I can fix that. :)
Comment #15
srobert72 commentedSame error. Subscribing.
Comment #16
dave reidCommitted a fix to CVS. Feel free to retest from CVS or whenever the dev build is repackaged.
Comment #18
andrewfn commentedThe problem has re-appeared with a different error in the apache log:
PHP Fatal error: Call to undefined method XMLSitemapWriter::writeRaw() in /modules/xmlsitemap/xmlsitemap.xmlsitemap.inc on line 58I am using php 5.1.6
Comment #19
andrewfn commentedAfter googling around for a solution, I found this code which provides a fallback method for writeRaw when running under php 5.1.6. I added it to end of the class XMLSitemapWriter in xmlsitemap.xmlsitemap.inc and it works perfectly--XML sitemaps will now build.
Comment #20
andrewfn commentedHere is a patch for the above code
Comment #21
andrewfn commentedRenaming issue to a more accurate and informative title
Comment #22
srobert72 commentedSame errors since fews days :
But I use PHP 5.2.4.
Comment #23
dave reidComment #24
andrewfn commentedTested on several servers and it works for me.
Comment #25
Remon commentedComment #26
dave reidCommitted to CVS.
http://drupal.org/cvs?commit=473580