Site Broken with latest updates
Earlier today I was notified that the front end of the site was broken after updating WooCommerce, Gutenberg and WordPress.
There was a Fatal error produced in the child theme Wizzie. This was due to some function name changes in Gutenberg 11.9.0.
The fix was to update the theme to check for the existence of the renamed function.
Problem
<br />
<b>Fatal error</b>: Uncaught Error: Call to undefined function gutenberg_get_allowed_template_part_areas() in /home/customer/www/bobbingwide.org.uk/public_html/wp-content/themes/wizzie/includes/template-part.php:135
Stack trace:
#0 /home/customer/www/bobbingwide.org.uk/public_html/wp-content/plugins/gutenberg/lib/compat.php(132): wizzie_render_block_core_template_part(Array, '<nav style="fon...', Object(WP_Block))
#1 /home/customer/www/bobbingwide.org.uk/public_html/wp-includes/class-wp-block.php(221): {closure}(Array, '', Object(WP_Block))
#2 /home/customer/www/bobbingwide.org.uk/public_html/wp-includes/class-wp-block.php(211): WP_Block->render()
#3 /home/customer/www/bobbingwide.org.uk/public_html/wp-includes/class-wp-block.php(211): WP_Block->render()
#4 /home/customer/www/bobbingwide.org.uk/public_html/wp-includes/blocks.php(868): WP_Block->render()
#5 /home/customer/www/bobbingwide.org.uk/public_html/wp-includes/blocks.php(906): render_block(Array)
#6 /home/customer/www/bobbingwide.org.uk/public_html/wp-content/themes/wizzi in <b>/home/customer/www/bobbingwide.org.uk/public_html/wp-content/themes/wizzie/includes/template-part.php</b> on line <b>135</b><br />
Workaround
This was resolved by switching to the parent theme, Fizzie.
Fix
Update the Wizzie theme. See bobbingwide/wizzie#9.
if ( function_exists( 'gutenberg_get_allowed_template_part_areas')) {
$defined_areas = gutenberg_get_allowed_template_part_areas();
} else {
$defined_areas = get_allowed_block_template_part_areas();
}
For more information on the function name changes see wordpress/gutenberg#36180.