By vincenzi on
Hello, I tried installing a theme from the available themes. I think the theme is called plutado_green. Immediately after installation I got this error message:
"Fatal error: Call to undefined function _phptemplate_callback() in /home/content/a/l/a/alanvincenzi/html/speedlimits/themes/plutado_green/template.php on line 34"
I've looked through the forums and even looked at the file itself, but I'm new to php, so couldn't do much about it. Ultimately, I just need to change the theme back to something else, so is there a way of manually changing the theme through the settings.php or an equivalent file? I couldn't find a way, please help. Thanks.
Comments
It sounds like
you've tried installing a Drupal 5 theme on Drupal 6.
--
Anton
Thanks styro, How can I
Thanks styro,
How can I solve this without reisntalling? I have no access to the UI. Is there a way to set the theme from within the setting files? I've looked in settings.php and only has a backup theme option.
A few ways
If you've set your personal theme to the new one, you'll need to edit your user account row in the database (eg with PHPMyAdmin or on the command line). Look for the theme field. Note: to save time I'm assuming you know how to do edit DB fields outside Drupal - if not, ask away....
If you're just relying on the site default theme, you can uncomment the conf variables array in your settings.php. Look for this bit (you only need the default_theme setting...
--
Anton
That worked. Thanks styro!
That worked. Thanks styro! Although I uncommented without the php tags because with them it didn't work. In other words..
$conf = array(
# 'site_name' => 'My Drupal site',
'theme_default' => 'garland',
# 'anonymous' => 'Visitor',
# I've snipped all the other bits...
);
that did the trick. I looked at that part of the code, but wasn't sure what it did. Anyways after I set that, I switched themes through the interface and commented the above code again, and everything seems to be back to normal. Also the theme that caused the problem claims to be 6.x - 1.4, so I wonder if its a bug. Thanks again.
-a.vincenzi