Awaiting an answer Templates

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

Asked by Mike 4 years ago Last activity 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.

9 replies

Mike Asked this

Is there any Solution?

Mike Asked this

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

Rashida Rahman Staff

Hi there!

Sorry for your issue.

Which PHP version you are using, please?

Best Regards

Mike Asked this

PHP 8.1
Joomla 4.2.3

Geoffrey Smith

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.

Rashida Rahman Staff

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

Rashida Rahman Staff

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

‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎

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.

Christian Stommel

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)

Log in to reply.