当我在wordpress中上传图片时,我在上传folder.Yet中插入了HTTP error.Though图片,它显示了错误。
我已经尝试过.htaccess的工作..SecFilterEngine关闭SecFilterScanPOST关闭..但不起作用。我也尝试了上载文件夹问题的权限。我没有在debug.log中有任何错误,只是几个PHP通知我有wordpress 3.3,窗口与阿帕奇服务器。
发布于 2017-01-27 21:15:04
只需尝试添加以下代码主题的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
发布于 2016-02-10 21:19:18
安装"Default to GD“插件,该插件”将GD设置为默认的WP_Image_Editor类“。
该插件(当前)可在以下位置获得: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' );
发布于 2013-08-30 14:17:38
尝试通过File-Zilla或其他ftp解决方案而不是内置实用程序上传图像?
只是一个建议。
https://stackoverflow.com/questions/18525896
复制相似问题