Count(): Argument #1 ($value) Must Be Of Type Countable|array, Null Given - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Count(): Argument #1 ($value) Must Be Of Type Countable|array, Null Given

M

Mike

Template 3 years ago

Dear Friends,

i have some Problem with the TPL Newsberg.

Installation is ok. After Update all SP Tools and Joomla there is an Error:

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

This is ONLY, when i am logged OFF in the Frontpage (as a User). When i am logged in admin (components, SP Page Builder), there is no Problem in Admin and Frontend.

0
9 Answers
M
Mike
Accepted Answer
3 years ago #87473

Is there any Solution?

0
M
Mike
Accepted Answer
3 years ago #87556

Hi Support,

i found the Problem.. But maybe u have one Solution for it?

It comes from the Login Field in the Top. This was the Problem for this Error.

lg Mike

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #87630

Hi there!

Sorry for your issue.

Which PHP version you are using, please?

Best Regards

0
M
Mike
Accepted Answer
3 years ago #87870

PHP 8.1 Joomla 4.2.3

0
Geoffrey Smith
Geoffrey Smith
Accepted Answer
3 years ago #87925

This is a known issue and has been extensively discussed in another question in the forum. The problem is with the login.php file as far as I understand. I do onot know why a fix has not been issued yet.

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #87983

Hi Mike

Please downgrade you PHP version to PHP 8.0 or lower, as our Helix Ultimate supports upto PHP 8.0 (maximum). But they works good with PHP 7.4.

Best Regards

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #87986

Hello Geoffrey Smith,

Thanks for your comment here.

We are looking forward to be compatible with higher PHP versions. If there was a conversation on this topic, then the issue has been forwarded to the developer team already.

Have a nice day!

Best Regards

0
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
Accepted Answer
3 years ago #88051

Hi Mike,

this is the thread that Geoffrey referred to, and in which I have already identified several problems and posted possible solutions.

https://www.joomshaper.com/forum/question/17241

Maybe the things mentioned above will help you.
I am not part of the support team and can therefore only help to a limited extent.

0
CS
Christian Stommel
Accepted Answer
2 years ago #99871

Hello and please excuse me if I am speaking in layman's terms here. I too wanted to increase the PHP version from 7.4 to 8.0; under Joomla 3 X and Helix Ultimate this was ultimately no problem with a current SP Page Builder.

After switching to Joomla 4, I also get the error message

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

in connection with the module "Login Form

Without logging in, everything works; with logging in, too, at first - but at the latest after logging out, the error message appears.

With a downgrade to PHP 7.4 the page runs again.

After some cross-reading, I see that the problem is not unknown; however, I cannot see whether there is already a solution for this? Especially one that the hobby user can implement?

Thank you for relevant tips

Christian

Translated with www.DeepL.com/Translator (free version)

0