Download & Extend

Call to undefined function update_sql in mm_s3 module

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

Title:Cannot uninstall s3» Call to undefined function update_sql in mm_s3 module
Component:Miscellaneous» Code
Priority:normal» critical

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.

nobody click here