Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #903849
    Chris
    Participant

    hello team,
    my 404 error page only shows a (perma)link to the new error page. (“www.haussee.com/404”)
    custom404 is enabled and the new page(“/error”) is selected.
    any ideas?
    kind regards,
    chris

    #904812
    Jade
    Moderator

    Hi Chris,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #990022
    Chris
    Participant
    This reply has been marked as private.
    #990396
    Rahul
    Moderator

    Hi there,

    I can confirm that this is a bug in the custom 404 extensions. We managed to have a temporary fix for it.

    If you can provide us your FTP details, we can add a code to your child theme’s functions.php or you can add the below code :

      $custom_404_post = get_post( (int) $x_custom_404_entry_include );
    
      if ( ! is_a( $custom_404_post, 'WP_Post' ) ) {
        return $template;
      }
    
      GLOBAL $wp_query;
      GLOBAL $post;
    
      $post = $custom_404_post;
    
      $wp_query->posts             = array( $post );
      $wp_query->queried_object_id = $post->ID;
      $wp_query->queried_object    = $post;
      $wp_query->post_count        = 1;
      $wp_query->found_posts       = 1;
      $wp_query->max_num_pages     = 0;
    
      $wp_query->is_404            = false;
      $wp_query->is_page           = true;
      $wp_query->is_singular       = true;
    
      return get_page_template();
    }
    add_filter( '404_template', 'just_another_404_filter', 100 );
    // =============================================================================
    

    Thanks

    #1025583
    Chris
    Participant
    This reply has been marked as private.
    #1026187
    Rue Nel
    Moderator

    Hello There,

    Please do remove the code above and make sure to update the Custom 404 plugin to its latest version. I would also highly recommend that you check out our changelog here: https://theme.co/changelog/#custom-404-1-1-1

    Please let us know how it goes.

    #1026855
    Chris
    Participant

    Hello Team,
    great – the update helps alot.
    Thank you very much,

    Kind regards,
    Chris

    #1027376
    Rue Nel
    Moderator

    You’re welcome!
    We’re glad we were able to help you out.

  • <script> jQuery(function($){ $("#no-reply-903849 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>