Cant Use Pro Theme

Hello, when trying to activate Pro Theme or the child theme I get the following errors:

An error of type E_ERROR was caused in line 31 of the file /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/elements/classic/_alternate/widget-area.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/elements/classic/_alternate/widget-area.php:31
Stack trace:
#0 /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/classes/classic/elements/class-element-base.php(61): CS_Widget_Area->controls()
#1 /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/classes/classic/elements/class-element-base.php(75): Cornerstone_Element_Base->load_controls()
#2 /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/classes/classic/elements/class-element-orchestrator.php(274): Cornerstone_Element_Base->model_data()
#3 /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/classes/element/class-element-manager.php(180): Cornerstone_Element_Orchestrator->getModels()
#4 /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/classes/element/class-element-manager.php(15): Cornerstone_Element_Manager->upgrade_classic_elements()
#5 /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/classes/Elements/Manager.php(11): Cornerstone_Element_Manager->init()
#6 /home/garage/public_html/dealerszees2022/wp-content/themes/pro/cornerstone/includes/classes/Services/Elements.php(29): Themeco\Cornerstone\Elements\Manager->register()
#7 /home/garage/public_html/dealerszees2022/wp-includes/class-wp-hook.php(307): Themeco\Cornerstone\Services\Elements->init(’’)
#8 /home/garage/public_html/dealerszees2022/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#9 /home/garage/public_html/dealerszees2022/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#10 /home/garage/public_html/dealerszees2022/wp-settings.php(598): do_action(‘init’)
#11 /home/garage/public_html/dealerszees2022/wp-config.php(93): require_once(’/home/garage/pu…’)
#12 /home/garage/public_html/dealerszees2022/wp-load.php(50): require_once(’/home/garage/pu…’)
#13 /home/garage/public_html/dealerszees2022/wp-admin/admin.php(34): require_once(’/home/garage/pu…’)
#14 /home/garage/public_html/dealerszees2022/wp-admin/themes.php(10): require_once(’/home/garage/pu…’)
#15 {main}
thrown

Can you please assist?

Hey @powersnw,

Thanks for reaching out!

We cannot see your staging area because the website is too long to respond. See the secure note for more information.

Thank you.

Use a VPN to access from the US. You are most likely accessing from a blocked country.

Hello @powersnw,

Please go to Tools > Site Health > Info > Server. Your PHP version is 8.0 and Upload max filesize is only 5M. Increase it to at least the same amount as your PHP post max size. You may need to contact your hosting provider to make sure that you have the right server configuration to run the latest WordPress. Please check out this compatibility requirements here:

Best Regards.

Ok that has been done and when trying to activate the theme it still crashes.

Hi @powersnw,

The issue you specify mostly occurs due to the PHP version. I would suggest you make sure that the PHP version should be 7.4. If the version is already set to the 7.4, there might be some different reasons behind your issue.
I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

  1. Theme Related Issue
  2. Plugin Conflict
  3. Theme Update related issue
  4. [CSS/JS Customization](https://theme.co/docs/common-issues#css-js-customization
  5. Disabling Cache

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above help, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access to the secure note including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– FTP/CPanel credentials to get file access.

To create a secure note, click the key icon underneath any of your posts.

Thanks

Reverting to 7.4 fixed it and allowed me to find the culprit. Back to PHP 8 and working swell, thank you so much!

You’re welcome. Thanks for letting us know that your issue has been fixed already.

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