Staff replied Templates

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

Asked by Oleg Kor 3 years ago Last activity 3 years ago

Good afternoon

I have a problem running the Estate template.
The admin panel works without problems.
But on front pages I have an error: count(): Argument #1 ($value) must be of type Countable|array, null given

Template (quickstart) set to:

  • web server - nginx
  • PHP-8.1
  • quickstart updated after installation to Joomla - 4.3.4
  • mysqld Ver 8.0.34

Please. Help.

7 replies

Paul Frankowski Senior Staff
3 years ago · edited

Hi Oleg,

Fixed by me. It was problem with login module override.

Oleg Kor Asked this

good thank you

Oleg Kor Asked this

Sorry.
I'm sorry.
Problem solved.
For some reason, the standard Authorization module was in conflict.
I turned it off... The site is up and running.
Then I turned it on again - the site still works.

In general, I do not know why this happened, but the problem was solved much easier than it seemed.

Although, if someone knows the real reason, I would be glad to hear why this happened.

Thank you all.

Paul Frankowski Senior Staff

Look up.

Comunicante

Hi! I have the same issue, can you tell me how I can solve it? Thank you...

Paul Frankowski Senior Staff
3 years ago · edited

First enable that to see whole error message

error_reporting_debug.jpg

then make screenshot, upload on your server and share link to it.

@Oleg shared access, you didn't. That's why.

Comunicante

Hi Paul. Can you check the screenshot?
Thanks...

Paul Frankowski Senior Staff

Thx,

you have two options:

  1. Delete that file
  2. Or, override that file with file taken from raw Helix Ultimate template.
Comunicante

Sorry, I didn't understand which file I need to delete or replace...

Paul Frankowski Senior Staff

from your screenshot - first link in "Location" column.

info_1589_2023.gif

Comunicante

Thanks, Paul, you have been very helpful. I solved the issue.

Paul Frankowski Senior Staff

you're welcome, please mark as solved

Log in to reply.