Closed (fixed)
Project:
Panels
Version:
7.x-3.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2013 at 19:59 UTC
Updated:
20 Mar 2014 at 13:31 UTC
Jump to comment: Most recent
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
Comment #1
milfguy commentedI 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.
Comment #2
fchandler commentedI got this same error today, Omega 4 subtheme. Could have copied milfguy's comment exactly
Comment #3
Blooboi commentedIf 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.
Comment #4
bradjones1#3 works and this filed as a support request and not a bug/code change, so I'm marking fixed.
Comment #5
honx commentedwhere is this .inc file i have to edit?