Author Topic: php errors  (Read 6973 times)

0 Members and 2 Guests are viewing this topic.

Offline jwood.ok

  • Newbie
  • *
  • Posts: 21
  • Last Login:June 09, 2024, 10:51:29 pm
php errors
« 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.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 10:17:44 pm
Re: php errors
« Reply #1 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


Offline jwood.ok

  • Newbie
  • *
  • Posts: 21
  • Last Login:June 09, 2024, 10:51:29 pm
Re: php errors
« Reply #2 on: June 21, 2020, 10:27:33 pm »
Yep, that definitely sounds like me.  My and my preview system miles messing things up! ;D

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 10:17:44 pm
Re: php errors
« Reply #3 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.