Unable to print Detail or Summary of TimeSheet

Ask your questions regarding TimeTrex installation here.
Post Reply
sharrondenice
Posts: 2
Joined: Tue Aug 26, 2014 6:16 pm
Contact:

Unable to print Detail or Summary of TimeSheet

Post by sharrondenice »

Hi All, I have recently installed TimeTrex and it works like a charm except for one thing. I can't print anything, but the main thing I need to print is my timesheet. Any help you can provide would be greatly appreciated as I am at a loss as to why it won't print.

My log says the following

Code: Select all


text/x-log timetrex.log 
ASCII text
---------------[ 01-Sep-2014 19:47:36 -0500 (PID: 2134) ]---------------
DEBUG [L0456] [5ms]:	<b>[Function]()</b>: URI: /timesheet/api/json/api.php?SessionID=51910bd8838bdd6122e1dea080468f78147797d2&Class=APITimesheetDetailReport&Method=getTimesheetDetailReport&MessageID=226FE3C9-91FA-CDBF-5B43-33D4D0775E38 IP Address<br>
DEBUG [L0456] [5ms]:	<b>[Function]()</b>: : 24.197.30.180<br>
DEBUG [L0459] [5ms]:	<b>[Function]()</b>: Version: 7.4.0 Edition: 10 Production: 1 Database: Type: postgres8 Name: payroll Config: /includes/../timetrex.ini.php Demo Mode: 0<br>
DEBUG [L0167] [34ms]:	<b>TTDate::setTimeZone()</b>: Setting TimeZone: CST6CDT<br>
DEBUG [L0219] [35ms]:	<b>[Function]()</b>: Handling JSON Call To API Factory: APITimesheetDetailReport Method: getTimesheetDetailReport Message ID: 226FE3C9-91FA-CDBF-5B43-33D4D0775E38<br>
DEBUG [L0254] [35ms] Array: <b>[Function]()</b>: Arguments: (Size: 176)
<pre>array(2) {
  [0]=>
  array(2) {
    ["time_period"]=>
    array(2) {
      ["time_period"]=>
      string(17) "custom_pay_period"
      ["pay_period_id"]=>
      int(3)
    }
    ["include_user_id"]=>
    array(1) {
      [0]=>
      string(1) "2"
    }
  }
  [1]=>
  string(13) "pdf_timesheet"
}

</pre><br>
DEBUG [L0279] [38ms]:	<b>[Function]()</b>: Possible CSRF, Referer: https://www.mytestsite.com/timesheet/interface/flex/<br>
DEBUG [L0290] [39ms] Array: <b>APIFactory::returnHandler()</b>: returnHandler v1 ERROR: 0
<pre>array(2) {
  ["api_retval"]=>
  bool(false)
  ["api_details"]=>
  array(5) {
    ["code"]=>
    string(9) "EXCEPTION"
    ["description"]=>
    string(32) "Invalid referrer, possible CSRF."
    ["record_details"]=>
    array(3) {
      ["total"]=>
      int(0)
      ["valid"]=>
      int(0)
      ["invalid"]=>
      int(0)
    }
    ["user_generic_status_batch_id"]=>
    bool(false)
    ["details"]=>
    bool(false)
  }
}

</pre><br>
DEBUG [L0071] [43ms]:	<b>ProgressBar::start()</b>: start: '' Iterations: 9999 Update Iterations: 9999 Key: (1409618856.5879) Message: Invalid referrer, possible CSRF.<br>
DEBUG [L0283] [43ms]:	<b>[Function]()</b>: Server Response Time: 0.042265176773071<br>
---------------[ 01-Sep-2014 19:47:36 -0500 (PID: 2134) ]---------------

---------------[ 01-Sep-2014 19:47:37 -0500 (PID: 2171) ]---------------
DEBUG [L0456] [5ms]:	<b>[Function]()</b>: URI: /timesheet/api/amf/api.php?SessionID=51910bd8838bdd6122e1dea080468f78147797d2 IP Address: 24.197.30.180<br>
DEBUG [L0459] [5ms]:	<b>[Function]()</b>: Version: 7.4.0 Edition: 10 Production: 1 Database: Type: postgres8 Name: payroll Config: /includes/../timetrex.ini.php Demo Mode: 0<br>
DEBUG [L0167] [35ms]:	<b>TTDate::setTimeZone()</b>: Setting TimeZone: CST6CDT<br>
DEBUG [L0173] [40ms]:	<b>[Function]()</b>: AMF Session ID: 51910bd8838bdd6122e1dea080468f78147797d2 Source IP: 24.197.30.180<br>
DEBUG [L0687] [40ms]:	<b>Authentication::Check()</b>: Session ID: 51910bd8838bdd6122e1dea080468f78147797d2 IP Address: 24.197.30.180 URL: /timesheet/api/amf/api.php?SessionID=51910bd8838bdd6122e1dea080468f78147797d2 Touch Updated Date: 1<br>
DEBUG [L0162] [65ms]:	<b>TTDate::setTimeZone()</b>: TimeZone already set to: CST6CDT<br>
DEBUG [L0208] [65ms]:	<b>TTDate::setDateFormat()</b>: Setting Default Date Format: D, M d Y<br>
DEBUG [L0222] [65ms]:	<b>TTDate::setTimeFormat()</b>: Setting Default Time Format: g:i A T<br>
DEBUG [L0236] [65ms]:	<b>TTDate::setTimeUnitFormat()</b>: Setting Default Time Unit Format: 10<br>
DEBUG [L0184] [66ms]:	<b>[Function]()</b>: Locale Cookie: en_US<br>
DEBUG [L0192] [67ms]:	<b>[Function]()</b>: User Preference Language matches cookie!<br>
DEBUG [L0411] [70ms]:	<b>TTi18n::setLocale()</b>: Set Master Locale To: en_US<br>
DEBUG [L0206] [77ms]:	<b>[Function]()</b>: Handling AMF Call To API... UserName: puser<br>
DEBUG [L0174] [83ms]:	<b>SabreAMF_CallbackServer::exec()</b>: Protocol: AMF0<br>
DEBUG [L0108] [83ms]:	<b>ServiceMapper::invokeService()</b>: Service: core.APIProgressBar Method: get Class: APIProgressBar<br>
DEBUG [L0116] [84ms] Array: <b>ServiceMapper::invokeService()</b>: Arguments: 
<pre>array(1) {
  [0]=>
  string(36) "226FE3C9-91FA-CDBF-5B43-33D4D0775E38"
}

</pre><br>
DEBUG [L0155] [84ms]:	<b>ServiceMapper::invokeService()</b>: Returning 6 bytes of data... Response Time: 0.00082302093505859<br>
DEBUG [L0241] [84ms]:	<b>[Function]()</b>: Server Response Time: 0.083793878555298<br>
---------------[ 01-Sep-2014 19:47:37 -0500 (PID: 2171) ]---------------
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Unable to print Detail or Summary of TimeSheet

Post by shaunw »

Please upgrade to the latest version of TimeTrex (v7.4.1), that should resolve your issue.
sharrondenice
Posts: 2
Joined: Tue Aug 26, 2014 6:16 pm
Contact:

Re: Unable to print Detail or Summary of TimeSheet

Post by sharrondenice »

You posted the answer before I could get there :-) Yes upgrading fixed the issue with me. Thank you
Post Reply