【发布时间】:2017-04-05 07:03:04
【问题描述】:
我正在使用 wampserver64 windows7 操作系统
当我尝试通过 wordpress 媒体库上传图片时添加新的显示错误。
我尝试通过添加 wp-config.php 来增加 php 内存
define('WP_MEMORY_LIMIT', '256M');
但这并没有帮助,然后我在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' );
}
同样没有帮助。然后我在 .htaccess 中添加以下代码
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
也没有帮助。我在wordpress改变了
dashboard settings>media> maximum file size width 2048 and height 2048
I tried to upload 1024x768 size image.
但没有任何帮助。
提前致谢
【问题讨论】:
-
错误是什么?
-
只显示“上传出错。请稍后重试。关闭上传程序”