Posted by chknlil on September 9, 2011 at 3:38am
2 followers
Jump to:
| Project: | Media Mover |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
When trying to uninstall s3 module:
Fatal error: Call to undefined function update_sql() in /home/hfckc260/public_html/sites/all/modules/media_mover/modules/mm_s3/mm_s3.install on line 45
This is a drop of a column:
/**
* Implements hook_uninstall().
*
* @return $ret
* Array
*/
function mm_s3_uninstall() {
$ret[] = update_sql("ALTER TABLE {files} DROP COLUMN s3_data");
Comments
#1
Calls to update_sql() are on lines 34 and 45 of the latest 7.x-dev
Obviously, update_sql() is a 6.x. function, not 7.x., use db_query instead.
I can roll a patch if necessary, but simply just replace those two calls to update_sql() with db_query();
Marking as critical because it prevents the enabling and use of the module.