Travel Mapping

Web Design Discussion => General Web Design Discussion => Topic started by: jwood.ok on June 21, 2020, 09:34:23 pm

Title: php errors
Post by: jwood.ok on June 21, 2020, 09:34:23 pm
Did a search and didn't notice anyone had reported this recently.  When I go to my traveler stats (jwood) I get the following error 3 times:

Warning: Division by zero in /home/www/tm/lib/tmphpfuncs.php on line 372

Otherwise, everything seems to be working.  I don't see this error if I go to someone else's stats.
Title: Re: php errors
Post by: Jim on June 21, 2020, 09:56:04 pm
Thanks for the report.  It shouldn't be hard to fix:

https://github.com/TravelMapping/Web/issues/499

Title: Re: php errors
Post by: jwood.ok on June 21, 2020, 10:27:33 pm
Yep, that definitely sounds like me.  My and my preview system miles messing things up! ;D
Title: Re: php errors
Post by: Jim on June 22, 2020, 11:15:16 am
We don't get many users with travels in Africa, so that's not something likely to show up in testing!

It should be fixed on the main site now.  I left entries in the table for regions with 0 mileage as a white background.  Thanks for the report.