• Resolved Quentin

    (@quentinrajnelli)


    Hello,

    Since today’s update, the message: Warning: “Invalid argument supplied for foreach() in …” has appeared on my site and the only way to remove it is to deactivate the plugin which was working fine until now.
    My site is under the AVADA template if you want to know

    I would like to know if there is anything to do to solve this problem.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • +1

    using wp-cli to run cron tasks I get this error

    phar:///usr/local/bin/wp/php/ in /home/wlt/www.prod/wp-content/plugins/svg-support/functions/attachment.php on line 246

    • This reply was modified 2 years, 9 months ago by cantoute.
    Plugin Author Benbodhi

    (@benbodhi)

    Hi @quentinrajnelli
    I’m looking into this. The errors reported all point to the theme, so I’m seeing if I can track down a copy for testing.
    Worst case, I’ll purchase it for testing purposes.

    @cantoute – Hi, your issue should be resolved in 2.4.1, updated already. It was unrelated to this one.

    @benbodhi

    Thanks

    Hello,

    As I see issue is in bodhi_svgs_disable_srcset function which has return false as one of possible values (when extension is svg) but first parameter in wp_calculate_image_srcset hook should be array according to docs. Changing false to empty array should resolve this issue.

    Plugin Author Benbodhi

    (@benbodhi)

    I have included this fix in 2.4.2 ??

    Thanks for your patience!

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning: Invalid argument supplied for foreach()’ is closed to new replies.