Support » Plugin: ImageFX » Warning: Invalid argument While uploading non image media

  • Hello,

    I am receiving the Warning:

    Warning: Invalid argument supplied for foreach() in wp-content\plugins\imagefx\imagefx.php on line 409

    When trying to upload media that is not an image such as a PDF or MP3.

    I was able to fix this issue by overriding the imagefx_filter function in my theme and adding a return before the foreach if the $meta variable is empty on line 408

    if(empty($meta))
    	return $meta;

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

  • The topic ‘Warning: Invalid argument While uploading non image media’ is closed to new replies.