Home Forums WoodMart support forum PHP Warning: Invalid argument supplied for foreach()

PHP Warning: Invalid argument supplied for foreach()

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46447

    alexminza
    Participant

    AH01071: Got error 'PHP message: PHP Warning: Invalid argument supplied for foreach() in /[PATH]/wp-content/themes/woodmart/inc/builder/elements/abstract/Element.php on line 223

    WP: 4.9.4
    WC: 3.3.3
    Woodmart: 2.0.0

    #46513

    Hello,

    Thank you for contacting us. In order to correct please add this line:

    if(empty($params)) return;

    before

    foreach ($params as $key => $param) {

    in file

    /themes/woodmart/inc/builder/elements/abstract/Element.php

    We shall fix this bug in updates releasing the following week.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)