Site A has a modified phptemplate engine that resides in the sites/siteA.com/themes/engines/phptemplate directory. the site works fine.

Site B, however, is giving me problems. It is set up just like site A, with a modified phptemplate engine that resides in sites/siteB.com/themes/engines/phptemplate. But I get an error everytime I go to admin/themes: "Fatal error: Cannot redeclare phptemplate_init() (previously declared in blah blah blah)...".

I don't remember what I might have done to Site A to get it working. A second pair of eyes to help me remember would be greatly appreciated.

Comments

Steve Dondley’s picture

First, I moved the phptemplate.engine file out of the drupal_root/themes/engines/phptemplate directory temporarily.

Next I reloaded the admin/themes page so my customized phptemplate.engine file in the sites/siteB.com/themes/engines/phptemplate would get recognized.

Then I moved the original phptemplate.engine file back to its original location.

It works now. I don't think I had to go throught his hassle before, though.

--
Get better help from Drupal's forums and read this.