Closed (fixed)
Project:
Drupal core
Version:
6.6
Component:
aggregator.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2008 at 09:21 UTC
Updated:
25 Jul 2011 at 12:02 UTC
In function "aggregator_save_category" in aggregator.module when you insert aggregator category you are trying to get the last insert id from nonexisting database table:
db_query("INSERT INTO {aggregator_category} (title, description, block) VALUES ('%s', '%s', 5)", $edit['title'], $edit['description']);
$link_path .= db_last_insert_id('aggregator', 'cid');
$op = 'insert';
As you see the table is : "aggregator_category" so you need to call db_last_insert_id('aggregator_category', 'cid');
Comments
Comment #1
dpearcefl commentedIs this still an issue using current Drupal 6?
Comment #2
vflirt commentedLooks fixed. It is easy to check in the aggregator.module file in the release you donwloaded.
Comment #3
dpearcefl commented