Re: Labels

Keith, have you tried all the suggestions in this thread? Have you tried executing the genbarcode binary in the includes/php directory to make sure it runs? Depending on your platform you may need to recompile it from source.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: Labels

it working fine on the server but once i hots it, the client will received this error :
imagecreatefrompng(http://110.159.4.161/includes/php/barcode.php?code=115764&amp;encoding=128&amp;scale=1) [<a href='function.imagecreatefrompng'>function.imagecreatefrompng</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Error Type:   E_WARNING

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

Source File:   C:\wamp\www\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\admin\labels.php(351): imagecreatefrompng()
#2 C:\wamp\www\admin\labels.php(421): AdminLabelsForm->CreateTableByBarCodeArray()
#3 C:\wamp\www\includes\qcodo\_core\qform\QFormBase.class.php(657): AdminLabelsForm->btnPrint_Click()
#4 C:\wamp\www\includes\qcodo\_core\qform\QFormBase.class.php(774): QFormBase->TriggerMethod()
#5 C:\wamp\www\includes\qcodo\_core\qform\QFormBase.class.php(242): QFormBase->TriggerActions()
#6 C:\wamp\www\admin\labels.php(524): QFormBase::Run()

anything to set on the client side?

on server side is using WAMP 2.0