Critical Error on Website

Received an email that my site is experiencing a technical issue, and yep, it is down. I am locked out of the site and control panel but the email was kind enough to point me directly to the error. I found my way to that file through my host file manager and used code checkers to fix the file. Uploaded and then just shows the message ‘This Page isn’t Working.’ Reverted to the broken file since I only know enough to be dangerous.

My host support was not able to help, they say it is an issue with the plug in. I then go to Themeco for them to assist, but I had to pay for more support which sent me to … a forum.

anywho, I am hoping that one of you kind individuals can assist me in my limited knowledge and expertise to get my site back up.

This was the error that I got:

An error of type E_COMPILE_ERROR was caused in line 112 of the file /public_html/wp-content/plugins/cornerstone/includes/classes/elements/class-element-front-end.php. Error message: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)

Hey @wkavicky,

Thanks for reaching out!

That error is unfortunately in the core Pro theme of version 5 so you’ll need to upgrade to the latest pro to get rid of the fatal error or step down to PHP 7. Most of the issues with PHP 8 were with our plugins so I would start there to. Things like the email forms if you are using them. Let us know if that helps.

If I can’t reach my site, how do upgrade? Can I simply drag and drop in FTP and it will overwrite the files that require updating?

Hi @wkavicky,

You can delete the Cornerstone plugin from the wp-content/plugins folder through the FTP and then update the X and install the Cornerstone by following the below steps.

  1. Update the X theme through the WordPress admin dashboard. If not accessible, you can delete it through the FTP and upload the latest version from your Themeco Account.
  2. After the X theme is updated, use the link in the dashboard to automatically install the Cornerstone. It will be on the latest version

NOTE: Before you update the X, please check the PHP version of your server. Please update it to 8.0, if already not updated.

Thanks

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