count(): Parameter must be an array or an object that implements Countable

Permalink
Hello

Some time ago I bought a block "Pagelist Gallery" but the developer does'n respond to my messages.

I want to update my server php from 7.1 to 7.4 but I get error: "count(): Parameter must be an array or an object that implements Countable" in this block "Pagelist Gallery" (print screen is in attached file).

I'm not in php so anyone can help me with this issue ? Some solution for the problem ?

The site is up to date 8.5.2 version.

Best Regards
Peter

1 Attachment

View Replies: View Best Answer
JohntheFish replied on at Permalink Reply
JohntheFish
The developer of Pagelist Gallery is pretty reliable. Unfortunately the support notification system on concrete5.org is sometimes not so reliable. Try contacting them through their web site.
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
Try this, change line 34 of that pagelist template from this...
if ($tags && count($tags)) {
To this
if (is_array($tags) && count($tags)) {
popson replied on at Permalink Reply
Thank you very much ConcreteOwl. Your solution turned out perfect. It's working now.