Themekey upgradation problems

drupal_developer's picture

Hi there,
today I updated a site that uses Drupal 6 since ther was a possible security issue with the version it was running. While I was at it, i also upgradd ThemeKey which is required by Taxonomy Menu. Since I only installed themekey as a required module, i hardly knows what it does.
But that's not the point, after upgrading I received a warning on all my pages when logged in stating

__clone method called on non-object in /var/www/html/rick/includes/common.inc on line 1685.

Which I could trace down to a call of ThemeKey on line 147 to drupal_clone().
I 'fixed' this (really, i have no idea what i'm doing ;-) ) by changing line 146 from:
if (isset($object)) {

into:
if (isset($object) && is_object($object)) {

apparently one time the match_properties gets called with something not being an object. Maybe from taxonomy mnu, may from inside ThemeKey.

rightchoice2c_me on February 20th 2009

@drupal_developer
I got the same error when I upgraded themekey but I solved this error by just resaving configurations for themekey.

 

Free Web Hosting
v>