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
| Comment | File | Size | Author |
|---|---|---|---|
| total_control.default_views.inc_.patch | 784 bytes | lyricnz |
Comments
Comment #1
jenlamptonThis 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 :-)
Comment #2
jenlamptonupdating status.
Comment #3
gmclelland commentedAre you sure this is fixed? I tried the cvs head and 6.1 dev and still get this error on a fresh drupal install.
Comment #4
lyricnz commentedIt 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?
Comment #5
lyricnz commentedI just downloaded the latest 6.x-1.x-dev (2009-Dec-17) and didn't get this error again.