Cannot save, edit, publish, or preview new or existing pages

edited August 2019 in Other
Hello -

I am getting the following error whenever I try to save, edit, publish, or preview new or existing pages.

PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /nas/content/live/trusting/wp-content/themes/betheme/functions/builder/back.php:918\nStack trace:\n
#0 /nas/content/live/trusting/wp-content/themes/betheme/functions/meta-portfolio.php(477): mfn_builder_save(1500)\n
#1 [internal function]: mfn_portfolio_save_data(1500)\n
#2 /nas/content/live/trusting/wp-includes/class-wp-hook.php(288): call_user_func_array('mfn_portfolio_s...', Array)\n
#3 /nas/content/live/trusting/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)\n
#4 /nas/content/live/trusting/wp-includes/plugin.php(465): WP_Hook->do_action(Array)\n
#5 /nas/content/live/trusting/wp-includes/post.php(3951): do_action('save_post', 1500, Object(WP_Post), true)\n
#6 /nas/content/live/trusting/wp-includes/post.php(4028): wp_insert_post(Array, false)\n
#7 /nas/content/live/trusting/wp-admin/includes/post.php(405): wp_update_post(Array)\n
#8 /nas/content/live/trusting/wp-admin/post.php(218): edit_post()\n
#9 {main}\n thrown in /nas/content/live/trusting/wp-content/themes/betheme/functions/builder/back.php on line 918, referer: https://www.trustingpixels.com/wp-admin/post.php?post=1500&action=edit

The corresponding code on line 918 in back.php is:

$mfn_wraps[ $parent_wrap_ID ]['items'][] = $item;

I believe this is related to the moving from PHP 7.0 to 7.2 on my wordpress host (I cannot rollback to 7.0 due to host restriction.

WordPress Version: 5.1.1
PHP version: 7.2.20-2
BeTheme version: 14.3

(I understand this is not the current version of BeTheme, however, the original developer my client hired to deploy this site did not create a child theme and instead extensively modified the theme core code itself. I am working to upgrade the theme to the current version, however, it will take a good deal of time to get the custom code working.

Please let me know if anything can me modified in the meantime.

Thanks -

Steve

Comments

  • Hello Steve,
    your theme is not only outdated, it is ancient. Please update. If you have a child theme, update only the parent theme, as always. This will ofcourse also need changes in the child theme since it uses most likely outdated fucntions etc. We cannot be sure what custom code the other developer inserted.

    It is best to make a copy of the website, host it on a subdomain and update it there to see what happens.

    We suggest you disable all of your plugins and update the parent theme via FTP.
    Remove the old theme folder and install the newest version.
    thanks
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.