Active
Project:
mothership
Version:
7.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2012 at 11:42 UTC
Updated:
3 Nov 2015 at 15:27 UTC
Jump to comment: Most recent
If you go in admin/config/system/site-information and set your own path mothership will still serve page--404.tpl.php without the content.
I know you can disable the mothership's 404 page feature. But if you don't know about it... you can go crazy.
Comments
Comment #1
G42 commentedI had to figure out this issue as well. I think it is similar to https://drupal.org/node/1378732. The issue stems from the base theme template.php file.
There are two sections of code that check if there is a 404 error in the header. One checks the theme's custom 404 page setting and the other does not. Here are the relevant pieces:
This one correctly checks for the theme setting
But later this one doesn't even check the theme setting
Due to the multi-site issues with the site I was working on I did not do extensive testing on how to modify the base mothership template.php and simply created a custom template.php file for my theme that would unset the variable
The only function in my custom theme's template.php
This allowed Drupal's custom 404 error pages to be used.
I hope this helps someone, I tried adding the theme_get_setting('mothership_404') conditional to the second if statement but ran into errors. Hope this helps someone.
Comment #2
jessicachan commentedThanks Strajider, this worked for me!
Comment #3
juagarc4 commentedIt worked for me too!!
A better solution can be:
Replace:
by:
Thanks!!