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");

CommentFileSizeAuthor
#2 media_mover-n1273846-2.patch1.6 KBdamienmckenna

Comments

coderintherye’s picture

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.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.6 KB

This should resolve the problem, though I've not tested it yet.