after upgrading to the dev version from 11 jan 2011, i started to get PHP warning messages re. illegal offset type in, line 1805 -- only with the new version of views_slideshow.

a diff between the previous version and this one showed that the culprit is this statement in line 201:
drupal_add_css($module_path . '/views_slideshow_controls_text.css', array('type' => 'file'));

  1. 'type' shouldn't be 'file'; according to the documentation in, it's either "module" or "theme", defaulting to "module";
  2. the function in common inc (function drupal_add_css($path = NULL, $type = 'module', $media = 'all', $preprocess = TRUE)) doesn't expect an array at this point, but a string;

not providing this parameter, or providing the string 'module' resolves this problem; no error or warning messages appear.

Members fund testing for the Drupal project. Drupal Association Learn more


phani00’s picture

sorry, i forgot to mention which file i'm talking about:

redndahead’s picture

Whoops Bad backport from drupal 7.

MustangGB’s picture

Status: Active » Reviewed & tested by the community
610 bytes

Quicker to get this in if a patch is provided?

redndahead’s picture

Status: Reviewed & tested by the community » Fixed

Committed thank you.

Status: Fixed » Closed (fixed)

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