<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Tracmor Forum - labels and assets]]></title>
	<link rel="self" href="http://www.tracmor.com/forum/feed/atom/topic/296/"/>
	<updated>2010-06-14T15:50:11Z</updated>
	<generator>PunBB</generator>
	<id>http://www.tracmor.com/forum/topic/296/labels-and-assets/</id>
		<entry>
			<title type="html"><![CDATA[labels and assets]]></title>
			<link rel="alternate" href="http://www.tracmor.com/forum/post/880/#p880"/>
			<content type="html"><![CDATA[<p>i have 2 very big problems:</p><p>first at the moments to create the labels, </p><br /><p>An error occurred during AJAX Response parsing.</p><p>The error response will appear in a new popup.</p><p>imagecreatefrompng() [&lt;a href=&#039;function.imagecreatefrompng&#039;&gt;function.imagecreatefrompng&lt;/a&gt;]: Cannot read image data<br />Error Type:&nbsp; &nbsp;E_WARNING</p><p>Rendered Page:&nbsp; &nbsp;Click here to view contents able to be rendered</p><p>Source File:&nbsp; &nbsp;D:\Inetpub\wwwroot\admin\labels.php&nbsp; &nbsp; &nbsp;Line:&nbsp; &nbsp;351</p><p>Line 346:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if ($i &lt; $this-&gt;lstLabelOffset-&gt;SelectedValue &amp;&amp; $this-&gt;intCurrentBarCodeLabel == 0) {<br />Line 347:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$arrTD[] = sprintf(&quot;&lt;td width=\&quot;%spx\&quot; style=\&quot;text-align:center\&quot;&gt;&lt;img src=\&quot;../includes/php/tcpdf/images/_blank.png\&quot; height=\&quot;%s\&quot; /&gt;&lt;/td&gt;&quot;, $intCellWidth, $intImageHeight);<br />Line 348:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}<br />Line 349:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;elseif ($this-&gt;intCurrentBarCodeLabel &lt; $intBarCodeArrayCount) {<br />Line 350:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$arrTD[] = sprintf(&quot;&lt;td width=\&quot;%spx\&quot; style=\&quot;text-align:center\&quot;&gt;&lt;img src=\&quot;..%s/%s_%s.png\&quot; height=\&quot;%s\&quot; border=\&quot;0\&quot; align=\&quot;center\&quot; /&gt;&lt;/td&gt;&quot;, $intCellWidth, __TRACMOR_TMP__, $_SESSION[&#039;intUserAccountId&#039;], $this-&gt;intCurrentBarCodeLabel+1, $intImageHeight);<br />Line 351:&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$image = ImageCreateFromPNG(sprintf(&quot;http://%s/includes/php/barcode.php?code=%s&amp;encoding=128&amp;scale=1&quot;, $_SERVER[&#039;SERVER_NAME&#039;] . __SUBDIRECTORY__,&nbsp; urlencode($this-&gt;strBarCodeArray[$this-&gt;intCurrentBarCodeLabel++])));<br />Line 352:&nbsp; &nbsp; <br />Line 353:&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ($this-&gt;lstLabelStock-&gt;SelectedValue != 1 ) {<br />Line 354:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Get image width<br />Line 355:&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$intImageSx = imagesx($image);<br />Line 356:&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Get image height</p><br /><p>Call Stack:</p><p>#0 (): QcodoHandleError()<br />#1 D:\Inetpub\wwwroot\admin\labels.php(351): imagecreatefrompng()<br />#2 D:\Inetpub\wwwroot\admin\labels.php(421): AdminLabelsForm-&gt;CreateTableByBarCodeArray()<br />#3 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(657): AdminLabelsForm-&gt;btnPrint_Click()<br />#4 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(774): QFormBase-&gt;TriggerMethod()<br />#5 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(242): QFormBase-&gt;TriggerActions()<br />#6 D:\Inetpub\wwwroot\admin\labels.php(524): QFormBase::Run()</p><br /><p>Variable Dump:&nbsp; &nbsp;Show/Hide</p><p>&nbsp; _COOKIE<br />&nbsp; _FILES<br />&nbsp; _GET<br />&nbsp; _POST<br />&nbsp; _SERVER</p><p>I read the last post about this bug, I check it, an nothing, i cant resolve it</p><p>The other error is at the moment to want to delete an asset with image:</p><p>unlink(../images/asset_models/thumbs/14_asset_model.JPG) [&lt;a href=&#039;function.unlink&#039;&gt;function.unlink&lt;/a&gt;]: Permission denied<br />Error Type:&nbsp; &nbsp;E_WARNING</p><p>Rendered Page:&nbsp; &nbsp;Click here to view contents able to be rendered</p><p>Source File:&nbsp; &nbsp;D:\Inetpub\wwwroot\includes\qcodo\qform\QImageFileControl.class.php&nbsp; &nbsp; &nbsp;Line:&nbsp; &nbsp;180</p><p>Line 175:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />Line 176:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // throw new Exception(&#039;File &#039;.$filename.&#039; does not exist to delete.&#039;);<br />Line 177:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />Line 178:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $filename_thumb = $this-&gt;strThumbUploadPath.$this-&gt;strThumbPrefix.$strImagePath;<br />Line 179:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_file($filename_thumb)) {<br />Line 180:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unlink($this-&gt;strThumbUploadPath.$this-&gt;strThumbPrefix.$strImagePath);<br />Line 181:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />Line 182:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />Line 183:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // throw new Exception(&#039;File &#039;.$filename_thumb.&#039; does not exist to delete.&#039;);<br />Line 184:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />Line 185:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><br /><p>Call Stack:</p><p>#0 (): QcodoHandleError()<br />#1 D:\Inetpub\wwwroot\includes\qcodo\qform\QImageFileControl.class.php(180): unlink()<br />#2 D:\Inetpub\wwwroot\assets\asset_model_edit.php(421): QImageFileControl-&gt;Delete()<br />#3 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(657): AssetModelEditForm-&gt;btnDelete_Click()<br />#4 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(774): QFormBase-&gt;TriggerMethod()<br />#5 D:\Inetpub\wwwroot\includes\qcodo\_core\qform\QFormBase.class.php(242): QFormBase-&gt;TriggerActions()<br />#6 D:\Inetpub\wwwroot\assets\asset_model_edit.php(608): QFormBase::Run()</p><br /><p>Variable Dump:&nbsp; &nbsp;Show/Hide</p><p>&nbsp; _COOKIE<br />&nbsp; _FILES<br />&nbsp; _GET<br />&nbsp; _POST<br />&nbsp; _SERVER</p><br /><p>whith the assets whithout image dont give me problems, in the server i give all permission.</p><br /><p>I´m using windows server 2003<br />IIS<br />Mysql 5.0.45<br />PHP 5</p><p>please help <img src="http://www.tracmor.com/forum/img/smilies/mad.png" width="15" height="15" alt="mad" /></p>]]></content>
			<author>
				<name><![CDATA[fimox]]></name>
				<uri>http://www.tracmor.com/forum/user/308/</uri>
			</author>
			<updated>2010-06-14T15:50:11Z</updated>
			<id>http://www.tracmor.com/forum/post/880/#p880</id>
		</entry>
</feed>

