Parameter must be an array or an object that implements Countable / fieldgroup.php on line 605

More
5 years 5 months ago - 5 years 5 months ago #76913 by kath
hi there,

i get above error when trying to render fields that are grouped in a field-group-field.

[setup]
J 3.9.10
FC 3.3.1.5

[EDIT 1]
php 7.2.20

[EDIT 2]
Happens bevause i configured the field-group-field like this:
- viewing > layout > Use customized HTML > switched to "Custom HTML" > and then an empty textarea
- viewing > value-list > configured here what to render.

[My fix]
change in the field-group-field:
- viewing > layout > Use customized HTML > switched to "Layout"

That basically fixed it. Maybe the php-error could be changed to a Notice á la ~"You need to confured field xy like this: ... " (?)

thank you!
kath :)
Last edit: 5 years 5 months ago by kath.

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago - 5 years 5 months ago #76917 by ggppdk
Hello

yes when parameter custom HTML is empty
a message is supposed to be shown to help the user

but existing code does not "return" proper value (an array of single string)
and this causes "not countable" error in PHP 7.2+

i have committed a fix here:
github.com/FLEXIcontent/flexicontent-cck...4e2bee27ecdbe1a9a45f

If you want to use the patched version you can install via URL v3.3.1.16-hotfix branch
github.com/FLEXIcontent/flexicontent-cck/archive/3.3.1.x.zip


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 5 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #76950 by kath

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.403 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline