Page 1 of 1

Login Problems

Posted: Mon Jan 28, 2019 9:37 am
by Snacktime
I am using the community edition download from you website and the way I downloaded the program was from the automatic installer. We are using version 11.4 3-20190117-105145.
We have been using this program for about a month now and everything works fine. We only use it to keep time. This morning the first 5 employees were able to login this morning and around 7:00 a.m our next employee could not log in. When opening the icon you can input your user name and password but it never logs in to the punch screen. Any help would be appreciated!

Re: Login Problems

Posted: Mon Jan 28, 2019 9:52 am
by mikeb
Can you please attach a screenshot of what you are seeing after you try to login to TimeTrex? Have you tried a different web browser as well to see if that makes any difference?

Re: Login Problems

Posted: Mon Jan 28, 2019 10:21 am
by Snacktime
I did download chrome and was reciving the same issues here is a screen shot

Re: Login Problems

Posted: Mon Jan 28, 2019 11:18 am
by mikeb
So when you click the Login button nothing on the screen changes at all? Can you press CTRL+F12 to open the developer console in the web browser, then click Login and send a screenshot of any error messages that may appear there?

Re: Login Problems

Posted: Mon Jan 28, 2019 11:32 am
by Snacktime
Is this what you need?

Re: Login Problems

Posted: Mon Jan 28, 2019 11:36 am
by mikeb
Sorry, you will need to click on the "Console" tab at the top middle of the screen to see the errors.

Re: Login Problems

Posted: Mon Jan 28, 2019 11:50 am
by Snacktime
Here you go!

Re: Login Problems

Posted: Mon Jan 28, 2019 1:07 pm
by mikeb
Okay, so there is an error on the server preventing logins then. In your TimeTrex.ini.php file, set the following under the [debug] section:
enable = TRUE
enable_display = FALSE
buffer_output = TRUE
enable_log = TRUE
verbosity = 10
Reproduce the issue and include any relevant information from the TimeTrex log file in your post.

Re: Login Problems

Posted: Mon Jan 28, 2019 2:12 pm
by Snacktime
Here is the code after it is changed and the error it generated from changing the code

Re: Login Problems

Posted: Mon Jan 28, 2019 2:15 pm
by mikeb
You may have caused a syntax error in the timetrex.ini.php file when you modified it. If you right-click on the file and open it with Wordpad rather than NotePad, it should be formatted properly and easier to modify.

Re: Login Problems

Posted: Tue Jan 29, 2019 6:22 am
by Snacktime
This morning it is trying to login again i opened the file in word and this is what it looks like and the error i received

Re: Login Problems

Posted: Tue Jan 29, 2019 8:05 am
by mikeb
Okay, please attach your TimeTrex log files here, you can find them under c:\timetrex\log

Re: Login Problems

Posted: Tue Jan 29, 2019 8:27 am
by Snacktime
Are one of these what you are looking for?

Re: Login Problems

Posted: Tue Jan 29, 2019 8:46 am
by Snacktime
I think this is more of what you were looking for

Re: Login Problems

Posted: Tue Jan 29, 2019 10:09 am
by mikeb
So the error is this:

Code: Select all

DEBUG [L0183] [00194ms]: Debug::Shutdown(): PHP ERROR - FATAL(1): Uncaught Error: Cannot use object of type PEAR_Error as array in C:\Users\snack\OneDrive\Desktop\timetrex\classes\modules\core\RateLimit.class.php:183
Stack trace:
#0 C:\Users\sn
DEBUG [L0183] [00194ms]: Debug::Shutdown(): ack\OneDrive\Desktop\timetrex\classes\modules\core\Authentication.class.php(765): RateLimit->check()
#1 C:\Users\snack\OneDrive\Desktop\timetrex\classes\modules\api\unauthenticated\APIAuthentication.c
DEBUG [L0183] [00194ms]: Debug::Shutdown(): lass.php(193): Authentication->Login('Snacktime', 'Brandi#1', 'user_name')
#2 C:\Users\snack\OneDrive\Desktop\timetrex\api\json\api.php(59): APIAuthentication->Login('Snacktime', '')
#3 C:\Use
DEBUG [L0183] [00194ms]: Debug::Shutdown(): rs\snack\OneDrive\Desktop\timetrex\api\json\api.php(263): unauthenticatedInvokeService('APIAuthenticati...', 'Login', Array, '01aa255e-47c9-2...', Object(APIAuthentication))
#4 {main}
  thrown File: C
DEBUG [L0183] [00194ms]: Debug::Shutdown(): :\Users\snack\OneDrive\Desktop\timetrex\classes\modules\core\RateLimit.class.php Line: 183
DEBUG [L0088] [00195ms]: ProgressBar::error(): error: '01aa255e-47c9-2757-4a2d-d8748eaa3627 Key: 01aa255e-47c9-2757-4a2d-d8748eaa3627(1548767890.4287) Message: ERROR: Operation cannot be completed.
Which is quite strange and unfortunately doesn't provide many details as to what is causing the error.

Could you attach your full timetrex.ini.php file and C:\Users\snack\OneDrive\Desktop\timetrex\classes\modules\core\RateLimit.class.php here for further investigation?

Re: Login Problems

Posted: Tue Jan 29, 2019 10:31 am
by Snacktime
Sure!

Re: Login Problems

Posted: Tue Jan 29, 2019 10:52 am
by mikeb
Okay, I'm pretty sure the error is that you set the TimeTrex Cache directory to be on your Desktop and it was likely deleted or permissions were changed, therefore rendering TimeTrex unable to operate. If you re-create each of the directories specified in your timetrex.ini.php file it should start working again for now at least.

For the future though, TimeTrex should definitely not have any directories pointing to your Desktop for this reason and many others. Due to this its likely that your TimeTrex installation is going to be very fragile and prone to random breakage. We would recommend considering to re-install it in the proper recommended location, however it will require a manual migration of all your data to do this.

Re: Login Problems

Posted: Tue Jan 29, 2019 11:00 am
by Snacktime
Can you send me the link to reinstall the program and tell me how to merge the date?

Re: Login Problems

Posted: Tue Jan 29, 2019 11:46 am
by Snacktime
Or is there a way i can just get the hours from last week?

Re: Login Problems

Posted: Tue Jan 29, 2019 12:57 pm
by mikeb
You can download TimeTrex here:
https://www.timetrex.com/download.php

See our FAQ on migrating the database:
https://help.timetrex.com/latest/commun ... to_another

Re: Login Problems

Posted: Wed Jan 30, 2019 6:38 am
by Snacktime
When I try to reinstall the file it says web server port please enter the port tat the bundled Apache server will listen to by default.
Apache Web Server Port then it has 8085 in the box but when I hit next it gives warning unable to bind to the given port number. Please select another one.

Re: Login Problems

Posted: Wed Jan 30, 2019 6:56 am
by Snacktime
Sorry not file timetrex