Mr_Been
2015-12-18 10:44
<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: imagecopyresampled() expects parameter 2 to be resource, null given in E:\Demo\image.class.php on line <i>32</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0044</td><td bgcolor='#eeeeec' align='right'>132464</td><td bgcolor='#eeeeec'>{main}( )</td><td title='E:\Demo\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0061</td><td bgcolor='#eeeeec' align='right'>142312</td><td bgcolor='#eeeeec'>Image->thumb( )</td><td title='E:\Demo\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>5</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0064</td><td bgcolor='#eeeeec' align='right'>379184</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.imagecopyresampled' target='_new'>imagecopyresampled</a>
( )</td><td title='E:\Demo\image.class.php' bgcolor='#eeeeec'>..\image.class.php<b>:</b>32</td></tr>
</table></font>
<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: imagedestroy() expects parameter 1 to be resource, null given in E:\Demo\image.class.php on line <i>33</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0044</td><td bgcolor='#eeeeec' align='right'>132464</td><td bgcolor='#eeeeec'>{main}( )</td><td title='E:\Demo\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0061</td><td bgcolor='#eeeeec' align='right'>142312</td><td bgcolor='#eeeeec'>Image->thumb( )</td><td title='E:\Demo\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>5</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0121</td><td bgcolor='#eeeeec' align='right'>379144</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.imagedestroy' target='_new'>imagedestroy</a>
( )</td><td title='E:\Demo\image.class.php' bgcolor='#eeeeec'>..\image.class.php<b>:</b>33</td></tr>
</table></font>
<br />
<font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Call to undefined function image() in E:\Demo\image.class.php on line <i>44</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0044</td><td bgcolor='#eeeeec' align='right'>132464</td><td bgcolor='#eeeeec'>{main}( )</td><td title='E:\Demo\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0175</td><td bgcolor='#eeeeec' align='right'>379056</td><td bgcolor='#eeeeec'>Image->show( )</td><td title='E:\Demo\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>6</td></tr>
</table></font>
请问一下怎么改的
同问,不过我的更改代码后就解决了。。应该是代码错误。。想知道具体出现的原因。。
GD库实现图片水印与缩略图
19006 学习 · 162 问题
相似问题