Problem with custom 404

Permalink
Hi all

I've tried Remo's tutorial for creating a custom 404 but it doesn't work for me - the side just grinds to a halt and no pages will load.

I added these lines to site_theme_paths.php:

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


and there is a view.php file in the theme folder, but it just won't work.

I really need to get rid of the dashboard theme pronto because it doesn't match the theme of the site, which is important to the client (understandably).

Any help would be much appreciated :)

melat0nin
 
jbx replied on at Permalink Reply
jbx
Do you have a live link to the site?

What else do you have in the site_theme_paths.php file?

Jon
Brainakazariua replied on at Permalink Reply
Brainakazariua
I've encountered that before and solved it 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:



remove everything else in it.

this triggers it to open the "error" page on all errors which lead to those pages, ofcourse this is a workaround and you need to edit those files again after a core update.
melat0nin replied on at Permalink Reply
melat0nin
I've actually fixed it.. the file needs to be in the themes folder, rather than in /single_pages.

From there I was able to theme it entirely independently, which is exactly what I was looking for.