Website down after upgrading to php 8.1

Hello,

I have recently upgraded to php 8.1 from 7.4

I am now getting an error message displaying on the home page saying:

E_DEPRECATED: Return type of Themeco\Cornerstone\Parsy\Token::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/rz307iqp/public_html/wp-content/themes/pro/cornerstone/includes/classes/Parsy/Token.php on line 33.

I cannot suppress this using ini_set etc.

I have also lost access to my sites back end, getting a “Critical error” message when I try to log in, enabling debugging results in the same error as above.

I have attempted to roll the site back to version 7.4 but the problem remains.

Can you please advise as to how to resolve this?

Can you also please supply me with a list of what PHP extensions are required to be enabled for PRo / Cornerstone to function correctly?

Best Regards,

Stephen

That deprecated warning is removed in the latest version of Pro / X, however that warning should not be taking down your site.
What does the Critical Message say when WP_DEBUG is on?
Giving us access in a secure note might help us assist you. Woocommerce will need the PHP Extension PDO, and PDO MySQL.

The following extensions needed to be upgraded to PHP 8 in this release.

  • Email forms
  • Woo Checkout editor
  • Under construction
  • Content Dock

So here are the access credentials if you could have a look please:

Hi Stephen,

Unfortunately, there are no credentials attached.

Thanks

in the secure note

Hey Stephen,

You seem to forget to include the password for the FTP access. Please have it updated so we can check.

Thanks.

Sorry I have updated the secure note now

Hi There,

Regretfully the FTP directory is empty.

Screenshot 2023-01-01 at 8.08.02 AM

Please double check it. In the meantime, please downgrade your PHP version to 8.0 and test the site again.

Best Regards.

Sorry I accidentally sandboxed the user it should work there now.

Hey There,

The WP Admin asks for 2FA authentication which we do not have. I also noticed that you have reverted back to Pro 5.1.5 version. I would highly recommend that you create a staging site and do the updates in the staging to prevent from any interruption or downtime of your live site. We can alway do the new update testing and troubleshooting in the staging site. Once everything is 100% working in the staging, you can then push those changes to the live site. If you haven’t created a staging site yet, this article can help you:

Best Regards.

As I mentioned previously this is due to the 2FA from the Wordfence plugin. I tried disabling the plugin through FTP by renaming it’s directory but to no avail. You can try to disable it over FTP.

Also I don’t know how the site could have reverted to Pro 5.1.5 no one myself included would have done this?

That guide you sent me isn’t working it requires installing a plugin and I don’t have access to the back end! So we will have to just work on the live site.

Hi Stephen,

You can download the Previous version available in your Themeco Account. Or you can restore from the website backup if you have any. Or else you can contact your web hosting company if they have the backup file in the case.

Hope it helps.
Thanks

Hi so I have tried downgrading the theme, I have reviewed the debug log and seemed to be getting an error in a plugin called feed-them-social - I have deleted this now.

I am still getting an error saying “There has been a critical error on this website. Please check your site admin email inbox for instructions.” when I try to log in to the back end.

Can you please help. I am going to create a secure note and attach the debug.log file.

I have also removed the firewall plugin so hopefully you will no longer be asked for a 2FA code when trying to access the site backend.