BuddyBoss Home – Web Support Forums Themes Boss. theme Single Use Custom Page Template (404 error)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Question

    #65086

    Anonymous
    @

    I’ve developed a Single Use Custom Page Template and am receiving a 404 error when attempting to visit that specific page. However, it is inconsistent, at times it will load, but the majority of loads result in a 404 error. In making the Page Template I moved a copy of page.php to my child theme, and renamed the file page-classes.php. I also made a Classes page within WordPress.

    Did I make a mistake of some sort? How can this be resolved?

    It isn’t hosting related because I’m working locally and this is page specific. I’m pushing to a server weekly though in order for my client to view new content, so if you need access that can be accommodated.

    Answers

    #65456

    Anonymous
    @

    Hi @ryanmaler
    Please confirm are you using Page Attribute options for it or just using slug approach ( page-{slug}.php ) to display your page.

    
    <?php /* Template Name: Class Template */ ?>
    

    Regards
    Varun Dubey

    #65509

    Anonymous
    @

    @vapvarun I’m using the slug approach being that it is for a specific, single page. Also, I currently have Boss 2.1.0 installed and the Child Theme active.

    #65573

    Anonymous
    @

    Hi @ryanmaler
    It seems, permalink need to be flushed.
    Try following inside your child theme

    
    function bb_flush_rewrite_rules() {
        flush_rewrite_rules();
    }
    add_action( 'after_switch_theme', 'bb_flush_rewrite_rules' );
    

    Regards
    Varun Dubey

    #66123

    Anonymous
    @

    @vapvarun I dropped that code snippet into my Child Theme’s functions.php and the error persists. Additionally, I emptied my browsers cache and the error remained.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The question ‘Single Use Custom Page Template (404 error)’ is closed to new replies.