Closed (won't fix)
Project:
Drupal core
Version:
x.y.z
Component:
other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2005 at 02:59 UTC
Updated:
7 Oct 2005 at 17:03 UTC
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
Comment #1
ax commentednot 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?
Comment #2
thinkinkless commentedthanks 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:
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.