AP:IMPORT PUNCH: Function 'setRawData' doesn't exist)

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
freddonnette
Posts: 1
Joined: Thu Oct 22, 2015 11:57 pm

AP:IMPORT PUNCH: Function 'setRawData' doesn't exist)

Post by freddonnette »

using TT version 9.0.0
TimeTrex/tools/import# php import.php -n -object punch -server http://localhost/TimeTrex/api/soap/api.php -username admin -password mypass punches/punch.map punches/punch_bala.csv

gives two errors :
PHP Notice: SOAP Fault: (Code: SOAP-ENV:Server, String: Function 'setRawData' doesn't exist) - Request: Response: in /var/www/TimeTrex/classes/modules/api/client/TimeTrexClientAPI.class.php on line 197

Notice: SOAP Fault: (Code: SOAP-ENV:Server, String: Function 'setRawData' doesn't exist) - Request: Response: in /var/www/TimeTrex/classes/modules/api/client/TimeTrexClientAPI.class.php on line 197
PHP Notice: SOAP Fault: (Code: SOAP-ENV:Server, String: Function 'Import' doesn't exist) - Request: Response: in /var/www/TimeTrex/classes/modules/api/client/TimeTrexClientAPI.class.php on line 197

Notice: SOAP Fault: (Code: SOAP-ENV:Server, String: Function 'Import' doesn't exist) - Request: Response: in /var/www/TimeTrex/classes/modules/api/client/TimeTrexClientAPI.class.php on line 197

is there an updated version including these functions?

by the way I fixed one issue in linux :
//no lower case for the sever !!! fred
if ( in_array('-server', $argv) ) {
// $api_url = strtolower( trim($argv[( array_search('-server', $argv) + 1)]) );
$api_url = trim($argv[( array_search('-server', $argv) + 1)]) ;
} else {
as my directory had caps it was throwing an error 404 for the api url
Post Reply