Active
Project:
Shadow - SQL queries / views optimization
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2012 at 15:47 UTC
Updated:
19 Sep 2012 at 04:32 UTC
Jump to comment: Most recent
Comments
Comment #1
marcustan138 commentedI am having the same problem here. Running core 6.26. Whenever a node is added or updated, the site complains abt http 500 error. Checking the httpd-error.log file reveals this "PHP Fatal error: Call to undefined function db_select() in /kk/sites/all/modules/shadow/shadow.index.inc on line 262.
Any solution in site?
Comment #2
suhas448 commentedshadow.index.inc used drupal 7 style of db query. Here i rewrite as drupal 6 style.
I hope this will work.
/*
$tids = db_select('shadow_table', 't')
->fields('t', array('tid'))
->condition('t.base_table', $base_table)
->execute()
->fetchCol();
*/
$qry = db_query("SELECT tid FROM {shadow_table} WHERE base_table='%d'",$base_table);
while($result=db_fetch_array($qry)){
$tids[]=$result['tid'] ;
}