Call to undefined function render_header()

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
php_n00b
Forum Newbie
Posts: 3
Joined: Sat Mar 01, 2008 5:31 pm

Call to undefined function render_header()

Post by php_n00b »

I've done a bit of php over the years, but have just inherited a site that I don't know what to do with. I feel like an idiot and I have to ask for your take on this. I know you can't see the site in question, or the files, but hopefully you can shed some light.

The index.php file for the site looks like this (these 5 lines only):

<?
render_header();
render_home();
render_footer();
?>

When I upload it to my dev server to view the site there (along with every single file on the live server, same directory structure, etc) I get "Fatal error: Call to undefined function render_header() in /users/......"

I've downloaded and opened every single file on the web server and have done a search and I'm just not finding where this header, home, and footer content might reside. I feel like I slept through a semester. What am I missing?

Thank you....
php_n00b
Forum Newbie
Posts: 3
Joined: Sat Mar 01, 2008 5:31 pm

Re: Call to undefined function render_header()

Post by php_n00b »

I actually got ahead of myself in my question. The error is that render_header() is an undefined function. So the immediate question is, where would I look for it to be defined? Again, I've searched all the files and haven't found it.
php_n00b
Forum Newbie
Posts: 3
Joined: Sat Mar 01, 2008 5:31 pm

Re: Call to undefined function render_header()

Post by php_n00b »

The correct answer is: make sure you got the .htaccess file, dummy.

Setting FileZilla to force show all files helps in this regard. Thanks. ;)
Post Reply