![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: Layout Builder
-
AuthorPosts
-
January 7, 2021 at 11:26 am #1270825
When trying to edit a new blog post or page I can not edit the text field or select the advanced layout builder. Every plugin and the theme is up-to-date.
When running WP_debug I get following fatal error: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 /var/www/mysite.be/mysite.be/wwwroot/wp-includes/class-wp-hook.php on line 287 and defined in /var/www/mysite.be/mysite.be/wwwroot/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/template-builder.class.php:320 Stack trace: #0 /var/www/mysite.be/mysite.be/wwwroot/wp-includes/class-wp-hook.php(287): AviaBuilder->handler_wp_dbx_post_sidebar() #1 /var/www/mysite.be/mysite.be/wwwroot/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #2 /var/www/mysite.be/mysite.be/wwwroot/wp-includes/plugin.php(478): WP_Hook->do_action() #3 /var/www/mysite.be/mysite.be/wwwroot/wp-admin/edit-form-advanced.php(721): do_action() #4 /var/www/mysite.be/mysite.be/wwwroot/wp-admin/post-new.php(75): require(‘/var/www/mysite…’) #5 {main} thrown in /var/www/mysite.be/mysite.be/wwwroot/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/template-builder.class.php on line 320
Thanks for the helping hand!
January 8, 2021 at 4:10 am #1271000Hey Weblevels,
Could you try updating the theme to the latest version (4.7.6.4) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. Also make sure that you are running PHP 7.2 or higher on the server. If that doesn’t help then please post admin WordPress login details in private, so that we can have a closer look.
Best regards,
RikardJanuary 8, 2021 at 3:56 pm #1271095Unfortunately I’m already running 7.4 and a theme update didn’t help. Credentials in private.
January 8, 2021 at 5:17 pm #1271120UPDATE
I managed to fix it. I don’t think it was a theme related issue as switching themes also didn’t solve it. When trying to create a user for you I also noticed that creating a user was not possible.
For people also coming on this page with the same problem, in my case my wp_posts and wp_user tables lost their AUTO_INCREMENT end ID was not set as primary key anymore.
After fixing these database issues, everything worked again. Topics closed.
January 10, 2021 at 6:02 am #1271292 -
AuthorPosts
- The topic ‘Not able to edit new blog post/page’ is closed to new replies.