I had the same issue, and this is how I fixed it:
Go to Appearance > Editor in your admin panel.
For the Flat Theme, go to hooks.php
.
Under the <?php
line, add the following code:
function flat_hook_page_before() {
do_action( 'flat_page_before' );
do_action( 'tha_page_before' );
}
function flat_hook_page_after() {
do_action( 'flat_page_after' );
do_action( 'tha_page_after' );
}
function flat_hook_page_top() {
do_action( 'flat_page_top' );
do_action( 'tha_page_top' );
}
function flat_hook_page_bottom() {
do_action( 'flat_page_bottom' );
do_action( 'tha_page_bottom' );
}
and update the file. It should fix the error.
I assume that when the creator updates the template, they’ll probably fix this bug, but now I don’t have the error anymore.