Author Topic: Mileage Issues  (Read 110 times)

0 Members and 1 Guest are viewing this topic.

Online Markkos1992

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 3136
  • Last Login:Today at 06:39:18 pm
Mileage Issues
« on: Yesterday at 10:33:49 pm »
How come most mileage statistics have all of a sudden ended up at 0? 

Offline neroute2

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1057
  • Last Login:Today at 06:09:05 pm
Re: Mileage Issues
« Reply #1 on: Yesterday at 11:03:31 pm »
I ate them. 😋

Online Markkos1992

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 3136
  • Last Login:Today at 06:39:18 pm
Re: Mileage Issues
« Reply #2 on: Yesterday at 11:45:40 pm »
My stats page is showing the below line: https://travelmapping.net/user/?units=miles&u=markkos1992

Warning: Division by zero in /fast/www/tm/user/index.php on line 231


Offline oscar

  • TM Collaborator
  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1533
  • Last Login:Today at 11:09:21 am
    • Hot Springs and Highways pages
Re: Mileage Issues
« Reply #3 on: Today at 12:14:43 am »
That affects Showroute's display of my mileage on specific routes, including some in the Midwest I just clinched in the last few days, and others elsewhere I clinched earlier this year. Showroute still shows me as having clinched those routes, just screws up the percentages.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4590
  • Last Login:Today at 03:23:50 am
Re: Mileage Issues
« Reply #4 on: Today at 01:16:46 am »
The whole site indicates 0 miles for all users (railway too). It seems to be a general issue beyond hwy data but anything "in the code" or "in the infrastructure".

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4590
  • Last Login:Today at 03:23:50 am
Re: Mileage Issues
« Reply #5 on: Today at 01:21:56 am »
I think it happened when a data processing speedup was deployed.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4590
  • Last Login:Today at 03:23:50 am
Re: Mileage Issues
« Reply #6 on: Today at 02:17:29 am »
It seems to be an issue with MySQL. Jim simply needs to deploy the old code and run an update again.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2757
  • Last Login:Today at 05:32:25 pm
Re: Mileage Issues
« Reply #7 on: Today at 07:47:42 am »
It looks like every segment length in the .sql file generated by site update is in a format that mysql doesn't like.

I've got a busy day today but will see if I can get the code reverted and run a site update again.  Or better yet, @yakra has a quick fix and I'll run a new update with his new code plus bugfix.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2757
  • Last Login:Today at 05:32:25 pm
Re: Mileage Issues
« Reply #8 on: Today at 08:10:07 am »
As expected, git is my friend and let me quickly check out an older version.  Recompiled, re-ran the site update, and we look to be good.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2757
  • Last Login:Today at 05:32:25 pm
Re: Mileage Issues
« Reply #9 on: Today at 08:13:10 am »
FYI, I had to do a hard reload on some pages to force it to re-read the DB after the site update.

Online Markkos1992

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 3136
  • Last Login:Today at 06:39:18 pm
Re: Mileage Issues
« Reply #10 on: Today at 08:31:53 am »
Looks much better now!!