On our site, we have Drupal installed to one database, and CiviCRM installed to another.
Drupal's cron.php appears not to like this.
Type: cron
Date: Wednesday, 20 September, 2006 - 8:30pm
User: Anonymous
Location: /cron.php
Message: Last cron run did not complete.
Severity: warning
Hostname: 72.36.128.236
The PHP error log has three entries per cron run, which seem to show that it's trying to write to three tables (watchdog, role, sessions) in the CiviCRM database (thudcrm) that only exist in the Drupal database (thudsite).
My guess then is that cron.php is making assumptions about the currently active database.
Is this correct, and if so, is there a fix?
Error messages are:
[20-Sep-2006 14:43:08] PHP Fatal error: Table 'thudcrm.watchdog' doesn't exist
query: INSERT INTO watchdog (uid, type, message, severity, link, location, hostname, timestamp) VALUES (6, 'php', 'Table 'thudcrm.role' doesn't exist\nquery: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid INNER JOIN users_roles ur ON ur.rid = r.rid WHERE ur.uid = 6 in /var/www/html/civicspace-dark/includes/database.mysql.inc on line 66.', 2, '', '/cron.php', '90.192.153.37', 1158781388) in /var/www/html/civicspace-dark/includes/database.mysql.inc on line 66
[20-Sep-2006 14:43:08] PHP Fatal error: Table 'thudcrm.sessions' doesn't exist