Hi,
After updating to V5.0.1 from V4.3.3 our home page came up with an error. Would not show any content. Page is built with the Pro Builder.
I did not copy the specific error message, but it was an undefined variable message regarding “Cannot declare class Cornerstone_Shortcode_Preserver” It specifically related to line 104 on file public_html/wp-content/themes/pro/cornerstone/includes/classes/element/class-element-front-end.php
This section:
(line 103) if ($content_entity->get_is_legacy()) {
(line 104) $element_output = cs_dynamic_content( do_shortcode( $content ) );
} else {
$populated = $this->elementService->loadEntity( $content_entity );
$this->elementService->registerEntityStyles( $content_entity );
foreach ($populated[0] as $region) {
if ( $region[’_region’] === ‘content’) {
The page rendered fine when editing or viewing in Pro builder, but on the front end, it only had that error message. The rest of the page elements rendered fine (header/footer/nav).
Page is (hidden)
I did not test ALL pages, just a couple other than this. I did not see any errors - but I was kind of rushing so I could have missed things.
Thanks.