I am updating one of my sites and when I go to edit some posts I get this:
Fatal error: Uncaught TypeError: Argument 1 passed to AviaBuilder::handler_wp_dbx_post_sidebar() must be an instance of WP_Post, instance of stdClass given, called in /home/site/public_html/wp-includes/class-wp-hook.php on line 286 and defined in /home/site/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/template-builder.class.php:398
Stack trace:
#0 /home/site/public_html/wp-includes/class-wp-hook.php(286): AviaBuilder->handler_wp_dbx_post_sidebar(Object(stdClass))
#1 /home/site/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#2 /home/site/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home/site/public_html/wp-admin/edit-form-advanced.php(677): do_action('dbx_post_sideba...', Object(stdClass))
#4 /home/site/public_html/wp-admin/post.php(197): include('/home/site/p...')
#5 {main} thrown in /home/site/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/template-builder.class.php on line 398
I am not able to edit anything.
Can you please share a fix for this?
Thanks.
Hi,
What php version does this server has?
Best regards,
Basilis
7.2
Thank you.
Hi,
Can you disable the php error log and turn wp_debug off and see if this fixes?
Best regards,
Basilis
I don’t have php error log and wp_debug. The error appears when hitting edit a post.
Maybe something related to Classic, Gutenberg, advanced editors, that Enfold does not know which one to use.
Hi peterolle,
Which editor are you using to build posts?
Could you please attach some screenshots of the issue?
Best regards,
Victoria