It seems no problem to created a panel with a custom layout. And the contents of the panel can be displayed. But on the top of the panel page always displays the message below:

Notice: Undefined index: type in panels_flexible_panels() (line 258 of .../sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).

Any solution to fix it?

Comments

merlinofchaos’s picture

Status: Active » Needs review
StatusFileSize
new651 bytes

Hm. I've seen this happen before. It seems that somehow, during hte creation process of the layout, something went wrong and some kind of garbage value got inserted into its data. The missing 'type' is from that garbage.

Try this patch.

astra’s picture

It's fixed after adding the patch. Thanks!

merlinofchaos’s picture

Status: Needs review » Fixed

Committed and pushed. Thanks!

Status: Fixed » Closed (fixed)

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

  • Commit 9a216f6 on 7.x-3.x, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    Issue #1534446: Fix invalid data in a flexible layout without throwing a...