Just started getting this error today. Not a fresh install but rather new Omega4 sub-theme where I've only prepped for panels layout by setting up my sass variables and no content yet.

Here's the whole error:

Notice: Undefined index: icon in panels_print_layout_icon() (line 1098 of /var/www/##FOO##/sites/all/modules/panels/panels.module).

// @layout
function panels_print_layout_icon($id, $layout, $title = NULL) {
  ctools_add_css('panels_admin', 'panels');
  $file = $layout['path'] . '/' . $layout['icon']; //THIS IS LINE 1098
  return theme('panels_layout_icon', array('id' => $id, 'image' => theme('image', array('path' => $file, 'alt' => strip_tags($layout['title']), 'title' => strip_tags($layout['description']))), 'title' => $title));
}

Just wondering if anyone knows what this is and is it important?

Cheers,
Michael

Comments

milfguy’s picture

I am also having this warning and wondering the same thing. Mine is on a fresh install of drupal with a very basic omega4 sub theme set up. Identical issue as Michael.

fchandler’s picture

I got this same error today, Omega 4 subtheme. Could have copied milfguy's comment exactly

Blooboi’s picture

If you guys are using a layout, add this line (preview = preview.png) to your .inc file. Even if you don’t have a preview file the error should go away. Your .inc file should look like what’s below.

name = Test
description = The test page layout
preview = preview.png
template = test-layout
bradjones1’s picture

Status: Active » Fixed

#3 works and this filed as a support request and not a bug/code change, so I'm marking fixed.

honx’s picture

where is this .inc file i have to edit?

Status: Fixed » Closed (fixed)

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