Site blank after upgrading X theme

Hiya - I too have just upgraded our site - everything was working till I upgraded the X core theme - suggestions? Would be greatly appreciated.

PHP Version 5.4.45
Child Theme Version 7.2.3
Cornerstone Version 4.2.3
WP Version 5.1.6
Memory Limit 1G

Ran the debugger > /public_html/wp-content/themes/x/framework/functions/frontend/content.php on line 349

Hi @nikolasa,

Thanks for reaching out.

May I know the error being displayed by your debugger for the file /public_html/wp-content/themes/x/framework/functions/frontend/content.php on line 349 ?

That line is pointing to this code

if ( X_WOOCOMMERCE_IS_ACTIVE && empty( get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true ) ) && x_is_product() ) return;

But I’m not sure what error, especially it works fine on my end.

Thanks!

1 Like

Thanks for your quick reply, so very appreciated :star_struck: The current theme is 2020 - I had to disable x theme so the site would at least be accessible.

Just activated x theme and ran debug:

Can’t use function return value in write context in /public_html/wp-content/themes/x/framework/functions/frontend/content.php on line 349

Hi @nikolasa,

Thanks for the details, it’s caused by your current PHP version which is 5.4.45. Please upgrade your PHP to at least 5.6 and above.

Thanks!

1 Like

Fantastic, that worked!! Really appreciate your help :slight_smile:

You’re welcome!
We’re glad @Rad were able to help you out.

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