Topic: Asset transaction report Error

I have upgraded to Tracmor v3 on a ubuntu 10.4 server every time i try to generate transaction reports i get this error message


Error in PHP Script
/reports/asset_transaction_report.php     PHP Version: 5.3.2-1ubuntu4.2;  Zend Engine Version: 2.3.0;  Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Apache/2.2.14 (Ubuntu);  Server Name: 10.3.0.81
HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)
Call-time pass-by-reference has been deprecated
Error Type:   Unknown

Source File:   /var/www/includes/php/PHPReports/PHPReportMaker.php(273) : eval()'d code     Line:   295


Call Stack:

#0 /var/www/includes/php/PHPReports/PHPReportMaker.php(273): QcodoHandleError()
#1 /var/www/includes/php/PHPReports/PHPReportMaker.php(273): PHPReportMaker::run()
#2 /var/www/reports/asset_transaction_report.php(426): PHPReportMaker->run()
#3 /var/www/includes/qcodo/_core/qform/QFormBase.class.php(657): AssetTransactionListForm->btnGenerate_Click()
#4 /var/www/includes/qcodo/_core/qform/QFormBase.class.php(774): QFormBase->TriggerMethod()
#5 /var/www/includes/qcodo/_core/qform/QFormBase.class.php(242): QFormBase->TriggerActions()
#6 /var/www/reports/asset_transaction_report.php(475): QFormBase::Run()


Variable Dump:   Show/Hide

  _COOKIE
  _FILES
  _GET
  _POST
  _SERVER

please  can some one tell me how to fix this

thanks

Re: Asset transaction report Error

It looks like there is an incompatibility between the newer PHP version you are using and the PHPReports software that Tracmor uses to generate reports. We will have to look into updating the offending code, but in the meantime you could try the suggestions here: http://www.simpleinvoices.org/wiki/phpr … ?s=reports

Please post back here if you are able to resolve the error.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: Asset transaction report Error

i have done the step from http://www.simpleinvoices.org/wiki/phpreport_mods?s=reports but still prompt the same error message :

Warning: file(C:\wamp\www\tracmor\includes\php\PHPReports\PHPReportMaker.php(274) : eval()'d code) [function.file]: failed to open stream: No such file or directory in C:\wamp\www\tracmor\includes\php\PHPReports\PHPReportMaker.php(274) : eval()'d code on line 293
Error in PHP Script
/tracmor/reports/asset_transaction_report.php     PHP Version: 5.3.0;  Zend Engine Version: 2.3.0;  Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Apache/2.2.11 (Win32) PHP/5.3.0;  Server Name: localhost
HTTP User Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0
Call-time pass-by-reference has been deprecated
Error Type:   Unknown

Source File:   C:\wamp\www\tracmor\includes\php\PHPReports\PHPReportMaker.php(274) : eval()'d code     Line:   293


Call Stack:

#0 C:\wamp\www\tracmor\includes\php\PHPReports\PHPReportMaker.php(274): QcodoHandleError()
#1 C:\wamp\www\tracmor\includes\php\PHPReports\PHPReportMaker.php(274): PHPReportMaker::run()
#2 C:\wamp\www\tracmor\reports\asset_transaction_report.php(426): PHPReportMaker->run()
#3 C:\wamp\www\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(658): AssetTransactionListForm->btnGenerate_Click()
#4 C:\wamp\www\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(777): QFormBase->TriggerMethod()
#5 C:\wamp\www\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(242): QFormBase->TriggerActions()
#6 C:\wamp\www\tracmor\reports\asset_transaction_report.php(476): QFormBase::Run()


Variable Dump:   Show/Hide

  _COOKIE
  _FILES
  _GET
  _POST
  _SERVER
  php_errormsg

Any one can help?

Re: Asset transaction report Error

I am having the same problem and other similar issues relating to deprecated methods in PHP5 in the reports module. When will Tracmor be completely compatible with PHP5? What version of PHP do you use/recommend to deploy Tracmor?

I am using:
Ubuntu 10.04
PHP 5.3.2-1
MySQL 5.1.41

The errors I am getting:

Asset Transaction Report:

Call-time pass-by-reference has been deprecated
Error Type:   Unknown
Source File:   /var/www/includes/php/PHPReports/PHPReportMaker.php(273) : eval()'d code     Line:   295
Call Stack:
#0 /var/www/includes/php/PHPReports/PHPReportMaker.php(273): QcodoHandleError()
#1 /var/www/includes/php/PHPReports/PHPReportMaker.php(273): PHPReportMaker::run()
#2 /var/www/reports/asset_transaction_report.php(428): PHPReportMaker->run()
#3 /var/www/includes/qcodo/_core/qform/QFormBase.class.php(657): AssetTransactionListForm->btnGenerate_Click()
#4 /var/www/includes/qcodo/_core/qform/QFormBase.class.php(774): QFormBase->TriggerMethod()
#5 /var/www/includes/qcodo/_core/qform/QFormBase.class.php(242): QFormBase->TriggerActions()
#6 /var/www/reports/asset_transaction_report.php(477): QFormBase::Run()

Asset Audit:

Function split() is deprecated
Error Type:   Unknown
Rendered Page:   Click here to view contents able to be rendered
Source File:   /var/www/portable/asset_audit.php     Line:   25
Line 20:          $intLocationIdArray = array();
Line 21:          $intAssetIdArray = array();
Line 22:          // Begin error checking for assets
Line 23:          foreach ($arrLocationAssetCode as $strLocationAssetCode) {
Line 24:              if ($strLocationAssetCode) {
Line 25:                list($strLocation, $strAssetCodeArray) = split('[:]',$strLocationAssetCode,2);
Line 26:                // Location must be exist
Line 27:            $objDestinationLocation = Location::LoadByShortDescription($strLocation);
Line 28:            if (!$objDestinationLocation) {
Line 29:              $strWarning .= $strLocation." - Location does not exist.<br />";
Line 30:              $blnError = true;

Thanks,
Ted

Re: Asset transaction report Error

I have the same issue. Do we have a solution for this? This is high priority!


Error in PHP Script
/reports/asset_transaction_report.php    PHP Version: 5.3.2-1ubuntu4.9;  Zend Engine Version: 2.3.0;  Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Apache;  Server Name: tracmor.stuptech.com
HTTP User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.68 Safari/534.24
Call-time pass-by-reference has been deprecated
Error Type:   Unknown   

Source File:   /var/www/02-tracmor.stuptech.com/includes/php/PHPReports/PHPReportMaker.php(273) : eval()'d code         Line:   295   


Call Stack:

#0 /var/www/02-tracmor.stuptech.com/includes/php/PHPReports/PHPReportMaker.php(273): QcodoHandleError()
#1 /var/www/02-tracmor.stuptech.com/includes/php/PHPReports/PHPReportMaker.php(273): PHPReportMaker::run()
#2 /var/www/02-tracmor.stuptech.com/reports/asset_transaction_report.php(426): PHPReportMaker->run()
#3 /var/www/02-tracmor.stuptech.com/includes/qcodo/_core/qform/QFormBase.class.php(657): AssetTransactionListForm->btnGenerate_Click()
#4 /var/www/02-tracmor.stuptech.com/includes/qcodo/_core/qform/QFormBase.class.php(774): QFormBase->TriggerMethod()
#5 /var/www/02-tracmor.stuptech.com/includes/qcodo/_core/qform/QFormBase.class.php(242): QFormBase->TriggerActions()
#6 /var/www/02-tracmor.stuptech.com/reports/asset_transaction_report.php(475): QFormBase::Run()

Variable Dump:   Show/Hide

  _COOKIE
  _FILES
  _GET
  _POST
  _SERVER

Re: Asset transaction report Error

Can you confirm that you have tried setting allow_call_time_pass_reference to true in your php.ini? You will need to restart your web server after making this change.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: Asset transaction report Error

putting that in my php.ini didn't work, however adding the following setting in .htaccess:

php_value allow_call_time_pass_reference 1

did. Thanks.