WordPress.org

Forums

Grayscale
Invalid argument supplied for foreach() (2 posts)

  1. lidplussdesign
    Member
    Posted 2 years ago #

    Hi,
    I got an error if i upload small png file (less than 5kb), I'll appreciate for any info,

    Thank you

    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\xxxxxx\wordpress\wp-content\themes\xxxxxx\functions\grayscale.php on line 84
    451

    http://wordpress.org/extend/plugins/grayscale/

  2. lidplussdesign
    Member
    Posted 2 years ago #

    seems i have found the issue,

    replase:
    foreach($metadata['sizes'] as $size => $size_data){

    by:
    foreach((array)$metadata['sizes'] as $size => $size_data){

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Grayscale
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.