Using Zero Point theme with Amazon Store module, EVERY TIME I switch to another web page from any item detail page of Amazon Store, a warning message shows as followings:

warning: Illegal offset type in isset or empty in .../drupal/includes/common.inc on line 916.

I made a test for themes and found the problem happens with the theme Zero Point I'm using. Because if switch to other themes, such as Garland and Bluemarine, the warning message do not show up any more. Both Zero Point 6.x-2.3 and 6.x-10 have the same problem.

I also posted this issue to the project Amazon Store: http://drupal.org/node/859836

Comments

florian’s picture

Thanks. I have no idea at the moment but I will look further to solve that problem. I will follow /node/859836, also.

wolfeworks4u’s picture

I have the same issue. I have the following themes selected Fusion Core, Garland, ....Drupal 6 Theme (Zen), ...Fusion Theme (selected as default).

I am running a multi-site installation and the error only shows up on one site.

According to the error log it is a php error. The referrer of the error is .../admin/build/themes/select

warning: Illegal offset type in isset or empty in /var/www/.../TRUNK/drupal/includes/common.inc on line 916.

Any ideas?????

ezmoo’s picture

I have the very same issue with: warning: Illegal offset type in isset or empty in ../drupal-6.22/includes/common.inc on line 915.

ezmoo’s picture

When I remove the regions and features in my theme info file the errors goes away.

ezmoo’s picture

The error seems to happen when you define a region in the info file but have not yet added it into your page.tpl.php file.

Snoopy Pfeffer’s picture

I could fix that problem by adding a little test in /var/www/includes/common.inc, lines 939 - 952.

BEFORE:

// Custom strings work for English too, even if locale module is disabled.
if (isset($custom_strings[$langcode][$string])) {
$string = $custom_strings[$langcode][$string];
}

AFTER:

// Custom strings work for English too, even if locale module is disabled.
if ($custom_strings[$langcode] && isset($custom_strings[$langcode][$string])) {
$string = $custom_strings[$langcode][$string];
}

florian’s picture

Issue summary: View changes
Status: Active » Closed (fixed)