Shape 5

Joomla Templates => Fitness Center - Club => : farewe87 December 01, 2015, 09:06:01 PM



: 404 Error Page - missing modules
: farewe87 December 01, 2015, 09:06:01 PM
Hi there,

I've added an article named "404 Error Page", but then I modified the "error.php" to redirect on an SEF Url (same article, just connected with an menu item).
Now I'm missing some modules (footer, custom_2) on the error-page?

I've also tested it without my own modification as described before. Same problem :(

Can somebody tell me what wrong here?

Thanks a lot in advance.


: Re: 404 Error Page - missing modules
: mikek December 02, 2015, 08:40:47 AM
Hello,

An error page is not supposed to show modules. A 404 page is supposed to be very minimal so that only the text is seen. The framework automatically disables the positions to achieve this. If you want a specific module on there, which I would not recommend, you would have to modify vertex/module_calcs.php and look for:

if ($position_name != "debug" && $position_name != "bottom_menu" && $position_name != "logo" && $position_name != "top_menu") {
   $$position = 'unpublished';
}

Add your position name to the if statement.


: Re: 404 Error Page - missing modules
: farewe87 December 02, 2015, 08:54:51 AM
It works great! Thank you! :-)