In several situations, e.g. when enabling or disabling a module, i get the following error messages:

* warning: Illegal offset type in /home/www/web66/html/jg/drupal/sites/all/modules/imagecache/imagecache.module on line 258.
* warning: Illegal offset type in /home/www/web66/html/jg/drupal/sites/all/modules/imagecache/imagecache.module on line 258.
* warning: Illegal offset type in /home/www/web66/html/jg/drupal/sites/all/modules/imagecache/imagecache.module on line 258.
* warning: Illegal offset type in /home/www/web66/html/jg/drupal/sites/all/modules/imagecache/imagecache.module on line 258.

I already updated the version i had before to version 5.x-1.5, but that didn't help.

Comments

himagarwal’s picture

having the same issue with imagecache-5.x-1.5

was working fine earlier before I installed 5.x-2.1 and un-installed. then had some problem with 2.1 and then shifted back to 1.5 but now its showing the same illegal problem at line 258

markusH’s picture

Hi,

just had to downgrade from 2.0 to 1.6 (PHP4 and stuff) and got the errors. Here's how I got rid of them:

Basically, I checked and resubmitted all content types where I defined a imagecache version in the "display fields" section. These seemed to have bad entries like "link as Array". Just put them back to "Default".

What finally got rid of the error messages, though, was running update.php - I simply had forgotten this in the first place. Maybe try that first.

Don't know if that's general solution. But it did the job for me

drewish’s picture

Status: Active » Fixed

please try the latest versions of imagecache and re-open if this is still occurring.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Version: 5.x-1.5 » 6.x-2.0-beta10
Status: Closed (fixed) » Active

Sorry to re-open, but I'm getting this error:

* warning: Illegal offset type in isset or empty in /sites/all/modules/imagecache/imagecache.module on line 928.
* warning: Illegal offset type in /sites/all/modules/imagecache/imagecache.module on line 932.
* warning: Illegal offset type in isset or empty in /sites/all/modules/imagecache/imagecache.module on line 928.
* warning: Illegal offset type in /sites/all/modules/imagecache/imagecache.module on line 932.

I am running:
ImageAPI 6.x-1.8
ImageAPI GD2 6.x-1.8
ImageCache 6.x-2.0-beta10
Imagecache Profile Pictures 6.x-1.3
ImageCache UI 6.x-2.0-beta10

and I have run update PHP, and checked on the display settings as mentioned in the earlier bug.

Anonymous’s picture

Status: Active » Closed (fixed)

this was related to features - a features module was trying to define a preset. deleting the offending lines from the feature did the trick.