Closed (duplicate)
Project:
Insert
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2012 at 17:34 UTC
Updated:
30 Aug 2012 at 21:16 UTC
If an image field has insert enabled, but with no "enabled insert styles" selected, and with the "Default insert style" not set (Default value is Original image - just don't change it and save the settings)
When uploading an image via filefield (or editing a page with an image previously uploaded), the following errors appear:
Warning: Illegal offset type in isset or empty in insert_element_process() (line 212 of .../sites/all/modules/contrib/insert/insert.module).
Warning: Illegal offset type in insert_element_process() (line 213 of .../sites/all/modules/contrib/insert/insert.module).
lines 212 - 213 in the module are as follows:
if (!isset($insert_styles[$default])) {
$insert_styles[$default] = $default;
}
It appears that $default is an array here:
array(
'0' => 'image',
);
Comments
Comment #0.0
jenlamptontypo
Comment #1
spgd01 commentedDuplicate of:
http://drupal.org/node/760244
Comment #1.0
spgd01 commentedexplain insert settings to reproduce