Author Topic: php errors  (Read 575 times)

0 Members and 1 Guest are viewing this topic.

Offline jwood.ok

  • Newbie
  • *
  • Posts: 21
  • Last Login:July 18, 2020, 10:33:53 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: 1897
  • Last Login:Today at 03:00:37 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:July 18, 2020, 10:33:53 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: 1897
  • Last Login:Today at 03:00:37 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.