deleting rule leading to query error message & db
miro_dietiker - August 5, 2008 - 08:26
| Project: | Meta Tags by Path |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Shannon Lucas |
| Status: | closed |
Jump to:
Description
When deleting a rule in admin "By Path" tab
/admin/content/nodewords/path
It always throws an error like:
user warning: Unknown column 'id' in 'where clause' query: DELETE FROM nodewords_bypath_tags WHERE id = 1 in /home/sites/lz/web/includes/database.mysql.inc on line 172.
This is due to nodewords_bypath.forms.inc @235
db_query('DELETE FROM {nodewords_bypath_tags} WHERE id = %d', $id);
which should be path_id instead of id.
thus leading to nodewords_bypath_tags to contain orphans.

#1
This is corrected in 5.x-1.2.
Thanks for catching this one!
#2
#3
Automatically closed -- issue fixed for two weeks with no activity.