Hello everyone!

I have GK CloudHost template.

If I change my php version 7.4 to 8 or 8.1, give me this error:

0count(): Argument #1 ($value) must be of type Countable|array, stdClass given
It appears the page you were looking for doesn't exist. Sorry about that.

So I renut back and I set the maximum error report and it display this:

Warning: count(): Parameter must be an array or an object that implements Countable in /home/casafranc/public_html/templates/gk_cloudhost/html/com_content/article/default.php on line 14

This is the code on line 14:

if($attribs && count($attribs)) {
foreach($attribs as $key => $value) {
if($value != null) {
$params->set($key, $value);
}
}
}

Now, I understand that I have to implement some code but I don't known what I have to write and change.

Can you help me? 🙂

Thanks a lot!

Write a Reply...
You need to Login to view replies.