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 .