Error encountered: 0 count(): Argument #1 ($value) must be of type Countable|array, null given - Forum | JoomShaper
Staff replied Helix Framework

Error encountered: 0 count(): Argument #1 ($value) must be of type Countable|array, null given

Asked by Lisa Willaman 3 years ago Last activity 3 years ago

I too am having this issue when updating from PHP 7.4.33 to 8.0.26!

Error msg: 0 count(): Argument #1 ($value) must be of type Countable|array, null given

I've put credentials below to check out my site.
I have a full backup prepared.
Thanks!
Lisa W.

3 replies

Rashida Rahman Staff

Hi there!

Sorry for your issue.

Maybe you forgot to share your administrative URL. However, which template you are using there, please?

Best Regards

Paul Frankowski Senior Staff
3 years ago · edited

Lisa, If I may...

you have over 20 extra installed extensions, it can be one of them, in most cases old plugin is source of problems with new PHP!

SPPB 3.8 and Helix Ultimate that you have from us can work in PHP 8.0x without any problems.
Personally I have 20 private sites based on those two and they just work OK even on PHP 8.x.

In Joomla Admin > Global Configuration:

  1. Debug System: ON
  2. Error Reporting: Maximum

Then switch to PHP 8.0 and preview site, Joomla should display you more info about error source.

Log in to reply.