This topic has 5 replies, 3 voices, and was last updated 3 years, 5 months ago by mikedutkewych.
Viewing 6 posts - 1 through 6 (of 6 total)
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?
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);
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
That worked perfectly! Thank You!
@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
@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?
Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘Theme broke after WP update’ is closed to new replies.