• Resolved Olivier

    (@pumpk1in)


    Hi,

    The plugin is spamming the log with those 3 lines every time someone uploads a picture on a cropper image field. Why is this happening ?

    (upload seems to work as expected though)

    Thanks

    [20-Feb-2023 11:51:03 UTC] PHP Notice: exif_imagetype(): read of 8192 bytes failed with errno=21 Is a directory in /***/wp-includes/functions.php on line 3188
    [20-Feb-2023 11:51:03 UTC] PHP Notice: exif_imagetype(): Read error! in /***/wp-includes/functions.php on line 3188
    [20-Feb-2023 11:51:03 UTC] PHP Notice: fread(): read of 8192 bytes failed with errno=21 Is a directory in /***/wp-includes/functions.php on line 3216
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Poonam Namdev

    (@poonam9)

    Hi @pumpk1in,

    Would you please confirm the PHP version you are using on your site?

    Thread Starter Olivier

    (@pumpk1in)

    Hi @poonam9

    Thanks for your answer.
    We are running PHP 7.4.33

    Thanks !

    Plugin Support Vytis

    (@bvytis)

    Hi @pumpk1in,

    These are PHP Notices not errors so there should be debug mode enabled if you’re seeing them.

    The notice message suggests that the exif_imagetype() and fread() functions are encountering errors while reading the uploaded image file. The code errno=21 indicates that the file being read is a directory, rather than a valid image file.

    This notice can occur if the uploaded file is not a valid image file or if there is some issue with the file permissions. The exif_imagetype() function is used to determine the image type of the uploaded file, and it may not be able to read the file if it is not a valid image format.

    One way to solve this issue is to check the file permissions for the directory where the uploaded files are stored. Make sure that the directory has the correct permissions and that the web server has write access to the directory.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Log spam when uploading image’ is closed to new replies.