Email not working - TimeTrexSoapClient error

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
webmaster
Posts: 42
Joined: Tue Dec 16, 2014 12:38 pm

Email not working - TimeTrexSoapClient error

Post by webmaster »

Hello,
We are using TT Community version 7.4.7 automatically installed on a windows server in the USA - ohio

No email notifications are being sent out. I have tried both SOAP and SMTP settings in timetrex.ini and I can't get either set to work.
I receive the error below in the timetrex.log and wonder if it is the cause of the lack of email.

Please advise.

--------------[ 10-Jan-2015 3:15:51 +0000 (PID: 5256) ]--------------- DEBUG [L0374] [98ms]: [Function](): New version available, check current system requirements...
DEBUG [L0384] [98ms]: [Function](): Checking if new version is available, current version: 7.4.7 Force: 0
DEBUG [L0136] [172ms]: TimeTrexSoapClient::getPrimaryCompanyData(): ERROR: Primary company does not exist: 0
DEBUG [L0055] [183ms] Array: SystemSettingFactory::isUniqueName(): Unique Name: auto_upgrade_failed
string(2) "13"


DEBUG [L1566] [194ms]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [L1632] [195ms]: Factory::Save(): Calling preSave()
DEBUG [L1683] [195ms]: Factory::Save(): Updating...
DEBUG [L1566] [218ms]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [L1632] [218ms]: Factory::Save(): Calling preSave()
DEBUG [L1670] [219ms]: Factory::Save(): Insert ID: 59846
DEBUG [L1544] [219ms]: Factory::getInsertQuery(): Insert
DEBUG [L1576] [233ms]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 2
DEBUG [L0095] [233ms]: TTLog::addEntry(): LogDetail Disabled... Object ID: 13 Action ID: 20 Table: system_setting Description: System Setting - Name: auto_upgrade_failed Value: 0
DEBUG [L1722] [233ms]: Factory::Save(): Calling postSave()
DEBUG [L0152] [233ms]: Factory::removeCache(): Attempting to remove cache: all
DEBUG [L0158] [233ms]: Factory::removeCache(): Removing cache: all Group Id: system_setting
DEBUG [L0152] [233ms]: Factory::removeCache(): Attempting to remove cache: auto_upgrade_failed
DEBUG [L0158] [233ms]: Factory::removeCache(): Removing cache: auto_upgrade_failed Group Id: system_setting
DEBUG [L1576] [234ms]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [L0113] [269ms]: setAutoUpgradeFailed(): AutoUpgrade Success, clearing failed flag...
---------------[ 10-Jan-2015 3:15:51 +0000 (PID: 5256) ]---------------
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Email not working - TimeTrexSoapClient error

Post by shaunw »

In your timetrex.ini.php file, try setting "primary_company_id" to "1" rather than its current "0" setting.
webmaster
Posts: 42
Joined: Tue Dec 16, 2014 12:38 pm

Re: Email not working - TimeTrexSoapClient error

Post by webmaster »

Thanks for the idea, but the email is still not working. The error message from the timetrex.log is below. Any other ideas out there to fix this?

---------------[ 15-Jan-2015 3:15:58 +0000 (PID: 6572) ]--------------- DEBUG [L0374] [98ms]: [Function](): New version available, check current system requirements...
DEBUG [L0384] [98ms]: [Function](): Checking if new version is available, current version: 7.4.7 Force: 0
DEBUG [L0136] [138ms]: TimeTrexSoapClient::getPrimaryCompanyData(): ERROR: Primary company does not exist: 1
DEBUG [L0055] [149ms] Array: SystemSettingFactory::isUniqueName(): Unique Name: auto_upgrade_failed
string(2) "13"


DEBUG [L1566] [149ms]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [L1632] [150ms]: Factory::Save(): Calling preSave()
DEBUG [L1683] [150ms]: Factory::Save(): Updating...
DEBUG [L1566] [173ms]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [L1632] [173ms]: Factory::Save(): Calling preSave()
DEBUG [L1670] [174ms]: Factory::Save(): Insert ID: 62136
DEBUG [L1544] [174ms]: Factory::getInsertQuery(): Insert
DEBUG [L1576] [187ms]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 2
DEBUG [L0095] [188ms]: TTLog::addEntry(): LogDetail Disabled... Object ID: 13 Action ID: 20 Table: system_setting Description: System Setting - Name: auto_upgrade_failed Value: 0
DEBUG [L1722] [188ms]: Factory::Save(): Calling postSave()
DEBUG [L0152] [188ms]: Factory::removeCache(): Attempting to remove cache: all
DEBUG [L0158] [188ms]: Factory::removeCache(): Removing cache: all Group Id: system_setting
DEBUG [L0152] [188ms]: Factory::removeCache(): Attempting to remove cache: auto_upgrade_failed
DEBUG [L0158] [188ms]: Factory::removeCache(): Removing cache: auto_upgrade_failed Group Id: system_setting
DEBUG [L1576] [189ms]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [L0113] [218ms]: setAutoUpgradeFailed(): AutoUpgrade Success, clearing failed flag...
---------------[ 15-Jan-2015 3:15:58 +0000 (PID: 6572) ]---------------
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Email not working - TimeTrexSoapClient error

Post by shaunw »

Keep increasing it by 1 until it starts working, ie:

primary_company_id = 2
webmaster
Posts: 42
Joined: Tue Dec 16, 2014 12:38 pm

Re: Email not working - TimeTrexSoapClient error

Post by webmaster »

Horray! It worked. Email now being send at id of 2. Thank you much.
Post Reply