*

buggyboy

  • *
  • 9 posts
  • ---
[Solved] Warning: count(): Parameter must be an array...
« on: October 09, 2019, 09:14:15 AM »
Hello.

Can someone start what with this PHP error message and may have a solution:


Warning: count(): Parameter must be an array or an object that implements Countable in /is/htdocs/xxxxxxxxxxxx/www/xxxxxxxx/oc-content/themes/gum/class/GumViewHelpers.php on line 54

Line 54: if (count($aUselfulTips>0)) : ?>


I get the bug in the GUM theme from the Osclass team and there is a counter for tips.

best regards
peter
« Last Edit: October 10, 2019, 11:07:06 AM by buggyboy »
-- kommt noch --

Marked as best answer by frosticek on October 10, 2019, 09:58:40 AM
*

MB Themes

Re: Warning: count(): Parameter must be an array...
« Reply #1 on: October 10, 2019, 09:58:30 AM »
Incorrect
if (count($aUselfulTips>0))

Correct
if (count($aUselfulTips) >0)

You should ask for refund when osclass ignores your support request
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

buggyboy

  • *
  • 9 posts
  • ---
Re: Warning: count(): Parameter must be an array...
« Reply #2 on: October 10, 2019, 11:05:37 AM »
Hello MB Themes!

Incorrect
if (count($aUselfulTips>0))

Correct
if (count($aUselfulTips) >0)

Thank you very much

Quote
You should ask for refund when osclass ignores your support request

since the forum of osclass is closed as well as the marketplace, I will probably hardly anyone answer unfortunately

best regards
peter
-- kommt noch --