Please excuse that I'm a complete newbie.

I'm following the tutorial at this site. It told me that I should go to Drupal's website and download the php template engine and some themes in order to change the look of my website. I followed the instructions, downloaded the engine and four themes, then uploaded the engine to public_html/themes/engines and the themes to the themes folder.

I went in to look at my new themes, but my website was showing:
Fatal error: Call to undefined function: module_exist() in /home/(myusername)/public_html/themes/engines/phptemplate/phptemplate.engine

I'm using Fantastico if that makes any difference. I'd be grateful to anyone who can tell me what to do.

Comments

nevets’s picture

Starting with Drupal 4.7 the phptemplate engine is part of the core distribution. It sounds like you overwrote the 5.0 engine with one from the download section since module_exist() was changed to module_exists() in Drupal 5. Normally if I overwrite a core file and restore it I extract it from the zip file I used for the original install, not sure how this applies to using Fantastico.

contrariwise’s picture

Thank you. Now I understand what's wrong.

parasite’s picture

You see this message because this function is called module_exists. Try to install a different version of that theme/module..etc

Well.. maybe it begins in the template engine, so you did something totally wrong. Try to copy the whole original engines directory to your site, i think this will solve your problem.