Topic: Printing Asset labels

When attempting to print asset barcode labels, I get a message in the pop-up box that says PDF generation 100% complete, but I never get a PDF file or any indication of where the file is located.  A search of my system finds no PDF files created on the current date.  I do however get an image file of the barcode created under the images folder.

Is my system missing some piece of software required to generate the PDF file?  What am I doing wrong?

Re: Printing Asset labels

Are you using IE? Maybe try a different browser (Firefox or Chrome) and see if that makes a difference.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: Printing Asset labels

I just tried from Firefox and got the following:

an error dialog:

An error occurred during AJAX Response processing.
The error will appear in a new popup.

The new popup contained:

Error in PHP Script
/tracmor/admin/labels.php     PHP Version: 5.3.1;  Zend Engine Version: 2.3.0;  Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1;  Server Name: localhost
HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Function set_magic_quotes_runtime() is deprecated
Error Type:   Unknown

Rendered Page:   Click here to view contents able to be rendered

Source File:   C:\xampp\htdocs\tracmor\includes\php\tcpdf\tcpdf.php     Line:   3480

Line 3475:                    $type = strtolower($type);
Line 3476:                    if ($type == "jpg") {
Line 3477:                        $type = "jpeg";
Line 3478:                    }
Line 3479:                    $mqr = get_magic_quotes_runtime();
Line 3480:                    set_magic_quotes_runtime(0);
Line 3481:                    // Specific image handlers
Line 3482:                    $mtd = '_parse'.$type;
Line 3483:                    // GD image handler function
Line 3484:                    $gdfunction = "imagecreatefrom".$type;
Line 3485:                    $info = false;


Call Stack:

#0 (): QcodoHandleError()
#1 C:\xampp\htdocs\tracmor\includes\php\tcpdf\tcpdf.php(3480): set_magic_quotes_runtime()
#2 C:\xampp\htdocs\tracmor\includes\php\tcpdf\tcpdf.php(9802): TCPDF->Image()
#3 C:\xampp\htdocs\tracmor\includes\php\tcpdf\tcpdf.php(9546): TCPDF->openHTMLTagHandler()
#4 C:\xampp\htdocs\tracmor\includes\php\tcpdf\tcpdf.php(3058): TCPDF->writeHTML()
#5 C:\xampp\htdocs\tracmor\includes\php\tcpdf\tcpdf.php(9492): TCPDF->MultiCell()
#6 C:\xampp\htdocs\tracmor\admin\labels.php(488): TCPDF->writeHTML()
#7 C:\xampp\htdocs\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(657): AdminLabelsForm->btnPrint_Click()
#8 C:\xampp\htdocs\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(774): QFormBase->TriggerMethod()
#9 C:\xampp\htdocs\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(242): QFormBase->TriggerActions()
#10 C:\xampp\htdocs\tracmor\admin\labels.php(524): QFormBase::Run()


Variable Dump:   Show/Hide

  _COOKIE
  _FILES
  _GET
  _POST
  _SERVER
  diacritics
  laa_array
  unicode
  unicode_arlet
  unicode_mirror


Error Report Generated:  Wednesday, February 23 2011, 4:17:08 PM

Re: Printing Asset labels

It appears that the version of TCPDF we are currently using in Tracmor is rather outdated now.   We have not updated Tracmor with the latest version yet, but you can do this yourself by following these steps:

1) Download the latest TCPDF here.
2) Unzip the download and copy tcpdf.php and unicode_data.php to your tracmor/includes/php/tcpdf directory.

This should allow you to print labels again. This issue will be fixed in the next Tracmor release.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: Printing Asset labels

Hi All,

I am brand new to Tracmor and was moving along fine until I tried to print labels. I have followed the advice of this and all the other posts regarding this error to no avail. I replaced the tcpd files, changed permissions, installed php5-xsl, etc. but am still getting the same error on printing labels:

Error in PHP Script
/trac/admin/labels.php     PHP Version: 5.3.2-1ubuntu4.14;  Zend Engine Version: 2.3.0;  Qcodo Version: 0.3.32 (Qcodo Beta 3)
Application: Apache/2.2.14 (Ubuntu);  Server Name: 192.168.0.13
HTTP User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0
Function set_magic_quotes_runtime() is deprecated
Error Type:   Unknown

Rendered Page:   Click here to view contents able to be rendered

Source File:   /var/www/trac/includes/php/tcpdf/tcpdf.php     Line:   3480

Line 3475:                    $type = strtolower($type);
Line 3476:                    if ($type == "jpg") {
Line 3477:                        $type = "jpeg";
Line 3478:                    }
Line 3479:                    $mqr = get_magic_quotes_runtime();
Line 3480:                    set_magic_quotes_runtime(0);
Line 3481:                    // Specific image handlers
Line 3482:                    $mtd = '_parse'.$type;
Line 3483:                    // GD image handler function
Line 3484:                    $gdfunction = "imagecreatefrom".$type;
Line 3485:                    $info = false;


Call Stack:

#0 (): QcodoHandleError()
#1 /var/www/trac/includes/php/tcpdf/tcpdf.php(3480): set_magic_quotes_runtime()
#2 /var/www/trac/includes/php/tcpdf/tcpdf.php(9802): TCPDF->Image()
#3 /var/www/trac/includes/php/tcpdf/tcpdf.php(9546): TCPDF->openHTMLTagHandler()
#4 /var/www/trac/includes/php/tcpdf/tcpdf.php(3058): TCPDF->writeHTML()
#5 /var/www/trac/includes/php/tcpdf/tcpdf.php(9492): TCPDF->MultiCell()
#6 /var/www/trac/admin/labels.php(488): TCPDF->writeHTML()
#7 /var/www/trac/includes/qcodo/_core/qform/QFormBase.class.php(657): AdminLabelsForm->btnPrint_Click()
#8 /var/www/trac/includes/qcodo/_core/qform/QFormBase.class.php(774): QFormBase->TriggerMethod()
#9 /var/www/trac/includes/qcodo/_core/qform/QFormBase.class.php(242): QFormBase->TriggerActions()
#10 /var/www/trac/admin/labels.php(524): QFormBase::Run()

Any help would be greatly appreciated.

Thanks in adavance

Re: Printing Asset labels

Hi Again,

Any word on this bug fix? It would be a real shame as everything else seems to be working so well.

Did anybody else manage to overcome this? Would anybody be able to suggest an alternative, bug-free app that does the same things?

Thanks again

Last edited by mikekorncnx (2012-03-08 01:39:52)