admin管理员组文章数量:1025522
I changed my domain this week and lost most (but strangely, not all) uploaded pictures in the Media Library. When I try to re-upload them I get, "Specified file failed upload test."
I’ve enabled the following settings in wp-config.php but am not seeing any debug output in debug.log:
define(‘WP_DEBUG’, true);
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );
There's also no debug output in either the Apache or PHP error logs. I tail the logs and during the upload, no output.
I've run Health Check and disabled all plugins but it’s still doing it. I've installed mod_security but tried the same with it disabled. (SecRuleEngine Off) I’ve installed Wordfence as well but it should have been disabled during the Health Check disable plugins test.
I tried this in the .htaccess, no good:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Also, the classic browser uploader option silently fails.
Tried the WP Health plugin and it says everything is good.
The wp-content/uploads directory’s permissions are 750. Tried 755.
This may or may not be important: My WP install is linked to my WP account. I wonder if the domain name change boogered something up? All other functionality that I have tested is now successful since the domain name change.
I am on WP 5.1.1. What else can I look at?
I changed my domain this week and lost most (but strangely, not all) uploaded pictures in the Media Library. When I try to re-upload them I get, "Specified file failed upload test."
I’ve enabled the following settings in wp-config.php but am not seeing any debug output in debug.log:
define(‘WP_DEBUG’, true);
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );
There's also no debug output in either the Apache or PHP error logs. I tail the logs and during the upload, no output.
I've run Health Check and disabled all plugins but it’s still doing it. I've installed mod_security but tried the same with it disabled. (SecRuleEngine Off) I’ve installed Wordfence as well but it should have been disabled during the Health Check disable plugins test.
I tried this in the .htaccess, no good:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Also, the classic browser uploader option silently fails.
Tried the WP Health plugin and it says everything is good.
The wp-content/uploads directory’s permissions are 750. Tried 755.
This may or may not be important: My WP install is linked to my WP account. I wonder if the domain name change boogered something up? All other functionality that I have tested is now successful since the domain name change.
I am on WP 5.1.1. What else can I look at?
Share Improve this question asked Apr 4, 2019 at 14:05 Christopher de VidalChristopher de Vidal 12 bronze badges1 Answer
Reset to default -1Fixed :-) I had set file_uploads = Off in php.ini.
I changed my domain this week and lost most (but strangely, not all) uploaded pictures in the Media Library. When I try to re-upload them I get, "Specified file failed upload test."
I’ve enabled the following settings in wp-config.php but am not seeing any debug output in debug.log:
define(‘WP_DEBUG’, true);
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );
There's also no debug output in either the Apache or PHP error logs. I tail the logs and during the upload, no output.
I've run Health Check and disabled all plugins but it’s still doing it. I've installed mod_security but tried the same with it disabled. (SecRuleEngine Off) I’ve installed Wordfence as well but it should have been disabled during the Health Check disable plugins test.
I tried this in the .htaccess, no good:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Also, the classic browser uploader option silently fails.
Tried the WP Health plugin and it says everything is good.
The wp-content/uploads directory’s permissions are 750. Tried 755.
This may or may not be important: My WP install is linked to my WP account. I wonder if the domain name change boogered something up? All other functionality that I have tested is now successful since the domain name change.
I am on WP 5.1.1. What else can I look at?
I changed my domain this week and lost most (but strangely, not all) uploaded pictures in the Media Library. When I try to re-upload them I get, "Specified file failed upload test."
I’ve enabled the following settings in wp-config.php but am not seeing any debug output in debug.log:
define(‘WP_DEBUG’, true);
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );
There's also no debug output in either the Apache or PHP error logs. I tail the logs and during the upload, no output.
I've run Health Check and disabled all plugins but it’s still doing it. I've installed mod_security but tried the same with it disabled. (SecRuleEngine Off) I’ve installed Wordfence as well but it should have been disabled during the Health Check disable plugins test.
I tried this in the .htaccess, no good:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Also, the classic browser uploader option silently fails.
Tried the WP Health plugin and it says everything is good.
The wp-content/uploads directory’s permissions are 750. Tried 755.
This may or may not be important: My WP install is linked to my WP account. I wonder if the domain name change boogered something up? All other functionality that I have tested is now successful since the domain name change.
I am on WP 5.1.1. What else can I look at?
Share Improve this question asked Apr 4, 2019 at 14:05 Christopher de VidalChristopher de Vidal 12 bronze badges1 Answer
Reset to default -1Fixed :-) I had set file_uploads = Off in php.ini.
本文标签: Uploading pictures to the Media Library “Specified file failed upload test”
版权声明:本文标题:Uploading pictures to the Media Library: “Specified file failed upload test.” 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745626139a2159872.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论