How to use Muffin Options custom 404 error page ?

Hi,

I tried to set a custom 404 error page but when i test it, the old blank page appears.

How to fix that ?

Thanks

Comments

  • Hi,

    maybe it's because of cache?
  • edited April 2015
    Hi,

    Thanks for the answer.

    However, what cache you talking about?

    There isn't cache installed on my WP and I've already refreshed my browser cache....
  • We thought that it's browser or maybe wp cache. But if you don't have any of them, then we have no idea what could be the problem. Maybe plugins or maybe something is wrong with .htaccess file on your server. Try to change permalinks and see if everything works on default permalinks.
  • edited April 2015
    I tried your recommendations, same problem ! 
    (No plugins except BeTheme required, permalinks by default)


    When I enable debug in WP , I see this message :
    Notice: Trying to get property of non-object in /wp-includes/post-template.php on line 264

    I tried on another of my sites, same error !

    This error corresponds to the function get_the_content();

    Have you ever tried this functionality ? 
    It's very strange ! 
    ~X(
  • Yes, we tried this functionality thousand of times and everything works fine. Please send us access to your dashboard with explanation where and exactly when it happen and we'll have a look on it.
  • edited April 2015
    I use this fix for my problem, what do you think about ?

    Add to my child function.php :


    add_action( 'template_redirect', 'redirect_404', 1 );
    function redirect_404() {
    $custom404 = mfn_opts_get('error404-page');
        if ( is_404() && $custom404 ) {
    wp_redirect( get_permalink( $custom404 ) );
    exit();
    }
    }
  • If this works for you then it's fine but to be honest we did never met with similar behavior.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.