follow-up from a forum discussion: http://drupal.org/node/32986

i don't know how to submit a patch (yet), but here's the issue and fix:
running cron.php cvs version produces
Fatal error: Call to undefined function: db_lock_table() in /blah-blah/includes/bootstrap.inc on line 235

changed incorrect path (line 9):
include_once './includes/bootstrap.inc';
to:
include_once 'includes/bootstrap.inc';

added missing ?> to end of doc and cron is fine.
can someone more experienced than i submit a patch?

Comments

ax’s picture

Priority: Critical » Normal
Status: Active » Closed (won't fix)

not a bug / works for me. WON'T FIX if it cannot be reproduced.

which php version are you using? cgi, apache1/2 module, ...?
how do you invoke cron.php?

thinkinkless’s picture

thanks for the reply.
i think it's simple - the path:
./includes/bootstrap.inc
implies a root install. that's not the case with us.
imHo if the code is to stay this way there should be a change in the readme/install.txt to let people know about changing the path as part of the install process.
i saw in some other forums that the ?> tag was being removed from a lot of files? i don't know why (still getting a handle on the code) but assume it's intentional. when i get a chance later i will remove that php close tag and reset cron to see if any other errors pop up.

to answer your other questions, i invoke cron.php with crontab:

32 * * * * /usr/bin/nice -20 /usr/local/bin/wget http://mysite.com/mydir/mycron.php

web host is pair.com running: freeBSD; apache; mysql; PHP Version 4.3.10 (NOT cgi wrapped)

if there's something i can test further please let me know.