• Resolved Jeltien

    (@jeltien)


    Woocommerce give the following warning on my product page:

    Warning: sizeof(): Parameter must be an array or an object that implements Countable in D:\appdata\IIS\vhosts\trisupport.nl\httpdocs\wp-content\themes\xsport\woocommerce\single-product\meta.php on line 17

    How can I fix this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Stef

    (@serafinnyc)

    This usually means you’re not running a high enough PHP. What version are you running?

    Nicola Mustone

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello @jeltien,
    As suggested above, it might be a PHP version issue. Try to contact your host and ask them to update your PHP version to at least 5.6, better if it’s 7+.

    Also, if you check our meta.php template you will notice that we do not use the function sizeof(). This also indicates an issue with your theme. I suggest you contact them if the issue persists.

    Thread Starter Jeltien

    (@jeltien)

    Thank you for the reactions. I contacted the theme owners and the problem is solved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warning: sizeof(): Parameter must be…’ is closed to new replies.