Version: 3.3.3 Breaks Child Theme
-
WP Version: 5.3.2
WP Bootstrap Starter Version: 3.3.3
PHP 7.2Issue:
After installing Version 3.3.3 the child theme no longer works. Before the update everything was working perfectly.Steps to reproduce:
1. Install theme v3.3.3
2. Load the main page of the site.
3. Notice that the page is blank. No PHP errors and no errors in the console. The page’s
<head>is populated and looks like it loaded correctly.4. I then reinstalled WP v5.3.2 to make sure I didn’t have an issue with a core file. It did not fix the problem or change anything.
5. I then disabled all plugins. It also did not fix anything.
Problem Solving:
I removed all files from my child theme to start with a blank slate to test.
I then copied the style.css, index.php, and header.php to the child theme as they are the required files for a child theme. I left them untouched.
What I noticed is that line #26 of header.php is where the code is breaking.
<header id="masthead" class="site-header navbar-static-top <?php echo wp_bootstrap_starter_bg_class(); ?>" role="banner">Specifically:
Call to undefined function wp_bootstrap_starter_bg_class()I then copied that function from the parent them inc > extras.php into the functions.php in the child them. The function did not kill the page anymore. But then it broke again at line #53
new wp_bootstrap_navwalker().At that point I stopped trying to fix it as it seems like there’s something wrong with the new version as these extra steps is not normal to get a child theme to work.
The topic ‘Version: 3.3.3 Breaks Child Theme’ is closed to new replies.
