When a table prefix is used (the $db_prefix setting in conf.php), notify.module generates errors when cron is run and a new node has been created.
Here is an example:
To: webmaster@ctiaustin.org
From: root@s9008.hostcentric.net (Cron Daemon)
Subject: Cron <user@s9008> bin/drupal-periodic
Date: 29 Jun 2004 19:36:01 -0000
user error: Table '77611_1.page' doesn't exist
query: SELECT nid FROM page WHERE nid = 24 AND format = 1 in /data/sites/4043/ctiaustin.org/www/new/includes/database.mysql.inc on line 97.
Notice that it is trying to query table page rather than prefix_page.
Attached is a patch that appears to fix the problem.
| Comment | File | Size | Author |
|---|---|---|---|
| notify-prefix-botch.patch | 1.52 KB | chip |
Comments
Comment #1
junyor commentedThis patch is included in the notify.module in my sandbox.
Comment #2
killes@www.drop.org commentedThe offending code was removed from the cvs version due to filter.module improvements.