Cannot add/edit posts or pages
Hello,
I cannot add/edit posts or pages anymore. I get the following error:
"There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums."
Take note of the following:
- The site works flawlessly except when I try to add or edit posts or pages.
- The problem appeared after migrating to a new host provider.
- The problem can be fixed by switching from BeTheme to one of the standard WordPress themes like Twenty Eleven.
- Switching from PHP 8.4 back to 7.4 also fix the problem however I can't stay on 7.4 as it reached EOL.
- Everything is up to date (WordPress core 6.8.1, All Plugins are up to date, BeTheme 28.1.2).
Things I've already tried:
- Disabled all plugins (Including cache plugin)
- Cleared browser cache
- Re-installed WordPress Core
- Switched to a different Permalink structure.
I ran out of ideas. Can you help? Thanks!
Comments
I forgot to mention that when debug is enabled I also get the following error when I try to add new post:
"Fatal error: Uncaught Error: Attempt to assign property "mfn_tax" on null in /home/myusername/public_html/wp-content/themes/betheme/functions/builder/class-mfn-builder-helper.php:83 Stack trace: #0 /home/myusername/public_html/wp-content/themes/betheme/functions/theme-functions.php(3942): Mfn_Builder_Helper::get_post_types() #1 /home/myusername/public_html/wp-includes/class-wp-hook.php(324): mfn_additional_cpt_bebuilder() #2 /home/myusername/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /home/myusername/public_html/wp-content/themes/betheme/visual-builder/visual-builder.php(44): apply_filters() #4 /home/myusername/public_html/wp-content/themes/betheme/visual-builder/visual-builder.php(52): mfnvb_get_builder_post_types() #5 /home/myusername/public_html/wp-includes/class-wp-hook.php(324): mfnvb_ce_live_button() #6 /home/myusername/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /home/myusername/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /home/myusername/public_html/wp-admin/edit-form-advanced.php(607): do_action() #9 /home/myusername/public_html/wp-admin/post-new.php(75): require('/home/myusername/...') #10 {main} thrown in /home/myusername/public_html/wp-content/themes/betheme/functions/builder/class-mfn-builder-helper.php on line 83"
Hi,
There is a newer version available.
Please update Betheme and check if the problem persists.
Thanks
Hello @Phil
Updating Betheme didn't solve the problem. However reinstalling the theme fixed the issue :)
Thank you.
I am glad to see that you handled it.
Please let me know if there is anything else I can help with.
Best regards