Home Forums Theme support Parameter must be an array or an object that implements Countable in Cora theme Reply To: Parameter must be an array or an object that implements Countable in Cora theme

Hi,

Thank you for your quick reply.
Sorry, but i think this issue:

Warning: count(): Parameter must be an array or an object that implements Countable in /home/public_html/wp-content/themes/cora/7league/shortcodes.php on line 4198

is related to an PHP conflict error instead of just a ”warning”
Is this because i noticed the social media buttons are also not visible on my website, after imported all the demo-content of the theme.

When i check a related topic online, i noticed this:

From PHP 7.2.0 count() will now yield a warning on invalid countable types passed to the array_or_countable parameter.

You can check this topic about this issue here:https://mage2.pro/t/topic/5216/2

I’m not a programmer, but i think line 4198 of cora/7league/shortcodes.php in your Cora theme needs to be adjusted to fix this issue:

This is the line:
for($i=0;$i<count($social_media);$i++) {

Do you know what i need to adjust to this code-line above to fix this issue?

Looking forward to hear from you,

Best regards,

D.J.