WordPress.org

Forums

Dynamic Image Resizer
Warning when not uploading an image (3 posts)

  1. Nicolas Juen
    Member
    Posted 3 years ago #

    Hi !
    I have a little warning error ( line 72 ) when uploading a non image file.
    The global var $dynimg_image_sizes is empty and the code trying to make a foreach on it.

    Otherwise the plugin is really great, would have to be a native feature!

    Regards,
    Rahe.

    http://wordpress.org/extend/plugins/dynamic-image-resizer/

  2. Nicolas Juen
    Member
    Posted 3 years ago #

    Hi !

    I have a warning this time. When the image_resize() fail it return an WP_Error and you not test it, so header an readfile make errors :/

    Regards,
    Rahe

  3. JochenT
    Member
    Posted 3 years ago #

    The warning when uploading a none image document is

    PHP Warning: Invalid argument supplied for foreach() in /srv/www/userxxx/public_html/wp-content/plugins/dynamic-image-resizer/dynamic-image-resizer.php on line 72, referer: http://example.com/wp-admin/media-upload.php?post_id=341&

    This is probably harmless, but irritating as the plugin works in the background.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dynamic Image Resizer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic