Topic: Labels
The label option is not working. When I click print nothing happens. Any advice or fixes? Thanks!
Here is the AJAX error I received:
Error Type: E_WARNING
Rendered Page: Click here to view contents able to be rendered
Source File: /home/adminchadwick/chadwick.k12.mo.us/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 /home/adminchadwick/chadwick.k12.mo.us/tracmor/admin/labels.php(351): imagecreatefrompng()
#2 /home/adminchadwick/chadwick.k12.mo.us/tracmor/admin/labels.php(421): AdminLabelsForm->CreateTableByBarCodeArray()
#3 /home/adminchadwick/chadwick.k12.mo.us/tracmor/includes/qcodo/_core/qform/QFormBase.class.php(657): AdminLabelsForm->btnPrint_Click()
#4 /home/adminchadwick/chadwick.k12.mo.us/tracmor/includes/qcodo/_core/qform/QFormBase.class.php(774): QFormBase->TriggerMethod()
#5 /home/adminchadwick/chadwick.k12.mo.us/tracmor/includes/qcodo/_core/qform/QFormBase.class.php(242): QFormBase->TriggerActions()
#6 /home/adminchadwick/chadwick.k12.mo.us/tracmor/admin/labels.php(524): QFormBase::Run()
Variable Dump: Show/Hide
_COOKIE
_FILES
_GET
_POST
_SERVER
Last edited by brilla (2009-06-16 09:01:01)