[SOLVED] Fatal error: Call to undefined function: themeheade

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nduncan
Forum Newbie
Posts: 3
Joined: Wed Sep 29, 2004 7:07 am

Fatal error: Call to undefined function: themeheader() in

Post by nduncan »

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.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

A suggestion

Post by neophyte »

If it can't find the function:
themeheader();
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.

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");
?>
[/php_man]
nduncan
Forum Newbie
Posts: 3
Joined: Wed Sep 29, 2004 7:07 am

Re: A suggestion

Post by nduncan »

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?
neophyte wrote:If it can't find the function:
themeheader();
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.

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");
?>
[/php_man]
nduncan
Forum Newbie
Posts: 3
Joined: Wed Sep 29, 2004 7:07 am

Re: Fatal error: Call to undefined function: themeheader() i

Post by nduncan »

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.
:D
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.
Post Reply