Cornerstone plugin PHP error reported by web host

Hi,

Been having some issues with Cornerstone today, and it seemed like a good time to migrate our site to our preferred host for their backups. Anyway, the migration failed, and we got this error:

PHP Fatal error: Cannot redeclare class Cornerstone_Shortcode_Generator in /nas/content/live/partnersinspee/wp-content/plugins/cornerstone/includes/classes/classic/builder/class-shortcode-generator.php on line 2583

Plugins and theme are all updated to most recent version.

Hi There,

Thank you for writing in, is there a chance that you’re using PRO instead of X? If so, please deactivate and delete the Cornerstone plugin, because that will cause an error with PRO.

If you confirm that you’re using X, please deactivate and delete Cornerstone, then navigate to X dashboard, wait for a few seconds, and X will re-installed a fresh copy of Cornerstone on your site.

If the issue persists, please provide us login credentials (wp-admin and FTP) in a secure note so we can take a closer look.

Cheers!

The template and the stylesheet are both set to “X”.

Hi There,

Did you try my suggestion to re-install the Cornerstone? How did it go? As you said above the migration failed there might have been missing or corrupted files on your X or Cornerstone.

We’ve just released a new update today (X6.1.3 and CS 3.1.3), please update to that version. That is one way of making sure your X and Cornerstone has fresh files.

Remember to clear all caches (plugin, server-side, CDN, and browser’s cache) after updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Let us know how it goes,
Cheers!

Thank you. I haven’t tried this yet, since the whole site was down we thought it best to revert to a backup from before the updates.

I don’t think we have a cache, since we use WPEngine and they are super fast so we don’t have need for a separate caching plugin…but that makes me wonder if they are employing a server-side cache. I’ll need to look into that.

Hey @Claudis0001,

WPEngine has their own caching system. They can guide how to clear the cache. Also try resetting the permissions. They will also guide you for that.

Thanks.

OK I had them reset the permissions, still no luck.

The site is no longer broken entirely, but our purchase order form still fails to work (as forms go, ORDER is critical). We have set up staging so at least we can work on the problem in our staging area, rather than breaking the form on the main site. When I submit the form, I get this PHP error:

Warning: require(/nas/content/staging/partnersinspee/wp-content/themes/x/html2pdf/html2fpdf.php): failed to open stream: No such file or directory in /nas/content/staging/partnersinspee/wp-content/themes/x-child/purchase_order.php on line 736

Fatal error: require(): Failed opening required '/nas/content/staging/partnersinspee/wp-content/themes/x/html2pdf/html2fpdf.php' (include_path='.:/usr/share/pear/php:/usr/share/php:/usr/share/pear') in /nas/content/staging/partnersinspee/wp-content/themes/x-child/purchase_order.php on line 736

WPEngine informs me they don’t cache the staging server area, so that’s not the issue.

Since this is potentially a different php error (but both triggered by updating) do you want me to start a new ticket?

Hi @Claudis0001,

Yes, please open a new thread and share us your FTP in a secure note so we could check further the customization that causing the problem.

Please check also if your have created this in your child theme:

/nas/content/staging/partnersinspee/wp-content/themes/x/html2pdf/html2fpdf.php

Let us know how it goes.

Thanks.

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