Hi

I've got an error appearing when I try to create a new Panel on Drupal 5.5...

    * warning: ksort() expects parameter 1 to be array, null given in D:\web\xampp\htdocs\website\modules\panels\content_types\views.inc on line 81.
    * warning: Invalid argument supplied for foreach() in D:\web\xampp\htdocs\website\includes\form.inc on line 949.

Any help/ideas where to look would be appreciated
Dan

Comments

danmurf’s picture

I've also found that this message disappears when you add or enable a view in the Views module (5.x-1.6).
Dan

catch’s picture

Category: support » bug
Status: Active » Postponed (maintainer needs more info)

Yes, this happens when no views are enabled. I closed a few dups of this so leaving this one open, has it been fixed in 1.x-dev?

danmurf’s picture

I'm not sure about the dev version but I'm using 5.x-1.2

Thanks

sdboyer’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing in preparation for the release of Panels2 RC1. Updating to Panels 2 is the ultimate fix!

aks22’s picture

Just need to declare the array which is not declared.
$theme_options= array(); and $lang_options=array(); before the foreach loop.