Password Reset's

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
jarrett125
Posts: 125
Joined: Tue Aug 23, 2016 11:44 am

Password Reset's

Post by jarrett125 » Tue Sep 13, 2016 6:46 am

hi we are having issues where when we request a password reset the email isn't going through i have tested it with 2 different of my gmail's to see what maybe causing this issue. below is the webpage debug info. when i check logs i'm not seeing any logs started when do a password set i see a cron job starting but no info is given about it. i have check all inbox's for an email i have never received an email maybe i forgot to set something up


os ubuntu:16.04
apache:2.4.18
php:7.0.8-oububtu0.16.04.2
postgresql:9.5.4
manual install


Debug Buffer ============================================================================ Memory Usage: 1305616 Buffer Size: 11 ---------------------------------------------------------------------------- DEBUG [L0440] [00002ms]: [Function](): URI: /timetrex/interface/ForgotPassword.php?email_sent=1&email=jwj12@scasd.org IP Address: 10.21.17.24 DEBUG [L0442] [00002ms]: [Function](): USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36 DEBUG [L0445] [00002ms]: [Function](): Version: 9.1.3 (PHP: v7.0.8-0ubuntu0.16.04.2) Edition: 10 Production: 1 Server: 10.0.16.209 Database: Type: postgres8 Name: timetrex Config: /var/www/html/timetrex/includes/../timetrex.ini.php Demo Mo DEBUG [L0445] [00002ms]: [Function](): de: 0 DEBUG [L0163] [00017ms]: TTDate::setTimeZone(): Setting TimeZone: America/New_York DEBUG [L0094] [00019ms]: [Function](): Bypassing Authentication DEBUG [L0434] [00020ms]: TTi18n::getBrowserLanguage(): HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 DEBUG [L0418] [00020ms]: TTi18n::setLocale(): Set Master Locale To: en_US.UTF-8 DEBUG [L0538] [00020ms]: TTi18n::chooseBestLocale(): Unable to find and set a locale. DEBUG [L2378] [00020ms]: Misc::detectMobileBrowser(): User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36 Retval: DEBUG [L0067] [00020ms]: [Function](): Action: ============================================================================
============================================================================
PROFILER OUTPUT
============================================================================
Calls Time Routine
-----------------------------------------------------------------------------
1 0.7632 ms (3.96 %) Main
16 1.1616 ms (6.02 %) __autoload
1 17.2205 ms (89.29 %) unprofiled

0.1397 ms (0.72 %) Missed
============================================================================
19.2850 ms (100.00 %) OVERALL TIME
============================================================================

jarrett125
Posts: 125
Joined: Tue Aug 23, 2016 11:44 am

Re: Password Reset's

Post by jarrett125 » Tue Sep 13, 2016 8:11 am

DEBUG [L1726] [00209ms]: Factory::CommitTransaction(): CommitTransaction(): Final Commit... Transaction: Count: 1 Off: 1 OK: 1
DEBUG [L1715] [00210ms]: Factory::StartTransaction(): StartTransaction(): Transaction: Count: 0 Off: 0 OK: 1
DEBUG [L1806] [00211ms]: Factory::Save(): Calling preSave()
DEBUG [L1847] [00211ms]: Factory::Save(): Insert ID: 246180 Table: system_log
DEBUG [L1693] [00211ms]: Factory::getInsertQuery(): Insert
DEBUG [L1726] [00212ms]: Factory::CommitTransaction(): CommitTransaction(): Final Commit... Transaction: Count: 1 Off: 1 OK: 1
DEBUG [L0091] [00213ms]: TTLog::addEntry(): LogDetail Disabled... Object ID: 2659 Action ID: 500 Table: users Description: Employee Password Reset By: 10.21.17.24
DEBUG [L1473] [00213ms]: Misc::getEmailLocalPart(): No Email Local Part set, falling back to default...
DEBUG [L1460] [00213ms]: Misc::getEmailDomain(): No From Email Domain set, falling back to regular hostname...
DEBUG [L0220] [00213ms] Array: TTMail::Send(): Attempting to send email To:
string(29) ""Test Test" <jwj12@scasd.org>"


DEBUG [L0232] [00213ms]: TTMail::Send(): Sending Email: Body Size: 377 Method: soap To:
DEBUG [L0136] [00215ms]: TimeTrexSoapClient::getPrimaryCompanyData(): ERROR: Primary company does not exist: 0
DEBUG [L0287] [00215ms] Array: TTMail::Send(): Send Email Failed To: "Test Test" <jwj12@scasd.org>
bool(false)


DEBUG [L0295] [00215ms] Array: TTMail::Send(): Send Email Failed!
bool(false)


DEBUG [L0168] [00215ms]: [Function](): Found USER!
---------------[ 13-Sep-2016 11:07:23 -0400 [1473779243.898] (PID: 30501) ]---------------

---------------[ 13-Sep-2016 11:07:23 -0400 [1473779243.905] (PID: 30501) ]---------------
DEBUG [L0440] [00002ms]: [Function](): URI: /timetrex/interface/ForgotPassword.php?email_sent=1&email=jwj12@scasd.org IP Address: 10.21.17.24
DEBUG [L0442] [00002ms]: [Function](): USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.101 Safari/537.36
DEBUG [L0445] [00002ms]: [Function](): Version: 9.1.3 (PHP: v7.0.8-0ubuntu0.16.04.2) Edition: 10 Production: 1 Server: 10.0.16.209 Database: Type: postgres8 Name: timetrex Config: /var/www/html/timetrex/includes/../timetrex.ini.php Demo Mo
DEBUG [L0445] [00002ms]: [Function](): de: 0
DEBUG [L0163] [00035ms]: TTDate::setTimeZone(): Setting TimeZone: America/New_York
DEBUG [L0094] [00038ms]: [Function](): Bypassing Authentication
DEBUG [L0434] [00038ms]: TTi18n::getBrowserLanguage(): HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
DEBUG [L0418] [00039ms]: TTi18n::setLocale(): Set Master Locale To: en_US.UTF-8
DEBUG [L0538] [00039ms]: TTi18n::chooseBestLocale(): Unable to find and set a locale.
DEBUG [L2378] [00039ms]: Misc::detectMobileBrowser(): User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.101 Safari/537.36 Retval:
DEBUG [L0067] [00039ms]: [Function](): Action:
---------------[ 13-Sep-2016 11:07:23 -0400 [1473779243.9441] (PID: 30501) ]---------------

jarrett125
Posts: 125
Joined: Tue Aug 23, 2016 11:44 am

Re: Password Reset's

Post by jarrett125 » Tue Sep 13, 2016 8:13 am

;<?php die('Access denied...');?>
;
;
; TimeTrex Configuration File
; *Linux* Example
;
;

;
; System paths. NO TRAILING SLASHES!
;
[path]
;URL to TimeTrex web root directory. ie: http://your.domain.com/<*BASE_URL*>
;DO NOT INCLUDE http://your.domain.com, just the directory AFTER your domain
base_url = "/timetrex/interface"

;
;log directory
;
;Linux
log = "/var/log/timetrex"

;
;Misc storage, for attachments/images
;
;Linux
storage = "/var/timetrex/storage"

;
;Full path and name to the PHP CLI Binary
;
;Linux
php_cli = "/usr/bin/php"



;
; Database connection settings. These can be set from the installer.
;
[database]
type = postgres8
;type = postgres8

host = localhost
database_name = timetrex
user = timetrex
password = 472d70a51


;
; Email delivery settings.
;
[mail]
;Least setup, deliver email through TimeTrex's email relay via SOAP (HTTP port 80)
delivery_method = soap

;Deliver email through local sendmail command specified in php.ini
;delivery_method = mail

;Deliver email through remote SMTP server with the following settings.
;delivery_method = smtp
;smtp_host=smtp.gmail.com
;smtp_port=587
;smtp_username=timetrex@gmail.com
;smtp_password=testpass123


;
; Cache settings
;
[cache]
enable = FALSE
;Linux
dir = "/var/www/html/timetrex/cache"



[debug]
;Set to false if you're debugging
production = TRUE

enable = TRUE
enable_display = TRUE
buffer_output = TRUE
enable_log = TRUE
verbosity = 10



[other]
; Force all clients to use SSL.
force_ssl = FALSE
installer_enabled = FALSE
primary_company_id = 0
hostname = localhost

; System Administrators Email address to send critical errors to if necessary. Set to FALSE to disable completely.
;system_admin_email = "sysadmin@mydomain.com"

default_interface = html5

;WARNING: DO NOT CHANGE THIS AFTER YOU HAVE INSTALLED TIMETREX.
;If you do it will cause all your passwords to become invalid,
;and you may lose access to some encrypted data.
salt = f3cbfd1a59cc00c4da94f7c0aebcc9fc
disable_auto_upgrade = TRUE

shaunw
Posts: 7360
Joined: Tue Sep 19, 2006 2:22 pm

Re: Password Reset's

Post by shaunw » Tue Sep 13, 2016 9:40 am

The issue is that "primary_company_id = 0" is incorrect in your timetrex.ini.php file. That should be set to the 'id' of your company record in the 'company' table. Usually its either 1 or 2.

jarrett125
Posts: 125
Joined: Tue Aug 23, 2016 11:44 am

Re: Password Reset's

Post by jarrett125 » Tue Sep 13, 2016 9:58 am

does that require a restart after changing that to have it apply

jarrett125
Posts: 125
Joined: Tue Aug 23, 2016 11:44 am

Re: Password Reset's

Post by jarrett125 » Tue Sep 13, 2016 10:11 am

i had to change it to 2 thankyou

Post Reply