Upgrading this module from 1.0 to 1.1. Ran update.php and got the following errors:

Invalid argument supplied for foreach() in /home/arbobeh7/public_html/shoshana/update.php on line 338.

array_merge() [function.array-merge]: Argument #2 is not an array in /home/arbobeh7/public_html/shoshana/update.php on line 174.

CommentFileSizeAuthor
#4 jquery ui dialog update error.png10.99 KBJimBehr

Comments

eugenmayer’s picture

Status: Active » Closed (fixed)

Well as you probably see, i cant see anything with this bugreport. I cant even see if this is related to the module.

JimBehr’s picture

I'm sorry. What other information would be helpful?

eugenmayer’s picture

Status: Closed (fixed) » Active

No need to be sorry. I was a bit harsh.

Well did you update / install any other plugins at the same time probably? I will check what those methods are implementing, but its rather hard to gues what could go wrong without any details

JimBehr’s picture

StatusFileSize
new10.99 KB

I had some time so I redid the update on another computer. I was more careful to make sure that no other modules were updating. I got the same result. Please see screen shot.

JimBehr’s picture

According to http://drupal.org/node/284311, "Update functions HAVE to return an empty array". So I retried the update with the following modification in jquery_ui_dialog.install:

function jquery_ui_dialog_update_6010() {
// just be sure that as we introduced "install" later, all other people get this weight update
db_query("UPDATE {system} SET weight = 1 WHERE name = 'jquery_ui_dialog'");
return array();
}

And now the update runs with no errors.

eugenmayer’s picture

Status: Active » Fixed

JimBehr: Thank you a lot, i was not aware of this! Will be fixed in the next release

eugenmayer’s picture

released in 1.2

eugenmayer’s picture

Status: Fixed » Closed (fixed)