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

roryt2000’s picture

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.

cpugeniusmv’s picture

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.

roryt2000’s picture

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?

cpugeniusmv’s picture

I can't think of any reason that there would be unless you've manually set the log level higher.

roryt2000’s picture

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

cpugeniusmv’s picture

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.

roryt2000’s picture

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.

cpugeniusmv’s picture

Looks like audio, search_type, and flag_content.

roryt2000’s picture

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..

cpugeniusmv’s picture

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.

roryt2000’s picture

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..

dewolfe001’s picture

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.