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.