The following error occurs when cron runs with metering module enabled
Fatal error: Call to undefined function db_fetch_array() in /Applications/MAMP/htdocs/d7-clanavi/sites/default/modules/cloud/modules/cloud_metering/cloud_metering.inc on line 2393
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1810568-2.patch | 2.19 KB | baldwinlouie |
Comments
Comment #1
e_oliver commentedHi I'm getting the same error. You can change db_fetch_array() to mysql_fetch_array() as per Drupal 7 syntax. But now there's a different error: Fatal error: Call to undefined function db_placeholders() in sites\all\modules\cloud\modules\cloud_metering\cloud_metering_queue_db.inc on line 246
Not sure how to fix calls to db_placeholders() under Drupal 7, as it is now a deprecated function.
Any help is greatly appreciated.
Comment #2
baldwinlouie commentedHere's a patch that fixes these two database errors. The code is checked into head also.
http://drupalcode.org/project/cloud.git/commit/c5230ea
Comment #3
baldwinlouie commentedThe fix was to convert the queries to db_select and use D7 code conventions.
Comment #4
e_oliver commentedWow I was stuck on this for hours, applied your patch and everything works now!
Thanks again.
Comment #5
e_oliver commentedImpressive work!
Comment #6
baldwinlouie commentedComment #7
baldwinlouie commentedClosing