我想,我有一个奇怪的错误 .
致命错误:在第30行的/var/www/web/html/include/php/class/image.class.php中调用未定义的函数imagerotate()
LINE 30:
$im = imagerotate( $this->res, $degrees, $bkg );
根据the PHP documentation, imagerotate()
应该是PHP 4以后的函数,我使用的是PHP 5 .
为什么不起作用?其他图像功能,如 imagecreatefromjpeg()
和 imagejpeg()
工作正常 .
GD info from phpinfo():
GD支持 enabled
GD版 2.0 or higher
FreeType支持 enabled
FreeType Linkage with freetype
FreeType版本 2.3.7
T1Lib支持 enabled
GIF阅读支持 enabled
GIF创建支持 enabled
JPG支持 enabled
PNG支持 enabled
WBMP支持 enabled
3 回答
在page中你清楚地说明了它
其中一个comments说
有关可能的解决方案,请查看here
代码从http://www.php.net/manual/en/function.imagerotate.php#93151复制并修订
你有机会运行Ubuntu吗?然后this可能会解释您收到错误消息的原因 .
首先在脚本中添加一个if:
如果它的工作检查您的GD信息:
并检查是否支持jpeg(它应该在dg_info结果中) .
如果一切正常并且仍然无效,请询问您的托管服务 .
(错误说你使用的是非现有函数,cna你在使用它的地方设置一些代码吗?)