Upon investigation, we found this error:
Code: Select all
code":"EXCEPTION","description":"Invalid referrer, possible CSRF.","record_details":{"total":0,"valid":0,"invalid":0},"user_generic_status_batch_id":false,"details":false}}
/api/json/api.php?SessionID=4628e12c0aee596db95ab7ec5ddc7911ce401885&Class=APIPayStub&Method=getPayStub&MessageID=C6D72B4C-9695-231B-883E-24182601E623
Apparently this json api ordinarily results in the download of our PDF pay stubs, but after the upgrade it was under the impression there is some cross-site-scripting going on and fails instead. Or perhaps it merely is no longer receiving what it expects and this is a default error.
I don't spend a lot of time in json, so I reverted and completed payroll.
Since full reversion would not tell me if the data was invalid (ie: the generated payroll perhaps failed), I left the DB and just reverted the web folder. I now get a warning about application/db version mismatch, but with the same data I now get my PDF download. So it's not the data, obviously.
Since this was the result of an upgrade (I had a notice about being automatically upgraded to 7.4, I believe, when I started payroll), I also checked the timetrex.log and found:
Code: Select all
DEBUG [L0509] [35526ms]: <b>[Function]()</b>: Stage2 success!<br>
DEBUG [L0055] [35530ms] Array: <b>SystemSettingFactory::isUniqueName()</b>: Unique Name: auto_upgrade_failed
<pre>string(2) "12"
</pre>
The final log entries show:
Code: Select all
DEBUG [L1561] [35530ms]: <b>Factory::StartTransaction()</b>: StartTransaction(): Transaction Count: 0 Trans Off: 0<br>
DEBUG [L1627] [35530ms]: <b>Factory::Save()</b>: Calling preSave()<br>
DEBUG [L1678] [35530ms]: <b>Factory::Save()</b>: Updating...<br>
DEBUG [L1561] [35536ms]: <b>Factory::StartTransaction()</b>: StartTransaction(): Transaction Count: 1 Trans Off: 1<br>
DEBUG [L1627] [35536ms]: <b>Factory::Save()</b>: Calling preSave()<br>
DEBUG [L1665] [35536ms]: <b>Factory::Save()</b>: Insert ID: 45572<br>
DEBUG [L1539] [35536ms]: <b>Factory::getInsertQuery()</b>: Insert<br>
DEBUG [L1571] [35539ms]: <b>Factory::CommitTransaction()</b>: CommitTransaction(): Transaction Count: 1 Trans Off: 2<br>
DEBUG [L0095] [35539ms]: <b>TTLog::addEntry()</b>: LogDetail Disabled... Object ID: 12 Action ID: 20 Table: system_setting Description: System Setting - Name: auto_upgrade_failed Value: 0<br>
DEBUG [L1717] [35539ms]: <b>Factory::Save()</b>: Calling postSave()<br>
DEBUG [L0147] [35539ms]: <b>Factory::removeCache()</b>: Attempting to remove cache: all<br>
DEBUG [L0153] [35539ms]: <b>Factory::removeCache()</b>: Removing cache: all Group Id: system_setting<br>
DEBUG [L0147] [35539ms]: <b>Factory::removeCache()</b>: Attempting to remove cache: auto_upgrade_failed<br>
DEBUG [L0153] [35539ms]: <b>Factory::removeCache()</b>: Removing cache: auto_upgrade_failed Group Id: system_setting<br>
DEBUG [L1571] [35539ms]: <b>Factory::CommitTransaction()</b>: CommitTransaction(): Transaction Count: 1 Trans Off: 1<br>
---------------[ 29-Aug-2014 3:59:17 -0400 (PID: 11374) ]---------------
So, is this an easy fix or at least an easy chase ... or is it time to fresh install and start from this week in a new installation?