Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: count(): Parameter must be an array or an object that implements Countable
Status | Resolved |
Add-on / Version | Simple Grids & Tables 1.2 |
Severity | |
EE Version | EE 4.3.2 |
Grant Jackson
Jul 08, 2018Hi there,
Description: I have a very simple table that is spitting out an error.
• count(): Parameter must be an array or an object that implements Countable.
• user/addons/simple_grids/ft.simple_table.php, line 135
This is a duplicate site from another one however the error is showing up here for the first time.
Detailed steps to reproduce the issue:
1. Input any table content
2. Output any table to the front end
3. See the errors at the top of the page
BoldMinded (Brian)
I’m unable to replicate this. Can you please share a screenshot of your field settings?
BoldMinded (Brian)
Please also share the template code you’re using to render the field.
Grant Jackson
Hi there, Thanks for the quick response.
Here is a link to the channel content: https://www.dropbox.com/s/2x3y3gf5elaxc7m/screencapture-hcbebenefits-admin-php-2018-07-09-22_48_48.png?dl=0 Here is a link to the channel field: https://www.dropbox.com/s/474houievlun5dc/screencapture-hcbebenefits-admin-php-2018-07-09-22_48_14.png?dl=0
[code} {insurance_sections:insurance_section_data_table}
{/insurance_sections:insurance_section_data_table} </code></pre>
BoldMinded (Brian)
I think your markup is incorrect. If insurance_sections is your Grid field, then it should be the following. You’ve added an extra {content} tag pair that I don’t know what its supposed to be.
Grant Jackson
Thanks for getting back to me. The grid is actually sitting in an EE4 Fluid Field.
When I implemented the above code, everything broke.
Realized I didn’t include the full section of code. This is it below:
BoldMinded (Brian)
I think your content prefix variable is incorrect, you don’t need to add prefix=”content:st:”, just “st:”
This is what is working in my local env.
BoldMinded (Brian)
Closing this b/c its been 3 weeks with no reply and I’m pretty certain the template example provided should be the solution.