Brand new installation of Drupal 6, plus usual contrib modules (views, cck etc). The follow errors are frequently emitted:

warning: Illegal offset type in isset or empty in /Users/simonroberts/src/projects/avsales/includes/bootstrap.inc on line 877.
warning: Illegal offset type in /Users/simonroberts/src/projects/avsales/includes/bootstrap.inc on line 878.
warning: Illegal offset type in /Users/simonroberts/src/projects/avsales/includes/bootstrap.inc on line 882.

By adding a backtrace when this problem happens, this appears to be caused by includes/total_control.default_views.inc:

      drupal_set_message(t('!feature features are being excluded because some needed modules are not enabled.'), array('!feature' => substr($file->name,8)));

It looks like the close-bracket for the t() should be after the array containing the substitutions?

Patch attached

CommentFileSizeAuthor
total_control.default_views.inc_.patch784 byteslyricnz

Comments

jenlampton’s picture

Status: Active » Closed (duplicate)

This is a duplicate of http://drupal.org/node/659618 and has been fixed in the dev branch.

*edit* On second glance, it appears that one has been marked as duplicate of this one.

In any event, it's been fixed :-)

jenlampton’s picture

Status: Closed (duplicate) » Fixed

updating status.

gmclelland’s picture

Are you sure this is fixed? I tried the cvs head and 6.1 dev and still get this error on a fresh drupal install.

lyricnz’s picture

It looks like the code was fixed in cvs head on Wed Dec 16 22:15:57

http://drupalcode.org/viewvc/drupal/contributions/modules/total_control/...

Can you check if this is in your checkout?

lyricnz’s picture

I just downloaded the latest 6.x-1.x-dev (2009-Dec-17) and didn't get this error again.

Status: Fixed » Closed (fixed)

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