Page 1 of 1

Call to undefined function render_header()

Posted: Sat Mar 01, 2008 5:37 pm
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....

Re: Call to undefined function render_header()

Posted: Sat Mar 01, 2008 5:55 pm
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.

Re: Call to undefined function render_header()

Posted: Sat Mar 01, 2008 6:35 pm
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. ;)