Cornerstone - Plugin could not be activated because it triggered a **fatal error**

X version 9.0.1
Cornerstone 6.0.1
PHP 7.0 (Network solutions has no option for 7.4)
site: https://smcni.org/

Plugin could not be activated because it triggered a fatal error .

Fatal error : Uncaught Error: Call to undefined method ReflectionType::getName() in /data/40/5/53/4/5705493/user/6809575/htdocs/wp-content/plugins/cornerstone/includes/classes/Util/IocContainer.php:55 Stack trace: #0 [internal function]: Themeco\Cornerstone\Util\IocContainer->Themeco\Cornerstone\Util{closure}(Object(ReflectionParameter)) #1 /data/40/5/53/4/5705493/user/6809575/htdocs/wp-content/plugins/cornerstone/includes/classes/Util/IocContainer.php(63): array_map(Object(Closure), Array) #2 /data/40/5/53/4/5705493/user/6809575/htdocs/wp-content/plugins/cornerstone/includes/classes/Plugin.php(107): Themeco\Cornerstone\Util\IocContainer->resolve(‘Themeco\Corners…’) #3 /data/40/5/53/4/5705493/user/6809575/htdocs/wp-content/plugins/cornerstone/includes/classes/Plugin.php(96): Themeco\Cornerstone\Plugin->resolve(‘Themeco\Corners…’) #4 /data/40/5/53/4/5705493/user/6809575/htdocs/wp-content/plugins/cornerstone/includes/classes/Plugin.php(66): Themeco\Cornerstone\Plugin->setup_services(‘preinit’) #5 /data/40/5/53/4/57054 in /data/40/5/53/4/5705493/user/6809575/htdocs/wp-content/plugins/cornerstone/includes/classes/Util/IocContainer.php on line 55

Updated to 9.0.2 and 6.0.2 and now the error is…

Fatal error : Call to undefined method ReflectionParameter::hasType() in /data/40/5/53/4/5705493/user/6809575/htdocs/wp-content/plugins/cornerstone/includes/classes/Util/IocContainer.php on line 40

Hi @bnraines,

Thanks for reaching out about this. We’ll take a look at why that error could be happening. Meanwhile, do you have access to PHP 7.1 or higher? If I recall correctly, PHP 7.0 had a slightly different implementation of the Reflection API and we had to account for it differently. It’s possible this regressed, or a new issue has come up. Until we can solve it, I expect using 7.1 or higher would correct this.

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