The automatic update from about 90 minutes ago that bumped us to 11.5.1 (2019-04-17 21:12) [screenshot attached] is generating the following error when trying to add shifts:
PHP Fatal error: Using $this when not in object context in [home]/TimeTrex/timetrex/classes/modules/api/schedule/APISchedule.class.php on line 454, referer: http://hostname:8085/interface/html5/
Please push out a fix. We're non-functional until that happens.
Thanks,
-G
11.5.1 (2019-04-17 21:12) PHP error
11.5.1 (2019-04-17 21:12) PHP error
- Attachments
-
- Screen Shot 2019-04-17 at 10.59.44 PM.png (912 KiB) Viewed 57904 times
--
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Re: 11.5.1 (2019-04-17 21:12) PHP error
The error at the top of the screen says your system stack components are out of date. What version of PHP are you using?
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
Help motivate us to continue by showing your appreciation!
Re: 11.5.1 (2019-04-17 21:12) PHP error
Per the screenshot, the PHP version is 5.3.10-1ubuntu3.25.
Note that we have PHP 7.0.15-1+deb.sury.org~precise+1 in /usr/bin. Timetrex does not appear to be using this.
This system is pretty much locked from most upgrades because of other dependencies.
See my discussion that Timetrex should check for compatibility pre-upgrade, not fail post-upgrade:
viewtopic.php?f=1&t=7358
Note that we have PHP 7.0.15-1+deb.sury.org~precise+1 in /usr/bin. Timetrex does not appear to be using this.
This system is pretty much locked from most upgrades because of other dependencies.
See my discussion that Timetrex should check for compatibility pre-upgrade, not fail post-upgrade:
viewtopic.php?f=1&t=7358
--
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Re: 11.5.1 (2019-04-17 21:12) PHP error
PHP 5.3.10-1ubuntu3.26 with Suhosin-Patch appears to be the most recent version available to me. Still 5.3.10-1, but a build or two more recent.
--
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Re: 11.5.1 (2019-04-17 21:12) PHP error
Your PHP version is the problem then, PHP v5.4 has been the oldest supported version for a while now, and as of TimeTrex v11.5.0 it switched to PHP v7.0 as the minimum required version.
PHP v5.3 end-of-life was 5 years ago, and PHP v7.0 end-of-life was back at the beginning of January. So your PHP version is extremely out-of-date and needs to be upgraded to PHP v7.0 or newer to continue using TimeTrex.
PHP v5.3 end-of-life was 5 years ago, and PHP v7.0 end-of-life was back at the beginning of January. So your PHP version is extremely out-of-date and needs to be upgraded to PHP v7.0 or newer to continue using TimeTrex.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
Help motivate us to continue by showing your appreciation!
Re: 11.5.1 (2019-04-17 21:12) PHP error
Ok - why does TimeTrex auto-update itself to a point where it fails? In our deployment, this Ubuntu 12.04 system cannot be upgraded because it supports what has become critical legacy software. I don't need any new features from TimeTrex - I just need it to keep working with the old legacy software.
Interesting. I've just changed ~/TimeTrex/php/bin/php to point to /usr/bin/php to get the 7.0 version there, but it did nothing. About is still referencing 5.3. ~/TimeTrex/timetrex/timetrex.ini.php sets php_cli = "/usr/bin/php", which should be 7.0.
Where is timetrex getting the old 5.3 from?
When did it stop using its own php in TimeTrex/php/bin?
Interesting. I've just changed ~/TimeTrex/php/bin/php to point to /usr/bin/php to get the 7.0 version there, but it did nothing. About is still referencing 5.3. ~/TimeTrex/timetrex/timetrex.ini.php sets php_cli = "/usr/bin/php", which should be 7.0.
Where is timetrex getting the old 5.3 from?
When did it stop using its own php in TimeTrex/php/bin?
--
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Re: 11.5.1 (2019-04-17 21:12) PHP error
We phase out support for old versions of PHP slowly and over time, so the first thing that happens is after an upgrade you may see a notice showing your PHP version is out-of-date. TimeTrex will often continue to run just fine for several months to give you a chance to upgrade, but eventually if you don't upgrade things will start to fail like what you are seeing now.gbl wrote: ↑Thu Apr 18, 2019 11:56 am Ok - why does TimeTrex auto-update itself to a point where it fails? In our deployment, this Ubuntu 12.04 system cannot be upgraded because it supports what has become critical legacy software. I don't need any new features from TimeTrex - I just need it to keep working with the old legacy software.
If we stopped updating completely then security fixes and tax table updates wouldn't get rolled out and as you can imagine that would be a major problem for anyone using TimeTrex for payroll.
That just changes what version of PHP the maintenance jobs use to run. You need to also reconfigure the web server to use the new version of PHP.gbl wrote: ↑Thu Apr 18, 2019 11:56 am Interesting. I've just changed ~/TimeTrex/php/bin/php to point to /usr/bin/php to get the 7.0 version there, but it did nothing. About is still referencing 5.3. ~/TimeTrex/timetrex/timetrex.ini.php sets php_cli = "/usr/bin/php", which should be 7.0.
Where is timetrex getting the old 5.3 from?
However it appears you may be using the old automated stack installer for Linux that was discontinued years ago, in which case we highly recommend that you migrate TimeTrex to using your operating systems own stack components (Apache, PHP, PostgreSQL) instead, as they are often easier to reconfigure in this way without breaking things. Not to mention you get security updates for them too.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
Help motivate us to continue by showing your appreciation!
Re: 11.5.1 (2019-04-17 21:12) PHP error
Which is worse? Not getting updated tax tables which is relevant for some, or breaking the install which is relevant for all? I mean, we now have an unexpected urgent situation whereby schedules cannot get posted. Indeed, in trying to quick-fix this, we now have a PHP installation that simply is not working at all, preventing punches from being recorded.If we stopped updating completely then security fixes and tax table updates wouldn't get rolled out and as you can imagine that would be a major problem for anyone using TimeTrex for payroll.
This has gone from a bad situation to an extremely bad situation, due to an automated upgrade for what was otherwise a functioning install.
bleargh.
--
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com
Gordon B Lugauer
President, Board Game Barrister, Ltd
GBL@BoardGameBarrister.com
Office: 414-988-1717 x1700
Direct: 414-988-1700 Fax: 414-988-1716
The Board Game Barrister has a restaurant!
The Oak & Shield Gaming Pub
http://OakAndShieldPub.com