HELP! common.inc fatal errors after applying settings.php patch for a 5.7 drupal install

fewdisc - April 14, 2009 - 15:16

Folks, I am at the end of my abilities to solve this problem. I get some iteration of this error: Call to undefined function file_directory_path() in /includes/common.inc on line 1465 or line 1559. The effect without the logging turned on is site-wide WSOD - I haven't had any success when running http://www.mysite.com/update.php. This isn't an upgrade, i added a module op_video and got this fatal error. I have used the database to enable/disable modules in the system table, but haven't had any success.

After making any of these changes, I have cleared the cache. I have followed the settings.php advice on the forums, the .htaccess settings http://drupal.org/node/256410, the WSOD recommendations from http://drupal.org/node/419672 and http://drupal.org/node/158043. Anyone who can help, I have a production site down for 4 days now, and I am stuck in my efforts at this point.
Referencing the annotated common.inc, http://cvs.drupal.org/viewvc.py/drupal/drupal/includes/common.inc?annota..., I can't seem to find a way to solve the problem.

Watchdog log

fewdisc - April 14, 2009 - 16:31

noticed this: em>You have an error in your SQL syntax near '(NOW(), b.last_reminder) AS date_diff FROM users a LEFT JOIN account_reminder b ' at line 1
query: account_reminder_cron
SELECT a.*, b.msg_cnt, DATEDIFF(NOW(), b.last_reminder) AS date_diff FROM users a LEFT JOIN account_reminder b ON b.uid=a.uid WHERE a.access=0 AND a.uid!=0 AND status=1 in /mnt/webhosting/sites/w/walax.com/includes/database.mysql.inc on line 172.

and after looking, that appears to be referencing this line, trigger_error(check_plain(mysql_error($active_db) ."\nquery: ". $query), E_USER
_WARNING);

have applied the DB_backtrace_26 and Drupal_useful_DB_query_errors patches...

fixed it

fewdisc - April 20, 2009 - 15:53

copying over an older version of my .inc files in the /includes directory worked like a charm. In case anyone else has this problem.

 
 

Drupal is a registered trademark of Dries Buytaert.