Version: 6.x-1.0-alpha3
Multilingual site
Upgrading from 5.22 to 6.16

Here is what I kept getting when I ran update.php: for send module: 6001
Updating

An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page
An error occurred. http://db.comminit.com/update.php?id=38&op=do
Fatal error: Cannot use object of type stdClass as array in /home/svn-working/drupal/branches/6.16-db-only-sites/all/modules/send/send.install on line 539

Line 539 of send.install:
$templates[$hash]['rows'][] = $row;

It looks to me like the casting of the $template to an object on line 529 causes 539 to fail due to object /array mixing:
$template = (object) array(

So, I changed 536 to:
//$templates[$hash] = $template;
$templates[$hash][] = $template;

The next update.php worked, but I am not sure if there will be any fallout

Comments

enzipher’s picture

I can confirm that this is still an issue, only difference is that I upgrade to 6.17, and the issue actually seems to be fore update #6002.

Got this message after the update script had finished:

The update process was aborted prematurely while running update #6002 in send.module. All errors have been logged. You may need to check the watchdog database table manually.

I have not tried any fix.

Cheers

allie micka’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #646580

Thanks!