My site has been using the Marvin_2K theme and Drupal 4.4.1. I have been wanting to move to the PHP template theme, but when I change to that theme, my site fails to load and shows only the following message -
"Fatal error: Cannot redeclare class template in /home/zsddycff/public_html/thecphookup/themes/marvin_2k/template.php on line 26"

Any thoughts about this from anyone?

Comments

ax’s picture

both marvin_2k.theme and phptemplate.theme use "class Template" from template.php. if you have both themes in your "themes" folder, drupal first reads marvin_2k.theme and declares "class Template". then it tries to do the same for phptemplate.theme, which results in your error.

the same issue had occured with xtemplate.theme and was fixed by this patch. a similar change should fix the problem for "class Template", too.

timsline’s picture

Thanks, it's working great now.

Anonymous’s picture