图片上传HTTP错误Wordpress [英] Image Upload HTTP error Wordpress
问题描述
当我在wordpress中上传图片时,出现HTTP错误.尽管图片已插入上传文件夹中,但仍显示错误.
When I upload the image in the wordpress,I get the HTTP error.Though images are inserted in upload folder.Yet it shows the error.
我已经尝试过.htaccess工作 .. SecFilterEngine关闭 SecFilterScanPOST关闭 .. 但没有用.我还尝试了上传文件夹问题的权限. 我在debug.log中没有任何错误,只是一些PHP声明 我有wordpress 3.3,带有apache服务器的Windows.
I have tried with the .htaccess work .. SecFilterEngine Off SecFilterScanPOST Off .. but didnt work.I also tried with permission for the uploads folder issue. I dont have any error in the debug.log just few of the PHP Notice I have wordpress 3.3,windows with the apache server.
推荐答案
只需尝试添加以下代码主题的functions.php文件:
Just try to add below code theme’s functions.php file:
add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
有关解决此问题的更多方法,请访问此链接上载图片时如何解决HTTP错误
for more ways to solve this problem visit this link HOW TO FIX HTTP ERROR WHEN UPLOADING IMAGES
这篇关于图片上传HTTP错误Wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!