By roryt2000 on
I can no longer run cron.php on my site. Usually I'd reindex the search, then direct it to cron.php and it would usually re-index everything no problem. Well, lately it's been taking me to 'Page Not Found' and I can no longer do anything with it. Help?
Comments
Just tried replacing
Just tried replacing cron.php and bootstrap.inc and now it brings me directly to a blank page (which it usually did, but after a minute or so) and does nothing at all. It says cron complete in the log entries, but my search had not been indexed and since it did it instantaneously, it obviously did nothing.
Do you have access to your
Do you have access to your webserver's error log? There might be a PHP error there that could indicate the source of the problem.
Yes, I do have the error
Yes, I do have the error log. I'll go ahead and post it, but is there any information such as passwords or anything that I might need to remove first?
I can't think of any reason
I can't think of any reason that there would be unless you've manually set the log level higher.
(No subject)
Well, it's not letting me just post it here so download the txt straight from my site:
http://www.gamecollision.com/error_log.txt
It looks like there are a
It looks like there are a few syntax errors in some of your installed contributed modules. Make sure you have the latest versions and if those don't fix the problem, I can help you fix those errors.
I did forget to mention that when you go to cron.php in your web browser it's supposed to show up as a blank page. But I think there's definitely something wrong since it's not indexing.
Which modules, in
Which modules, in particular, are having the problems? I'll try and update all the ones I can.
What's weird is that it's been working perfectly fine and then all of a sudden it stopped working, when I hadn't even installed any modules or made any changes. It did usually go to a blank page after manually running cron.php and everything would be indexed, but now it's doing the whoel 'Page not found' thing and isn't indexing things. It's like it happened out of nowhere.
I'll try to update them all and then I'll repost the error log.
Looks like audio,
Looks like audio, search_type, and flag_content.
All those modules are up to
All those modules are up to date.
Do you think maybe it could be an issue with my webhost? I mean I really don't see what the problem could possibly be, I changed absolutely nothing when it stopped working..
I suppose it's possible. You
I suppose it's possible. You could try setting up a new drupal site in another directory and see if cron is able to run.
What else do you think it
What else do you think it could be? I mean, I didn't touch a single file before this started happening so the whole thing just doesn't make any sense..
My Problem
What I found was happening:
When cron runs it loads the nodes to index the active nodes. I had PHP code enabled as an input filter. I also had customerror running to handle 404s.
When it loads a node containing PHP code, it executes that code.
In my case I had a node_goto() calling a non-existent page. When it got to that, it stopped in its tracks. The 404 produced an unfindable page. The customerror produced "page not found" and then did a PHP exit() to prevent the expensive theming from firing.
I found the offending node_goto() and repaired it.