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:
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 :)
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 :)
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.
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/pagename"...); exit; ?>
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.
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.
From there I was able to theme it entirely independently, which is exactly what I was looking for.
What else do you have in the site_theme_paths.php file?
Jon