Topic: labels ajax error
hi friends
im running tracmor on windows 7 with wampserver
and when im trying to print a label a pop up appears on the
screen related with ajax
You are not logged in. Please login or register.
hi friends
im running tracmor on windows 7 with wampserver
and when im trying to print a label a pop up appears on the
screen related with ajax
Please see this thread.
hi i tried the solution previously provided but i still having the issue
this is the error showed
imagecreatefrompng() [<a href='function.imagecreatefrompng'>function.imagecreatefrompng</a>]: 'http://localhost/tracmor/includes/php/barcode.php?code=000022&encoding=128&scale=1' is not a valid PNG file
Error Type: E_WARNING
Rendered Page: Click here to view contents able to be rendered
Source File: C:\wamp\www\tracmor\admin\labels.php Line: 351
Line 346: if ($i < $this->lstLabelOffset->SelectedValue && $this->intCurrentBarCodeLabel == 0) {
Line 347: $arrTD[] = sprintf("<td width=\"%spx\" style=\"text-align:center\"><img src=\"../includes/php/tcpdf/images/_blank.png\" height=\"%s\" /></td>", $intCellWidth, $intImageHeight);
Line 348: }
Line 349: elseif ($this->intCurrentBarCodeLabel < $intBarCodeArrayCount) {
Line 350: $arrTD[] = sprintf("<td width=\"%spx\" style=\"text-align:center\"><img src=\"..%s/%s_%s.png\" height=\"%s\" border=\"0\" align=\"center\" /></td>", $intCellWidth, __TRACMOR_TMP__, $_SESSION['intUserAccountId'], $this->intCurrentBarCodeLabel+1, $intImageHeight);
Line 351: $image = ImageCreateFromPNG(sprintf("http://%s/includes/php/barcode.php?code=%s&encoding=128&scale=1", $_SERVER['SERVER_NAME'] . __SUBDIRECTORY__, urlencode($this->strBarCodeArray[$this->intCurrentBarCodeLabel++])));
Line 352:
Line 353: if ($this->lstLabelStock->SelectedValue != 1 ) {
Line 354: // Get image width
Line 355: $intImageSx = imagesx($image);
Line 356: // Get image height
Call Stack:
#0 (): QcodoHandleError()
#1 C:\wamp\www\tracmor\admin\labels.php(351): imagecreatefrompng()
#2 C:\wamp\www\tracmor\admin\labels.php(421): AdminLabelsForm->CreateTableByBarCodeArray()
#3 C:\wamp\www\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(657): AdminLabelsForm->btnPrint_Click()
#4 C:\wamp\www\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(774): QFormBase->TriggerMethod()
#5 C:\wamp\www\tracmor\includes\qcodo\_core\qform\QFormBase.class.php(242): QFormBase->TriggerActions()
#6 C:\wamp\www\tracmor\admin\labels.php(524): QFormBase::Run()
Are you running your Tracmor on a port other than 80? There is currently a limitation with label generation where it expects you are running on port 80. If you're using another port, you could update line 351 of tracmor/admin/labels.php to use the correct port. For example, if you're running on port 88, you would change this:
$image = ImageCreateFromPNG(sprintf("http://%s/includes/php/barcode.php?code=%s&encoding=128&scale=1", $_SERVER['SERVER_NAME'] . __SUBDIRECTORY__, urlencode($this->strBarCodeArray[$this->intCurrentBarCodeLabel++])));to this:
$image = ImageCreateFromPNG(sprintf("http://%s/includes/php/barcode.php?code=%s&encoding=128&scale=1", $_SERVER['SERVER_NAME'] . ':88' . __SUBDIRECTORY__, urlencode($this->strBarCodeArray[$this->intCurrentBarCodeLabel++])));hi i change the code on line 351 and i have the same issue this is what its showed in red color
$image = ImageCreateFromPNG(sprintf("http://%s/includes/php/barcode.php?code=%s&encoding=128&scale=1", $_SERVER['SERVER_NAME'] .':80'. __SUBDIRECTORY__, urlencode($this->strBarCodeArray[$this->intCurrentBarCodeLabel++])));
also im running tracmor locally in my notebook
I was facing the same problem generating bar-codes. Switching my php to 5.2 and applying the latest TCPDF helped avoid this problem. I was using higher version of php.
Powered by PunBB, supported by Informer Technologies, Inc.
Currently used extensions: pun_repository, pun_antispam, pun_bbcode, pun_pm. Copyright © 2008 PunBB