[eluser]Unknown[/eluser]
I have defined my own 404 error page, overwriting the one that comes with Codeigniter, and placed it in system/application/error and named it error_404.php.
This error page has a logo inserted into it using the img tag and I am specifying the path to this image using the base_url() codeigniter function as part of the path.
I have 1 controller for my site and if I show the 404 page by calling it from within the controller via the show_404() function everything works fine. If, however, a URL is typed in that doesn't contain the controller name codeigniter, correctly, shows the error_404.php page but throws up a php error stating that base_url() in an undefined function.
So, why is it that the error page is unaware of codeigniter functions?