Here's the error popping up on install (WAMP/Windows XP):
Fatal error: Call to undefined function update_sql() in messaging_simple.install on line 62

I have uninstalled Drupal 7 previously and reinstalled because of this. Can you provide any insight? Thanks in advance.

CommentFileSizeAuthor
#4 1401616-replace-update_sql.patch1.02 KBvalthebald

Comments

digibrill’s picture

Another error on running update.php

Failed: DatabaseSchemaObjectExistsException: Table messaging_simple already exists. in DatabaseSchema->createTable() (line 652 of C:\wamp\www\includes\database\schema.inc).

jlea9378’s picture

I just saw the first error you mentioned when trying to upgrade from Messaging 6.x-2.4
to Messaging 7.x-1.0-alpha2+1-dev (2012-Mar-04).

digibrill’s picture

I am not running it any longer.

valthebald’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.02 KB

Attached patch solves the issue

danepowell’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed, #4 fixes this error.

rsbecker’s picture

I hate to reopen this, but #4 doesn't fix the problem after migrating from D6 because there does not appear to be a language field in the messaging_store table. When I deleted that field from the fix it worked. It is possible some D6 versions of messaging had the field, I guess.

mermentau’s picture

Status: Reviewed & tested by the community » Needs work

I found the same problem as #6 with the language field as I too am upgrading from Drupal 6. In addition in my code I found that in my version 6 code for the module the messaging_store table had the first field named mqid where the 7 version of the module needs mgid for the field in the messaging_simple table.

www.ePortfel.com’s picture

Issue summary: View changes

I confirm above problems with installing on Drupal 7.26.

To install the module I added language column to messaging_store as fifth column of definition:

`language` varchar(12) NOT NULL default '''''' COMMENT 'Language code.'

I also replaced all 'mgid' references in module to be 'mqid'.

Then it installed successfully, however I am afraid to activate and use so unreliable version.

damienmckenna’s picture

damienmckenna’s picture

Title: Error on install » Errors upgrading from D6

Clarifying that this only affects upgrading a site from D6, it won't affect a site that was never upgraded from D6 and never had the module installed before.