Update X from 6.2.5 to 8.1.3 and site crashes now with error related to portfolio on staging site (WP 5.5.3)

Fatal error : Uncaught Error: Call to undefined function x_is_portfolio_item() in /nas/content/staging/csoftware/wp-content/themes/x/framework/functions/frontend/content.php:45 Stack trace: #0 /nas/content/staging/csoftware/wp-content/themes/x/framework/functions/frontend/classes.php(100): x_get_content_layout() #1 /nas/content/staging/csoftware/wp-includes/class-wp-hook.php(289): x_body_class(Array) #2 /nas/content/staging/csoftware/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #3 /nas/content/staging/csoftware/wp-includes/post-template.php(836): apply_filters(‘body_class’, Array, Array) #4 /nas/content/staging/csoftware/wp-content/plugins/WP_Estimation_Form/includes/lfb-core.php(912): get_body_class() #5 /nas/content/staging/csoftware/wp-includes/class-wp-hook.php(289): LFB_Core->conditionally_add_scripts_and_styles(Array) #6 /nas/content/staging/csoftware/wp-includes/plugin.php(249): WP_Hook->apply_filters(Array, Array) #7 /nas/content/staging/csoftware/wp-includes/class-wp-query.php(3190): apply_fil in /nas/content/staging/csoftware/wp-content/themes/x/framework/functions/frontend/content.php on line 45

Hi @bchesley,

Thank you for reaching out to us. When you update X please make sure to update Cornerstone to the latest version as well to avoid conflicts and potential errors.

You can find the latest version numbers here: (https://theme.co/docs/version-compatibility) Then you can compare them to what’s installed on your site. If you find anything to be out of date, you can review our update guide.

After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Let us know how this goes!

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