Hey there,
Those lines all deal with the shutter speed. And should only run when a shutter speed value is present, it seems like you have a value present, but it’s zero…
Do you know which image of yours might have been viewed at the time of these logs? If I can see the EXIF in the image I can figure out a better way to deal with this issue… Right now I can’t see why an image would have a shutter speed of 0 and yet still be present in the EXIF, unless an editing app corrupted the data somehow.
Hello
Yes, that was my thought too. I can’t know on which of images is that (I have many images on site), I will try to find it, if I can.
I would advide you to make something which will deal even with ivalid values, for example, in this case, to check first if value is 0, and if it is, to do nothing (not to process further). Also, you should predict invalid values for all other fields, sometimes is even useful to predict “impossible” values. There is a lot of cheap cameras and cellphones on market, so you can not trust all of them that they will write only valid/standard info in EXIF data.
If you have any question do not hesitate to ask.
Best regards.
Hello again.
Maybe you should look at this too, I have this in error_log in: /wp-admin/ folder
[11-Dec-2017 12:27:47 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 106
[11-Dec-2017 12:33:19 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 106
[11-Dec-2017 12:36:39 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 106
[11-Dec-2017 12:38:47 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 106
[11-Dec-2017 12:39:33 UTC] PHP Warning: trim() expects parameter 1 to be string, array given in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 106
I would advide you to make something which will deal even with ivalid values, for example, in this case, to check first if value is 0, and if it is, to do nothing (not to process further). Also, you should predict invalid values for all other fields, sometimes is even useful to predict “impossible” values.
That’s true. Since shutter speed is one that WordPress itself imports, I didn’t process it further than to check whether it was present and then show it in a prettier way, but I will make sure it’s not zero.
Hello
I’m glad I could help. I am looking forward to see updated of your plugin.
Best regards.