Custom 404 page loading view.php

Permalink
I followed the instructions here to a T:

http://www.rynomediaonline.com/rynomediaonline.com/resources/custom...

But for whatever reason, my view.php template is loaded instead of my root/single_pages/page_not_found.php file.

I have the following in root/config/site_theme_paths.php:

$v = View::getInstance(); $v->setThemeByPath('/page_not_found', "themename");

 
Brainakazariua replied on at Permalink Reply
Brainakazariua
I experianced the same for a long time and fixed it by just making complete custom 403 & 404 pages like this:

I made a new page which I called "error" with the intention to use it as a 404 and 403 page.
and under the concrete/single_pages folder I editted the page_not_found.php and page_forbidden.php files to have the following code:

<?php
header("Location:http://www.websitename.com/error");
exit;
?>

remove everything else in it.

this triggers it to open the "error" page on all errors which lead to those pages, ofcourse you need to edit those files again after a core update.

ofcourse you can style that page any way you like.
benradler replied on at Permalink Reply
Thanks for the reply -- this seems like a very hacked together solution though, and I'd really rather figure out WHY this is happening, rather than band-aiding it.

Anyone got any ideas?