{ Dev Farm }

Web & Windows Development

Division by zero warning

Home Forum Wp Gpx Maps Support Division by zero warning

  • Questo topic ha 2 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 11 anni, 8 mesi fa da kaypsch.
Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
  • Autore
    Post
  • #602 Rispondi
    kaypsch
    Ospite

    Hi,

    i use your WP GPX Map with NextGen Gallery and get a division by zero warning.

    Warning: Division by zero in wordpress/wp-content/plugins/wp-gpx-maps/wp-gpx-maps_utils_nggallery.php on line 98

    My exif data looks like this:
    [GPSLongitude] => Array
    (
    [0] => 12/1
    [1] => 256314/10000
    [2] => 0/0
    )
    and there is the division by zero i think. So as a workaround i added an additional condition which returns zero if the second number is equal to zero.

    Many thanks for this great plugin.
    kaypsch

    #604 Rispondi
    max
    Amministratore del forum

    thank you, it will be fixed in the next relese..

    #605 Rispondi
    kaypsch
    Ospite

    thanks for this fast fix

Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
Rispondi a: Division by zero warning

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.