Author Topic: TM fixes following June 2025 upgrade  (Read 5193 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
TM fixes following June 2025 upgrade
« on: June 10, 2025, 10:58:22 am »
The main OS upgrades are done and seemed to go well, but now I need to rebuild all the software.  This is where things like new versions of compilers, apache httpd, and php can cause troubles.  This part also takes a while as it needs to reinstall about 500 packages.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #1 on: June 10, 2025, 01:56:12 pm »
We are up and running on the new OS and updated software overall.  My spot checks of functionality all look good.  I have some housekeeping items to take care of that should not cause any disruptions.  Let me know if you notice any problems that might have been caused by the upgrade.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 5197
  • Last Login:Yesterday at 01:57:29 pm
Re: TM fixes following June 2025 upgrade
« Reply #2 on: June 10, 2025, 01:57:20 pm »
showroute doesn't work: https://travelmapping.net/hb/showroute.php?u=null&r=eng.h001

Code: [Select]
Fatal error: Uncaught Error: Call to undefined function ctype_alpha() in /fast/www/tm/lib/tmphpfuncs.php:511 Stack trace: #0 /fast/www/tm/hb/showroute.php(192): tm_validate_root('eng.h001') #1 {main} thrown in /fast/www/tm/lib/tmphpfuncs.php on line 511
Edit: The issue came just 5 minutes before I posted this.
Edit2: same issue on tmdevel: https://tmdevel.teresco.org/hb/showroute.php?u=null&r=eng.h001
« Last Edit: June 10, 2025, 02:07:14 pm by michih »

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #3 on: June 10, 2025, 02:29:35 pm »
Looks like our version of PHP is no longer supported.  Hopefully this won't take long but it has the potential to be a difficult one to handle.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #4 on: June 10, 2025, 02:51:26 pm »
I think there's a really good chance I'm going to break the forum by upgrading things to the supported version of PHP.  Deciding how to proceed.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #5 on: June 10, 2025, 03:51:05 pm »
Upgraded.  There are things broken on both the forum and the main TM site.  I'll see what I can do.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #6 on: June 10, 2025, 04:47:55 pm »
I've fixed all of the problems I have noticed.  Please let me know if you see things not working here on the forum or on the main TM site.  Thanks for your patience.

I'll also leave a note here for lack of a better place that I had to change line 19 of index.php in the forum software to

Code: [Select]
error_reporting(E_ALL);
as the E_STRICT option is no longer supported.  We just need to remember this if we upgrade the forum software and the corresponding fix has not been made in the new version.

Offline osu-lsu

  • Full Member
  • ***
  • Posts: 180
  • Last Login:Yesterday at 11:34:03 pm
Re: TM fixes following June 2025 upgrade
« Reply #7 on: June 10, 2025, 04:51:56 pm »
FWIW, at the header of the front page for travel mapping is this message:

Warning: Undefined variable $nobigheader in /fast/www/tm/lib/tmheader.php on line 4

Offline TBKS1

  • Newbie
  • *
  • Posts: 36
  • Gender: Male
  • Last Login:Today at 01:28:25 am
Re: TM fixes following June 2025 upgrade
« Reply #8 on: June 10, 2025, 05:07:08 pm »
I get this error on the stat.php page

Code: [Select]
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /fast/www/tm/stat.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /fast/www/tm/stat.php:171) in /fast/www/tm/lib/tmphpuser.php on line 33
Central Arkansas Highway Nerd. Mostly into picture taking, sometimes into grinding highway mileage.

#1 in Arkansas as of 12 December 2024.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #9 on: June 10, 2025, 09:10:57 pm »
I believe the two reported errors, along with a few others I discovered with a bit more thorough testing, are now fixed.  Keep the reports coming if you see any problems.

Offline CoreySamson

  • Newbie
  • *
  • Posts: 29
  • Gender: Male
  • Last Login:Yesterday at 09:55:49 pm
Re: TM fixes following June 2025 upgrade
« Reply #10 on: June 10, 2025, 11:35:49 pm »
When I click on the user stats page, the table for "Longest Clinched Routes" is not coming up for me.
Clincher of 24 FM roads. Proud micro passer. Buc-ee's and QuikTrip fanboy. Budding theologian.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #11 on: June 11, 2025, 08:25:28 am »
Thanks - I fixed clinched.php and a couple more things I noticed (including that I hadn't updated tmrail with any of the fixes, and the lack of any active systems there exposed some other things that broke with the upgrade).

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 5197
  • Last Login:Yesterday at 01:57:29 pm
Re: TM fixes following June 2025 upgrade
« Reply #12 on: June 11, 2025, 12:20:56 pm »
1. The 'Longest Clinched Routes' table on topstats.php does not work: empty table output.
2. The user cookie does not work as before. e.g. change from user page to stat.php
3. The unit cookie does also not work but I think that this issue already existed before the latest upgrade. e.g. this (similar: this)

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #13 on: June 11, 2025, 01:45:22 pm »
Thanks - I have implemented a fix for the top stats table.  Turns out that was a longstanding typo that PHP 7 didn't care about but PHP 8 does.

I'm looking at the cookies, and I think I am on to something.  These problems look to stem from the https conversion years ago but something about PHP 8 is doing extra checking and causing them not to be updated to be carried across on some page transitions.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2958
  • Last Login:Yesterday at 11:00:07 pm
Re: TM fixes following June 2025 upgrade
« Reply #14 on: June 11, 2025, 02:26:32 pm »
I have some cookie fixes in.  Old cookies can cause troubles, so please follow these steps if you are noticing any problems with user selections not being persistent across all pages:

- force reload TM
- clear all travelmapping.net cookies saved in your browser

Once you then choose your username from any traveler list, it should be remembered across all page transitions.

Note that you would need to do the same thing on other TM sites if you use the development or staging servers, or if you are a tmrail.teresco.org user.