New post errors

My site ohiotimberworks.com is generating critical errors when I attempt to add a new post or use a duplication plugin.

Error Details

An error of type E_ERROR was caused in line 34 of the file /home2/timber/public_html/wp-content/themes/x/framework/functions/global/admin/meta/setup.php. Error message: Uncaught Error: Call to undefined function create_function() in /home2/timber/public_html/wp-content/themes/x/framework/functions/global/admin/meta/setup.php:34
Stack trace:
#0 /home2/timber/public_html/wp-content/themes/x/framework/functions/global/admin/meta/entries.php(82): x_add_meta_box(Array)
#1 /home2/timber/public_html/wp-includes/class-wp-hook.php(310): x_add_page_meta_boxes(‘post’)
#2 /home2/timber/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#3 /home2/timber/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home2/timber/public_html/wp-admin/includes/meta-boxes.php(1599): do_action(‘add_meta_boxes’, ‘post’, Object(WP_Post))
#5 /home2/timber/public_html/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post))
#6 /home2/timber/public_html/wp-admin/post.php(206): require(’/home2/timber/p…’)
#7 {main}
thrown

Hi @nvanhoose,

Thanks for reaching out.
I have checked your website and found that you are using the much older version of X i.e. 4.3.1 and the Cornerstone version i.e. 1.1.3 and which might be the reason behind your problem.

As you are using a much older version, I would suggest you please copy your live site to a staging server and update the X and Cornerstone by following below steps.

  1. Delete the existing Cornerstone
  2. Update the X theme to the latest version on automatic updates
  3. After the X theme is updated, use the link in the dashboard to automatically install the Cornerstone. It will be the latest version.

And If everything goes fine in your staging then migrate the staging server to live and check if that resolves your problem or not.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.