Topic: labels and assets

i have 2 very big problems:

first at the moments to create the labes,


An error occurred during AJAX Response parsing.

The error response will appear in a new popup.

imagecreatefrompng() [<a href='function.imagecreatefrompng'>function.imagecreatefrompng</a>]: Cannot read image data
Error Type:   E_WARNING

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

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


Variable Dump:   Show/Hide

  _COOKIE
  _FILES
  _GET
  _POST
  _SERVER

I read the last post about this bug, I check it, an nothing, i cant resolve it

The other error is at the moment to want to delete an asset with image:

unlink(../images/asset_models/thumbs/14_asset_model.JPG) [<a href='function.unlink'>function.unlink</a>]: Permission denied
Error Type:   E_WARNING

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

Source File:   D:\Inetpub\wwwroot\includes\qcodo\qform\QImageFileControl.class.php     Line:   180

Line 175:                    else {
Line 176:                        // throw new Exception('File '.$filename.' does not exist to delete.');
Line 177:                    }
Line 178:                    $filename_thumb = $this->strThumbUploadPath.$this->strThumbPrefix.$strImagePath;
Line 179:                    if (is_file($filename_thumb)) {
Line 180:                        unlink($this->strThumbUploadPath.$this->strThumbPrefix.$strImagePath);
Line 181:                    }
Line 182:                    else {
Line 183:                        // throw new Exception('File '.$filename_thumb.' does not exist to delete.');
Line 184:                    }
Line 185:                }


Call Stack:

#0 (): QcodoHandleError()
#1 D:\Inetpub\wwwroot\includes\qcodo\qform\QImageFileControl.class.php(180): unlink()
#2 D:\Inetpub\wwwroot\assets\asset_model_edit.php(421): QImageFileControl->Delete()
#3 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(657): AssetModelEditForm->btnDelete_Click()
#4 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(774): QFormBase->TriggerMethod()
#5 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(242): QFormBase->TriggerActions()
#6 D:\Inetpub\wwwroot\assets\asset_model_edit.php(608): QFormBase::Run()


Variable Dump:   Show/Hide

  _COOKIE
  _FILES
  _GET
  _POST
  _SERVER


whith the assets whithout image dont give me problems, in the server i give all permission.


I´m using windows server 2003
IIS
Mysql 5.0.45
PHP 5

please help mad