2013-08-30 43 views
0

当我在wordpress中上传图片时,出现HTTP错误。尽管上传文件夹中插入了图片,但是显示错误。图片上传HTTP错误Wordpress

我试图用的.htaccess工作 .. SecFilterEngine关 SecFilterScanPOST关 .. 但没有干活也试图与对上传文件夹的权限问题。 我没有在debug.log中的任何错误只有几个PHP通知 我有WordPress的3.3,与Apache服务器的窗口。

回答

0

尝试通过File-Zilla或其他ftp解决方案而不是内置工具上传图像?

只是一个建议。

+0

我试图也上传图像,但它没有显示在媒体库 – khadkaboy

+0

这是因为他们没有上传到wp数据库。图像有多大?你为什么使用它们? – MPhil

+0

图像大约25kb.It用于特色image.I曾与静态url图像,但只能在编辑器内使用 – khadkaboy

1

安装将GD设置为默认WP_Image_Editor类的“Default to GD”插件。

的插件(目前)可以在这里找到:https://github.com/getsource/default-to-gd/blob/master/default-to-gd.php

它具有功能:

<?php 
/* 
Plugin Name: Default to GD 
Plugin URI: http://wordpress.org/extend/plugins/default-to-gd 
Description: Sets GD as default WP_Image_Editor class. 
Author: Mike Schroder 
Version: 1.0 
Author URI: http://www.getsource.net/ 
*/ 
function ms_image_editor_default_to_gd($editors) { 
    $gd_editor = 'WP_Image_Editor_GD'; 
    $editors = array_diff($editors, array($gd_editor)); 
    array_unshift($editors, $gd_editor); 
    return $editors; 
} 
add_filter('wp_image_editors', 'ms_image_editor_default_to_gd'); 
1

刚刚尝试下面的代码主题的functions.php文件添加:

add_filter('wp_image_editors', 'change_graphic_lib'); 
    function change_graphic_lib($array) { 
    return array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick'); 
} 

更多解决此问题的方法访问此链接HOW TO FIX HTTP ERROR WHEN UPLOADING IMAGES