Updating from version 3.1.2 to version 5.1.45

I need to update my site from version 3.1.2 to version 5.1.45. Since there is no update indicated in the automatic updates I attempted via SFTP and it broke the site. Debug shows:

Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /www/wp-content/themes/pro/cornerstone/includes/classes/elements/class-element-front-end.php on line 112

How do I go about updating from the old version? I appreciate the help.

Hey @klevur,

Thanks for reaching out!

You could try updating your PHP version to 7.4 and let see if the deprecated warning will be removed. If not, you turn off the warnings by checking this article.

Hope that helps.

We are already on PHP 7.4.

So is it safe to say that just doing a manual upgrade of the theme via SFTP should work fine and that I just need to hide that error?

As it stands now that error prevents access to the site or the admin area.

Also, after enabling debugging I am getting this error after a manual update:

Fatal error: Cannot declare class Cornerstone_Shortcode_Preserver, because the name is already in use in /www/wp-content/themes/pro/cornerstone/includes/classes/classic/utility/class-shortcode-preserver.php on line 8

Hey @klevur,

Yes, it is safe to manually update the theme via SFTP and it should be working fine. On the other hand, In Cornerstone 6+ that file should be located here:

cornerstone/includes/classes/classic/elements/class-shortcode-preserver.php

But in the error above it claims to be here:

cornerstone/includes/classes/classic/utility/class-shortcode-preserver.php

I suspect what might have happened is the new files were added, but you still have the old files present in which case it would find both and crash like this.

I would recommend fully deleting the Pro theme and reinstalling it. A good way to do this would be:

  • Go to your file manager/ or use FTP
  • locate this path wp-content/themes and delete the Pro themes except for the child theme
  • Then go to your themeco dashboard and download the latest version of Pro
  • Upload and activate it on your website

Hope that helps.

Hey there @marc_a

Now, we are getting these types of error messages

[19-Apr-2022 23:00:07] WARNING: 2022-04-19 23:00:07 Failed login attempt from host=45.8.68.146"
45.8.68.146 - 19/Apr/2022:23:00:06 +0000 “POST www.authorsites.co//wp-login.php” 200 /www/.wordpress/wp-login.php 83390392 6290992 373.004 2048 32.17%

AND

[20-Apr-2022 08:57:49] WARNING: child 3652 said into stderr: “Wed Apr 20 08:57:49 2022 (3652): Warning Interned string buffer overflow”
14.97.61.178 - 20/Apr/2022:08:57:49 +0000 “GET www.authorsites.co/wp-json/themeco/data/index-headers?search=&cursor=0&_locale=user” 403 /www/index.php 90547760 6290992 163.487 2048 73.40%

And, the sites are logging out automatically after a few seconds which is very irritating, the changes are not getting saved.

Hey @klevur,

To investigate further with your issue, would you mind sharing your credentials? To do that, please give us the following information in a Secure Note.

  • WordPress Login URL
  • Admin level username and password
  • FTP Access

You can find the Secure Note button at the bottom of your posts.

Thank you.

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