I got this error:

Fatal error: Cannot unset string offsets in /home7/enviroc1/public_html/drupal/sites/all/modules/devel_themer/devel_themer.module on line 298

Turning off Themer fixed.

Comments

kenneth.venken’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please provide steps to reproduce this issue?

kenneth.venken’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing due to inactivity. Feel free to reopen if you have more info on how to reproduce this issue.

jide’s picture

Status: Closed (cannot reproduce) » Active

Having the same issue at node/[nid], and unfortunately I have no more clues since I enable devel_themer occasionally while developing... If I find more info, I'll let you know.

jide’s picture

Okay, after investigating a little using some quick and dirty debug code :

/**
 * Near clone of theme().
 */
function devel_themer_theme_twin($hook, $variables) {
  if (!is_array($variables)) {
    dsm($hook);
    dsm($variables);
    return;
  }

Outputs :

  • rate_button
  • t like
  • rate_button
  • t don't like

So it seems that it's rate module's fault (or maybe a wrong custom theme implementation), with variables passed as strings somehow. I'll try and see if I can find more info.

kenneth.venken’s picture

kenneth.venken’s picture

Status: Active » Needs review
StatusFileSize
new589 bytes

These errors are caused by modules that use the old Drupal 6 way of passing variables to theming functions. See http://drupal.org/node/224333#theme_changes.

We could log the affected theming functions so that it's easier to debug. (see attached patch.)

kenneth.venken’s picture

Status: Needs review » Fixed

It can't hurt to have more debugging info so i've committed this to 7.x-1.x.

Status: Fixed » Closed (fixed)

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