WordPress caught an error with one of your plugins, Cornerstone. - critical error

I’ve checked the forum for any potential solution and there seems to be a few people with same problem - my site appears unbroken and is functioning - but in admin when trying to deactivate / delete plugins it automatically breaks and I get the critical error message. Thank god for back ups !!

The wordpress email tells me who the culprit is -

Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, Cornerstone.

Here’s the info from email

WordPress version 5.8
Current theme: X – Child Theme (version 1.0.0)
Current plugin: Cornerstone (version 5.3.3)
PHP version 7.0.33

Have double checked the PHP version on both the server and wordpress installation it’s PHP

version 7.4.24 and Wordpress Version 5.8.1 ( not the versions shown above from the error email ? )

Error Details

=============

An error of type E_ERROR was caused in line 106 of the file /home/customer/www/guitarfactoryschool.com/public_html/wp-content/plugins/cornerstone/includes/classes/Plugin.php. Error message: Uncaught Error: Call to undefined method ReflectionType::getName() in /home/customer/www/guitarfactoryschool.com/public_html/wp-content/plugins/cornerstone/includes/classes/Plugin.php:106

Stack trace:

#0 [internal function]: Themeco\Cornerstone\Plugin->Themeco\Cornerstone{closure}(Object(ReflectionParameter))

#1 /home/customer/www/guitarfactoryschool.com/public_html/wp-content/plugins/cornerstone/includes/classes/Plugin.php(117): array_map(Object(Closure), Array)

#2 /home/customer/www/guitarfactoryschool.com/public_html/wp-content/plugins/cornerstone/includes/classes/Plugin.php(137): Themeco\Cornerstone\Plugin->create(’\Themeco\Corner…’)

#3 /home/customer/www/guitarfactoryschool.com/public_html/wp-content/plugins/cornerstone/includes/classes/Plugin.php(73): Themeco\Cornerstone\Plugin->resolve(’\Themeco\Corner…’)

#4 /home/customer/www/guitarfactoryschool.com/public_html/wp-content/plugins/cornerstone/includes/classes/Plugin.php(44): Themeco\Cornerstone\Plugin->setup_services(‘is_admin’)

#5 /home/custo

Any suggestions would be greatly appreciated .

Hello @hamish,

Thanks for writing in!

You are using the outdated X theme (8.3.3) and Cornerstone (5.3.3) plugin that no longer works with the latest WordPress (5.8.1). Could you please update to the latest versions? Our latest versions are:

  • X theme 9.0.8
  • Cornerstone 6.0.8
  • WordPress 5.8
  • PHP 7.4

This latest release contains fixes for several issues so be sure to check out the changelog:

After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Please let us know how it goes.

Okay that’s exactly what I tried to do - but the site kept breaking with the critical error message before any update was implemented ! Will try again fingers crossed - thanks :slight_smile:

Hi @hamish,

You are most welcome. Please let us know if you find any further issues with this.

Thanks

Cheers it’s now working fine ! Thank you

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