Your Time:
Our Time:
← Back to discussions

Theme broke after WP update

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 5 replies, 3 voices, and was last updated 3 years, 5 months ago by mikedutkewych.

  • 2023-04-02 at 4:04 pm
    Unknown Support Status
    #28687
    DennisdeHaan
    Participant
    • Topics: 5
    • Replies: 17
    • Total posts: 22
    • Post count: 19

    My site updated to the latest 6.2 version and the Musicplay theme is now broken with an internal error 500.

    I can trace the error tot the theme file headers.php, when i remove this piece of code, it works, but the header is not shown:

    <?php

    $headerstyle = get_option( ‘atp_headerstyle’, ‘default’ );
    switch ( $headerstyle ) {
    case ‘headerstyle1’:
    get_template_part( ‘headers/header’, ‘style1’ );
    break;
    case ‘headerstyle2’:
    get_template_part( ‘headers/header’, ‘style2’ );
    break;
    case ‘headerstyle3’:
    get_template_part( ‘headers/header’, ‘style3’ );
    break;
    default:
    get_template_part( ‘headers/header’, ‘default’ );
    }
    ?>

    Can You please help me?

    2023-04-03 at 2:42 am
    #28688
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    open the file atp_generator.php and find the following code and replace it as shown below atp_generator.php is located in musicplay/framework/common/

    Find
    $class_names=apply_filters( ‘nav_menu_css_class’, array_filter( $classes ));

    Replace
    $class_names=apply_filters( ‘nav_menu_css_class’, array_filter( $classes ),10,4);

    Find
    $class_names = apply_filters( ‘nav_menu_css_class’, array_filter( $classes ));

    Replace
    $class_names = apply_filters( ‘nav_menu_css_class’, array_filter( $classes ),10,4);

    2023-04-03 at 3:47 am
    Support Expired
    #28691
    mikedutkewych
    Participant
    • Topics: 12
    • Replies: 34
    • Total posts: 46
    • Post count: 39

    I also updated to WordPress 6.2 today and now my site will not advance past the loading animation. I attempted to make the change to atp_generator.php that was recommended above, but it did not make a difference. My site is: https://getsouldeep.com

    2023-04-03 at 2:10 pm
    Unknown Support Status
    #28692
    DennisdeHaan
    Participant
    • Topics: 5
    • Replies: 17
    • Total posts: 22
    • Post count: 19

    That worked perfectly! Thank You!

    2023-04-03 at 2:14 pm
    Unknown Support Status
    #28693
    DennisdeHaan
    Participant
    • Topics: 5
    • Replies: 17
    • Total posts: 22
    • Post count: 19

    @mikedutkewych: When i enabled Debug in WordPress i had the exact same issue. I don’t know if You can check the wp-config.php file (it’s in the root of the WordPress installation), and find this line:

    define( ‘WP_DEBUG’, true );

    If it’s set to true, it’s in debug mode. If You change it to false and You get a Internal Error 500 message, You may have the same problem i had as mentioned in my original post.

    Kind regards,
    Dennis de Haan

    2023-04-03 at 10:03 pm
    Support Expired
    #28695
    mikedutkewych
    Participant
    • Topics: 12
    • Replies: 34
    • Total posts: 46
    • Post count: 39

    @dennisdehaan thank you for the idea. Debug mode was off so I tried to turn it on and it made no difference either way. I did go and remove the code in header.php that you listed in your first post and that at least got my site to load (minus the header of course). Unfortunately, the change @fem shared for atp_generator.php did not restore my header. So my homepage at least loads, but no further navigation can occur. Any other ideas from anyone?

The topic ‘Theme broke after WP update’ is closed to new replies.