Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: jessicachan commentedThanks Strajider, this worked for me!
Comment #3
juagarc4 CreditAttribution: juagarc4 at publicplan GmbH commentedIt worked for me too!!
A better solution can be:
Replace:
by:
Thanks!!