Support » Fixing WordPress » Error: Invalid argument supplied for foreach()

  • I’ve just recently upgraded to 2.5.1 from 2.3.3. My delay was because of image uploader issues with 2.5. The no-flash-uploader plugin used with 2.5.1 seemed to make everything work just fine.

    I just noticed that every image I’ve uploaded with the non-flasj uploader shows an error in the media library. Immediately above the thumbnail, each image shows:

    Warning: Invalid argument supplied for foreach() in /111/222/333/another/wp-includes/media.php on line 264

    Note that the first three folders have been changed to numbers to obfuscate the actual path. The path in the real error message is correct.

    Is this caused by the non-flash-uploader? Is it something that’s likely to cause trouble in the future? Is this covered elsewhere? I tried a search but it doesn’t seem to be working for me as every search attempt returns zero results, regardless of what I search for.

    Any thoughts on the error are appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter rpali

    (@rpali)

    To my surprise, the error does not appear on one of the five images I’ve uploaded. It’s smaller and doesn’t have any copyright metadata, but it was produced with the same workflow as the others.

    I’m stumped.

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