Well I've screwed it up good now- browsing to my website http://www.youinspain.com gives this error when opening.
I have checked the line in /home/httpd/vhosts/youinspain.com/httpdocs/header.php on line 188
and there is a call to
themeheader(); with this content.
My chosen theme is PostNukeSilver and the theme.php in this directory contains
$thename = 'PostNukeSilver';
$postnuke_theme = true;
there is, of course a themes directory and a PostNukeSilver directory on the website.
I have even tried Updating the nuke_users table using PHPAdmin to use SQL
UPDATE nuke_users SET pn_theme = "PostNukeSilver" where pn_uname = "your-user-name";
All to no avail. Could somenone please help me get my website back on line please.
[SOLVED] Fatal error: Call to undefined function: themeheade
Moderator: General Moderators
A suggestion
If it can't find the function:
So just for kicks you could try putting this at the top of index.php:
[/php_man]
Then find the file that holds that function. In Dreamweaver you can do a directory search for themeheader(); once you find it you have to include the file.themeheader();
So just for kicks you could try putting this at the top of index.php:
Code: Select all
<?php
include_once("/absolute/path/to/the/file.php");
?>Re: A suggestion
Thanks for such a prompt reply - I am developing directly on my ISP host server so cannot use Dreamweaver. I will try the 3 line php insertion into index.php but need some clarification on the parameters for
("/absolute/path/to/the/file.php"); for example what is the file.php?
("/absolute/path/to/the/file.php"); for example what is the file.php?
neophyte wrote:If it can't find the function:
Then find the file that holds that function. In Dreamweaver you can do a directory search for themeheader(); once you find it you have to include the file.themeheader();
So just for kicks you could try putting this at the top of index.php:
[/php_man]Code: Select all
<?php include_once("/absolute/path/to/the/file.php"); ?>
Re: Fatal error: Call to undefined function: themeheader() i
OK it's fixed. Just for the record. I was experimenting with new themes and created a new directory called Blue. In the administrator setting I changed the theme to blue. This failed to display the invalid template that was in that directory. Now I could not change the them back to the original. So I deleted the Blue directory recreated it and copied all of the files from the original directory into the newly created directory. Stupid boy - now that's what happens when you develop live on the ISP server. A clear case for a development environment and a live backup. Lesson well learnt.
nduncan wrote:Well I've screwed it up good now- browsing to my website http://www.youinspain.com gives this error when opening.
I have checked the line in /home/httpd/vhosts/youinspain.com/httpdocs/header.php on line 188
and there is a call to
themeheader(); with this content.
My chosen theme is PostNukeSilver and the theme.php in this directory contains
$thename = 'PostNukeSilver';
$postnuke_theme = true;
there is, of course a themes directory and a PostNukeSilver directory on the website.
I have even tried Updating the nuke_users table using PHPAdmin to use SQL
UPDATE nuke_users SET pn_theme = "PostNukeSilver" where pn_uname = "your-user-name";
All to no avail. Could somenone please help me get my website back on line please.