Support » Plugin: ShortPixel Image Optimizer » Invalid argument supplied for foreach()

  • Resolved Rene Michaels

    (@rene-michaels)



    I’m getting this error after the last update:

    Invalid argument supplied for foreach() in /nfs/c07/h01/mnt/102818/domains/xxxx.com/html/wp-content/plugins/shortpixel-image-optimiser/class/db/wp-shortpixel-media-library-adapter.php on line 250

Viewing 4 replies - 1 through 4 (of 4 total)
  • OK so I deactivated and reactivated SPIO and now that error is gone.

    Actually, the error still shows up on my admin dashboard. Any advice?

    Plugin Author ShortPixel

    (@shortpixel)

    Hi Rene,
    thanks for your message, sorry to hear about this error.

    Could you please contact us directly here? Being able to provide us with temporary admin access would be the fastest way to assist you.
    If that’s not possible there are still other ways but it will take more time and effort.

    Thanks, I look forward to hearing from you,
    Alex

    Plugin Author ShortPixel

    (@shortpixel)

    Hi Rene,

    I added an extra check in the code for glob not returning an array and it should be fine, after the next ShortPixel release.

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