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

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.