Support » Plugin: Exifography » Some issue error_log file

  • Hello

    I wish to inform you that I noticed this in error_log in root of site:

    [09-Dec-2017 13:56:30 UTC] PHP Warning:  Division by zero in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 274
    [09-Dec-2017 13:56:30 UTC] PHP Warning:  Division by zero in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 276
    [09-Dec-2017 13:56:30 UTC] PHP Warning:  Division by zero in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 277
    [09-Dec-2017 13:56:30 UTC] PHP Warning:  Division by zero in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 278
    [09-Dec-2017 13:56:30 UTC] PHP Warning:  Division by zero in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 279
    [09-Dec-2017 13:56:30 UTC] PHP Warning:  Division by zero in /home/pixnio/public_html/wp-content/plugins/thesography/exifography.php on line 283

    I do not know why, I just see that error_log.

    Maybe this will help you:
    WordPress 4.9.1
    PHP 7.0

    If you have any question do not hesitate to ask.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author kristarella

    (@kristarella)

    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.

    Thread Starter Advanced SEO

    (@jole5)

    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.

    Thread Starter Advanced SEO

    (@jole5)

    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
    Plugin Author kristarella

    (@kristarella)

    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.

    Thread Starter Advanced SEO

    (@jole5)

    Hello

    I’m glad I could help. I am looking forward to see updated of your plugin.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Some issue error_log file’ is closed to new replies.