This error happens when hook_update_N() does not return an array. This caused by this:

Quick fix:

/**
 * See if Panels needs to operate in legacy rendering mode, and produce a
 * warning if it does.
 */
function panels_update_6307() {
+  return array();
}

Comments

vikingew’s picture

Status: Needs review » Needs work

Full warning returned:

    * warning: array_merge() [function.array-merge]: Argument #2 is not an array in /path/to/update.php on line 174.
    * warning: Invalid argument supplied for foreach() in /path/to/update.php on line 338.

it also produces this message in the status report:

Panels operating in Legacy mode	
Panels is operating in Legacy mode due to the following issues: 

The above quick fix removes the warning but status report still report that "Panels operates in Legacy mode ..." so more work needs to be done.

merlinofchaos’s picture

Status: Needs work » Needs review

The legacy mode warning indicates you have styles that are not updated to the newest format. Since the newest format is currently only in -dev, this is not at all unexpected. That isn't related to this patch at all.

vikingew’s picture

Status: Needs review » Reviewed & tested by the community

Ok in such case I would say it's rtbc

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

This got rolled in during a larger commit.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.