"Parameter must be an array" Error on view Page

7 replies3 participantsUpdated by John Holden

  • Avatar: Maxi
    Maxi
    Participant

    I encounter the error below anytime I visit a page. Shop Page works fine. What could be the problem

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/gsmtinz.com/public_html/wdpr/wp-includes/formatting.php on line 3357
    WANT DEALS?

    Please, contact administrator
    for this information.

    7 Answers

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    As I can see, you selected to show Featured products – https://prnt.sc/u7axqb
    Make sure that you have Featured products (I can’t check it vid your Dashboard with current access), or change Products type in settings of the element.

    Regards

    Avatar: Maxi
    Maxi
    Participant

    Thanks.

    I still get the error even when I remove the featured items.
    Though I actually have featured products.

    The problem started after the update to Version 7 of the theme.

    Waiting for your response.

    Thanks

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Where do you have the error? Try to clear cache and check one more time, because I do not see the warning on the mentioned page – https://prnt.sc/u7e0cp

    Regards

    Avatar: Maxi
    Maxi
    Participant

    Thank you for checking.
    The page you loaded was after I remove the Xtheme Product Widget. The page works well without Xtheme Product Widgets. See the error below.
    Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /home/customer/www/gsmtinz.com/public_html/wdpr/wp-content/plugins/et-core-plugin/app/models/widgets/products.php:207 Stack trace: #0 /home/customer/www/gsmtinz.com/public_html/wdpr/wp-content/plugins/elementor/includes/widgets/wordpress.php(271): ETC\App\Models\Widgets\Products->widget(Array, Array) #1 /home/customer/www/gsmtinz.com/public_html/wdpr/wp-content/plugins/elementor/includes/base/widget-base.php(530): Elementor\Widget_WordPress->render() #2 /home/customer/www/gsmtinz.com/public_html/wdpr/wp-content/plugins/elementor/includes/base/widget-base.php(643): Elementor\Widget_Base->render_content() #3 /home/customer/www/gsmtinz.com/public_html/wdpr/wp-content/plugins/elementor/includes/base/element-base.php(724): Elementor\Widget_Base->get_raw_data(true) #4 /home/customer/www/gsmtinz.com/public_html/wdpr/wp-content/plugins/elementor/includes/base/element-base.php(724): Elementor\Element_Base->get_raw_data(true) #5 /home/customer/www/gsmtinz.com/public_html/ in /home/customer/www/gsmtinz.com/public_html/wdpr/wp-content/plugins/et-core-plugin/app/models/widgets/products.php on line 207

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Provide URL of page, where the Fatal error persists, and temporary FTP access, so we can take a closer look.

    Regards

    Avatar: Maxi
    Maxi
    Participant

    Problems seems to occur not every time.

    Please contact administrator
    for this information.
    Avatar: John Holden
    John Holden
    Participant

    Hi,

    Please provide URL of the mentioned page, so I can take a closer look.

    Regards,
    Hung PD

You must be logged in to reply to this topic.Log in/Sign up