Fatal error: Call to undefined function phptemplate_get_...

Panaman - January 23, 2009 - 13:33
Project:Marinelli
Version:6.x-2.95
Component:Code
Category:support request
Priority:normal
Assigned:Panaman
Status:active
Description

I get this after choosing theme: marinelli: giordani

Fatal error: Call to undefined function phptemplate_get_primary_links() in /var/www/vhosts/naima.nu/httpdocs/_droopy/themes/marinelli/giordani/page.tpl.php on line 39

What to do? Seems I can't change back to another theme

#1

sean porter - July 14, 2009 - 20:03

Make sure your folder "themes/engines" is intact. I just ran into this problem while clearing my server of all unused themes and had mistakenly deleted the "engines" folder, thinking it was another theme.

#2

ste4236 - September 6, 2009 - 05:59

I don't know how this happened, but I need this fixed on my site ASAP. How do you fix it?

#3

mrbrowny - October 1, 2009 - 10:22

Thanks a lot Sean Porter!!!

I had the same error, and so i checked my files in the server and the folder "themes/engines" and there was a subfolder named "phptemplate" but it was empty!

So i checked my backup and i found that i had a file called "phptemplate.engine" inside that folder, and that file was missing in my production site, so i put it in that folder in my production site and all started to work again as expected! Hehe

Thanks a lot!!!

I'm not going to change the status of this issue because i don't know if this solved the original problem asked, but it solved mine, so if you want you may change it. :)

Claudio Abraham (Mr. Browny in Drupal)
From Argentina

#4

strellman - October 2, 2009 - 15:38
Version:6.x-2.6» 6.x-2.95

I hit something similar in trying to create a new theme using marinelli and had both old and new folders in themes. I finally had to delete or move the new folder out of themes so drupal wouldn't find it.

It worked better to just create new subfolder by copying giordani and renaming giordani.css and renaming and editing giordani.info

 
 

Drupal is a registered trademark of Dries Buytaert.