Critical Error on New WP Install

I’m getting the following error one of my existing websites running WP 5.9.1 and on a completely fresh install.

There has been a critical error on this website. Please check your site admin email inbox for instructions.

Learn more about troubleshooting WordPress.

I’ve downloaded a fresh copy of Pro, uploaded it through the theme uploader, and as soon as I activate Pro, I get stuck with this error.

For what it’s worth - I had the same error on a separate live website. I couldn’t figure out how to fix it, so I created a new “staging” site to try to pin point the problem. The commonality is the Pro theme.

Fatal error : Call to undefined method ReflectionParameter::hasType() in /home/roospoolandspa/public_html/wp-content/themes/pro/cornerstone/includes/classes/Util/IocContainer.php on line 40

There has been a critical error on this website. Please check your site admin email inbox for instructions.

Learn more about troubleshooting WordPress.

if (!$param->hasType()) {
return array_shift($args);
}

I enabled debugging and tracked down the problem. Once I got the line of code that was causing the fatal error, I searched this forum for similar code:

“hasType()”

That search pointed me to a recommendation for updating my PHP version.

Once I updated to PHP 7.4, the error went away.

Hi @nalber,

We’re glad that you’re able to figure it out! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

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