DIscontinuing: Issue with Error Message. New topic

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
MickG01
Posts: 144
Joined: Mon Nov 09, 2009 11:48 am

DIscontinuing: Issue with Error Message. New topic

Post by MickG01 »

I'm getting no answers on topic: Issue with Error Message and 2020.
I reverted my backup of my old system which worked with the attached error messages. So at least I can produce some paystubs for our employees!

I need to correct these errors and update to at least the new tax tables.
Screenshot from 2020-01-20 20-24-47.png
Screenshot from 2020-01-20 20-24-47.png (24.43 KiB) Viewed 6513 times
Please assist.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: DIscontinuing: Issue with Error Message. New topic

Post by shaunw »

Run the TimeTrex web installer system requirements check step and it will provide you with exact details on the error.

Note that this does not require downloading or installing anything whatsoever, its simply accessing the installer URL like this:

Code: Select all

http://mydomain.com/timetrex/interface/install/install.php 
MickG01
Posts: 144
Joined: Mon Nov 09, 2009 11:48 am

Re: DIscontinuing: Issue with Error Message. New topic

Post by MickG01 »

Checking pre-flight requirements... 1... 2... 3... 4...You are currently using PHP v7.4.1 TimeTrex requires PHP v7.3.x or earlier!

5... 6... 7... 9... 10... FAILED!

For installation support, please join our community forums or contact a TimeTrex support expert for Implementation Support Services.

This version was installed from the Zip version - Automatic Ubuntu updates changed this to 7.4
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: DIscontinuing: Issue with Error Message. New topic

Post by shaunw »

In that case, you will need to upgrade TimeTrex to the latest version, which does support PHP v7.4.

Note that you need to do this in the exact same way that you originally installed TimeTrex. So if you installed TimeTrex originally from a .ZIP, use the .ZIP to upgrade. If you installed from the .DEB, use the .DEB to upgrade. Do not mix installation methods on the same server.
MickG01
Posts: 144
Joined: Mon Nov 09, 2009 11:48 am

Re: DIscontinuing: Issue with Error Message. New topic

Post by MickG01 »

trying that upon completing the Zip install and attemting http://<Server URL>/timetrex/install/install.php
gives: Screenshot from 2020-01-21 18-30-45.png
Trung to run I can enter my username and password then get:
Screenshot from 2020-01-21 18-30-45.png
Screenshot from 2020-01-21 18-30-45.png (75.66 KiB) Viewed 6436 times
Attachments
Screenshot from 2020-01-21 18-35-18.png
Screenshot from 2020-01-21 18-35-18.png (10.59 KiB) Viewed 6436 times
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: DIscontinuing: Issue with Error Message. New topic

Post by shaunw »

It seems like the installer URL you are using is incorrect and it may be redirecting you back to the main login screen. The error message you are seeing should only appear when on the main login screen and when the timetrex.ini.php has installer_enabled = TRUE set.
MickG01
Posts: 144
Joined: Mon Nov 09, 2009 11:48 am

Re: DIscontinuing: Issue with Error Message. New topic

Post by MickG01 »

got the attached error even after a server reboot and changing the timetrex.ini.php:
Screenshot from 2020-01-21 21-16-47.png
Screenshot from 2020-01-21 21-16-47.png (11.99 KiB) Viewed 6427 times
I checked the php version:
Result of running php -v:

PHP Warning: Module 'pgsql' already loaded in Unknown on line 0
PHP 7.4.1 (cli) (built: Dec 18 2019 14:44:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.1, Copyright (c), by Zend Technologies

tail /var/logs/timetrex/timetrex.log:

DEBUG [L0171] [00025ms]: GLOBAL: Lock File: /tmp/timetrex/UnAttended_Upgrade_2737064364.lock
DEBUG [L0084] [00025ms]: LockFile::getCurrentPID(): Current PID: 2460
DEBUG [L0267] [00025ms]: GLOBAL: Checking requirements only...
DEBUG [L0270] [00025ms]: GLOBAL: Launched from web installer...
DEBUG [L2580] [00025ms]: Misc::cleanDir(): Cleaning: /tmp/timetrex Exclude Regex: \.ZIP|\.lock|.state|upgrade_staging
DEBUG [L0972] [00025ms]: Install::checkPHPVersion(): Comparing with Version: 7.4.1
DEBUG [L1608] [00025ms]: Install::checkPHPOpenBaseDir(): Open BaseDir:
DEBUG [L0972] [00025ms]: Install::checkPHPVersion(): Comparing with Version: 7.4.1
DEBUG [L1608] [00025ms]: Install::checkPHPOpenBaseDir(): Open BaseDir:
---------------[ 21-Jan-2020 23:16:31 +0000 [1579648591.1898] (PID: 2460) ]---------------

tail /var/logs/syslog.txt:

Jan 21 21:40:01 timberoakspetspa CRON[2537]: (www-data) CMD (php /var/www/html/timetrex/maint/cron.php > /dev/null 2>&1)
Jan 21 21:40:38 timberoakspetspa kernel: [ 1584.274478] [UFW BLOCK] IN=wlp4s6 OUT= MAC=01:00:5e:00:00:01:00:7f:28:bb:13:9a:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2
Jan 21 21:41:01 timberoakspetspa CRON[2544]: (www-data) CMD (php /var/www/html/timetrex/maint/cron.php > /dev/null 2>&1)
Jan 21 21:42:01 timberoakspetspa CRON[2552]: (www-data) CMD (php /var/www/html/timetrex/maint/cron.php > /dev/null 2>&1)
Jan 21 21:42:43 timberoakspetspa kernel: [ 1709.308721] [UFW BLOCK] IN=wlp4s6 OUT= MAC=01:00:5e:00:00:01:00:7f:28:bb:13:9a:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2
Jan 21 21:43:01 timberoakspetspa CRON[2561]: (www-data) CMD (php /var/www/html/timetrex/maint/cron.php > /dev/null 2>&1)
Jan 21 21:44:01 timberoakspetspa CRON[2587]: (www-data) CMD (php /var/www/html/timetrex/maint/cron.php > /dev/null 2>&1)
Jan 21 21:44:48 timberoakspetspa kernel: [ 1834.242454] [UFW BLOCK] IN=wlp4s6 OUT= MAC=01:00:5e:00:00:01:00:7f:28:bb:13:9a:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2
Jan 21 21:45:01 timberoakspetspa CRON[2599]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jan 21 21:45:01 timberoakspetspa CRON[2600]: (www-data) CMD (php /var/www/html/timetrex/maint/cron.php > /dev/null 2>&1)
MickG01
Posts: 144
Joined: Mon Nov 09, 2009 11:48 am

Re: DIscontinuing: Issue with Error Message. New topic

Post by MickG01 »

correction to timetrx.log:
---------------[ 21-Jan-2020 23:16:31 +0000 [1579648591.1651] (PID: 2460) ]---------------
DEBUG [L3080] [00023ms]: Misc::getCurrentOSUser(): Running as OS User: www-data
DEBUG [L0972] [00023ms]: Install::checkPHPVersion(): Comparing with Version: 7.4.1
DEBUG [L0553] [00024ms]: TTi18n::chooseBestLocale(): Unable to find and set a locale.
DEBUG [L0345] [00024ms]: TTDate::setTimeZone(): TimeZone already set to: GMT
DEBUG [L0151] [00024ms]: GLOBAL: Version: 12.0.3 (PHP: v7.4.1) Edition: 10 Production: 1 Server: N/A Database: Type: postgres Name: timetrex Config: /var/www/html/timetrex/includes/../timetrex.ini.php Demo Mode: 0
DEBUG [L0171] [00025ms]: GLOBAL: Lock File: /tmp/timetrex/UnAttended_Upgrade_2737064364.lock
DEBUG [L0084] [00025ms]: LockFile::getCurrentPID(): Current PID: 2460
DEBUG [L0267] [00025ms]: GLOBAL: Checking requirements only...
DEBUG [L0270] [00025ms]: GLOBAL: Launched from web installer...
DEBUG [L2580] [00025ms]: Misc::cleanDir(): Cleaning: /tmp/timetrex Exclude Regex: \.ZIP|\.lock|.state|upgrade_staging
DEBUG [L0972] [00025ms]: Install::checkPHPVersion(): Comparing with Version: 7.4.1
DEBUG [L1608] [00025ms]: Install::checkPHPOpenBaseDir(): Open BaseDir:
DEBUG [L0972] [00025ms]: Install::checkPHPVersion(): Comparing with Version: 7.4.1
DEBUG [L1608] [00025ms]: Install::checkPHPOpenBaseDir(): Open BaseDir:
---------------[ 21-Jan-2020 23:16:31 +0000 [1579648591.1898] (PID: 2460) ]---------------
MickG01
Posts: 144
Joined: Mon Nov 09, 2009 11:48 am

Re: DIscontinuing: Issue with Error Message. New topic

Post by MickG01 »

Overnight it set up new versions of libapache2-mod-php, php, php-common.
I had to restart the server after which I was able to log in and fount a mesage that it had also updated TimeTrex to v 12.0.4 and I could again see all my records.

Thanks for the advice. sorry to have been a pain
Post Reply