Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ax CreditAttribution: ax commentedboth 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.
Comment #2
timsline CreditAttribution: timsline commentedThanks, it's working great now.
Comment #3
(not verified) CreditAttribution: commented