Count(): Argument #1 ($value) Must Be Of Type Countable|array, String Given - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

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

PD

Peter Dowse

Extension 9 months ago

Hi Guys,

Getting this error message on some listings for the LMS.

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

It's only happening on some listings and I'm not sure what's going on.

Any chance I can get some assistance.

I've turned on debugging and error messages, but that's not giving me any clues.

0
6 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 9 months ago #180026

Hello Peter Dowse

I have modified this file:

templates/shaper_yoga/html/com_splms/event/default.php

and fixed your issue. Please check your site now.

Best regards

0
PD
Peter Dowse
Accepted Answer
9 months ago #180024

This this listing as an example

https://pilatesinstituteofqueensland.com.au/calendar/matwork-level-1-brisbane-feb-2025

Navigated to from this page https://pilatesinstituteofqueensland.com.au/calendar "Matwork – Level 1 BRISBANE Feb 2025"

0
PD
Peter Dowse
Accepted Answer
9 months ago #180151

Many thanks - that's greatly appreciated.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 9 months ago #180161

You are welcome 😊

0
PD
Peter Dowse
Accepted Answer
3 months ago #198241

Hi Ofi,

We're getting the same issue again - does this file need updating once more?

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

See this page as an example.

https://pilatesinstituteofqueensland.com.au/calendar/matwork-level-aug-2025

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 months ago #198305

I have fixed the file again. Please save the file separately so that you can change if after updating the template.

0