Closed (fixed)
Project:
XML sitemap
Version:
6.x-1.1
Component:
Other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2009 at 19:24 UTC
Updated:
10 Feb 2010 at 00:50 UTC
I'm a trying to get Drupal to run a new VPS server. Everything runs well except the sitemap and redirecting after a manual cron run. Does anybody know what php.ini or apache configuration might cause the xml sitemap to not be called? It works when the php handler is dso, but that causes the file permissions to mess up. So I have to run suphp. Then it doesn't allow the sitemap or cron redirect to work. It might have something to do with drupal_goto(). I don't know.
Comments
Comment #1
dave reidPlease explain what you mean by redirecting after a manual cron run.
Comment #2
Adam S commentedI started opening files to see what is going on searching for clues. Here is what I have found so far.
I click on the link in the admin/report/status menu that links to http://example.com/admin/report/status/run-cron.
I searched that database in the menu_router table for admin/report/status/run-cron. It loads loads the file system.admin.inc and calls the function system_run_cron() which in turn calls the function drupal_goto(admin/system/status).
Cron actually runs successfully. Something happens with the drupal_goto(admin/system/status) function. It does not redirect me to http://example.com/admin/system/status . Instead it throws a page not found error.
The other place that I get the problem with a page not found error is when I use the http://example.com/sitemap.xml .
I know that is probably is not the right place to be asking the support question, it's a server configuration problem, but someone might know based on this information what's going on.
Comment #3
Adam S commentedI just rebuilt the server and migrated the site again. Cron didn't work and neither did xmlsitemap on the first go. I thought it was interesting that it said cron ran successfully after I tried to view the sitemap then it wrote 'page not found.' So I tried again. This time I got a 500 internal error trying to view the sitemap. I tried again and it works. Weird. So, this is not a sitemap issue. I'm going to close it.
Thanks for reading this anyway.
Comment #4
jenlamptonI'm having the same issue on a Linux VPS. What did you do to solve the problem?
Jen
Comment #5
Adam S commentedI really don't remember the problem. However, that period must have been the worst three weeks in my life. We eventually moved to hotdrupal.com .
Comment #6
jenlamptonHah, I've been with Holistic Solutions (hotdrupal.com) for some time, and I'm experiencing this problem. I did however find this post: http://drupal.org/node/485432 which suggests upgrading XMLsitemap to the 2.x branch for performance reasons. I suspect I was running out of memory in PHP and that's why I'm getting the 404.
I've upped my memory to 128M and upgraded the module. (The upgrade process was not smooth, I generated tons of SQL errors by running update.php, and in the end decided to disable and uninstall the 1.x branch and install the 2.x branch fresh)
Jen
Comment #7
dave reidYeah its most likely a memory issue. Sometimes PHP has weird ways of saying its out of memory.
Comment #8
dave reidIf you're running into a memory problem during cron, your best bet is to move up to the 2.x version. There's not much we can do here.