ClassicPress / classicpress-seo

Classic SEO is the first SEO plugin built specifically to work with ClassicPress. A fork of Rank Math, the plugin contains many essential SEO tools to help optimize your website.
GNU General Public License v2.0
29 stars 10 forks source link

Can't activate V 2.2.0 because of Fatal error #166

Open tmconnect opened 10 months ago

tmconnect commented 10 months ago

I got this fatal error as I'm try to activate the current version 2.2.0 with ClassicPress 1.7.1 running on PHP 8.0.20

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /.../wp-content/plugins/classicpress-seo/includes/class-update-client.php:872 Stack trace: #0 /.../wp-content/plugins/classicpress-seo/includes/class-update-client.php(872): count(NULL) #1 /.../wp-content/plugins/classicpress-seo/includes/class-update-client.php(112): Classic_SEO\UpdateClient\UpdateClient->get_latest_version_number() #2 /.../wp-content/plugins/classicpress-seo/includes/class-update-client.php(135): Classic_SEO\UpdateClient\UpdateClient->__construct() #3 /.../wp-content/plugins/classicpress-seo/includes/class-update-client.php(902): Classic_SEO\UpdateClient\UpdateClient::get_instance() #4 /.../wp-content/plugins/classicpress-seo/classicpress-seo.php(267): require_once('/var/www/web232...') #5 /.../wp-content/plugins/classicpress-seo/classicpress-seo.php(183): Classic_SEO->includes() #6 /.../wp-content/plugins/classicpress-seo/classicpress-seo.php(165): Classic_SEO->setup() #7 /.../wp-content/plugins/classicpress-seo/classicpress-seo.php(430): Classic_SEO::get() #8 /.../wp-content/plugins/classicpress-seo/classicpress-seo.php(434): cpseo() #9 /.../wp-admin/includes/plugin.php(2138): include('/var/www/web232...') #10 /.../wp-admin/plugins.php(176): plugin_sandbox_scrape('classicpress-se...') #11 {main} thrown in /.../wp-content/plugins/classicpress-seo/includes/class-update-client.php on line 872

Thanks for any help.

ClassyBot commented 10 months ago

This issue has been mentioned on ClassicPress Forums. There might be relevant details there:

https://forums.classicpress.net/t/classicpress-seo-causes-http-500-errors/5010/7