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
Comment #1
enzipher commentedI 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:
I have not tried any fix.
Cheers
Comment #2
allie mickaThis is a duplicate of #646580
Thanks!