Hi,
I've just install Panels 6.x-2.0-alpha3 with Export Options
And when I go on Panels Export page I have this error :

* warning: Invalid argument supplied for foreach() in /var/www/website/sites/all/modules/panels/panels_export/panels_export.module on line 114.
* warning: Invalid argument supplied for foreach() in /var/www/website/sites/all/modules/panels/panels_export/panels_export.module on line 114.

I don't know why :(
Do you have an idea ?
Thanks a lot ;)

Bye

Comments

pydubreucq’s picture

Nothing to help ?

SDM-MINK’s picture

I have the same problem. How did you resolve this? Any advise would be very helpful!

Mr.W.A.C.’s picture

Ditto! I also get other errors setting up Panel Pages. Will post as new errors though.

chx’s picture

The problem is that panels_mini returns NULL instead of an array and this does not work too well with panels_export. I will roll a proper patch later, in panels_export_export you want to have

  foreach (module_implements('panels_exportables') as $module) {
    $function = $module . '_panels_exportables';
    $list = $function('list');
    if ($list) {
      $exportables[$module] = $list;
    }
  }

to avoid the error message.

Edit: This bug report update is sponsored by ifvnews.com.

chx’s picture

Status: Active » Closed (duplicate)