我在我的根文件夹上安装了wordpress,
直到昨天它工作正常,但今天它给出了以下错误,因为我猜生成缩略图,
Warning: imagejpeg() [function:imagejpeg]: gd-jpeg: JPEG library reports unrecoverable error: in public_html/wp-includes/media.php on line 459
Run Code Online (Sandbox Code Playgroud)
有人对这个警告有任何想法吗?
请帮我
以下代码在第459行
if ( !imagejpeg( $newimage, $destfilename, apply_filters( 'jpeg_quality', $jpeg_quality, 'image_resize' ) ) )
Run Code Online (Sandbox Code Playgroud) 当有人将图像上传到我们的网站时,我一直收到此警告:
警告:imagecreatefromjpeg()[function.imagecreatefromjpeg]:gd-jpeg:JPEG库报告不可恢复的错误:在第220行的/home/pathremoved/includes/snapsutils.php中
警告:imagecreatefromjpeg()[function.imagecreatefromjpeg]:'/ tmp/phpiw4MFk'不是220行/home/pathremoved.php中的有效JPEG文件
警告:imagesx():提供的参数不是222行/home/pathremoved.php中的有效图像资源
警告:imagesy():提供的参数不是223行/home/pathremoved.php中的有效图像资源
警告:imagecreatetruecolor()[function.imagecreatetruecolor]:第240行/home/pathremoved.php中的图像尺寸无效
警告:imagecopyresampled():提供的参数不是第242行/home/pathremoved.php中的有效图像资源
这只发生在某些图像上,在任何程序中打开都可以,它甚至上传到我在localhost上的网站版本没有问题...我google了一下,但没有发现任何结论...
注意php upload_max大小为5M,post_max_size为5M.这不是上传或内存问题.我已经测试了4M图像没有问题.
任何帮助赞赏.