"Parameter must be an array" Error on view Page

This topic has 8 replies, 3 voices, and was last updated 3 years, 7 months ago ago by John Holden

  • Avatar: Maxi
    Maxi
    Participant
    August 27, 2020 at 22:44

    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
    August 28, 2020 at 08:09

    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
    August 28, 2020 at 10:42

    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
    August 28, 2020 at 10:50

    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
    August 28, 2020 at 12:14

    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
    August 28, 2020 at 12:19

    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
    August 28, 2020 at 16:17

    Problems seems to occur not every time.

    Please contact administrator
    for this information.
    Avatar: John Holden
    John Holden
    Support staff
    August 29, 2020 at 06:12

    Hi,

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

    Regards,
    Hung PD

  • Viewing 8 results - 1 through 8 (of 8 total)

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

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.