admin管理员组文章数量:1122826
I've searched quite a bit and every single article seems to suggest the same thing, which I've tried to no avail.
I've already tried installing php7.4-gd. it did not fix the issue.
I tried adding this snippet to my functions.php file:
add_filter('wp_image_editors', 'wpse303391_change_graphic_editor');
function wpse303391_change_graphic_editor($array)
{
return array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick');
}
Neither of these have fixed my issue.
I'm running XAMPP on debian. I imagine it has something to do with permissions because it's linux and 99% of all linux issues end up being permissions.
I got php 7.4.13
I've searched quite a bit and every single article seems to suggest the same thing, which I've tried to no avail.
I've already tried installing php7.4-gd. it did not fix the issue.
I tried adding this snippet to my functions.php file:
add_filter('wp_image_editors', 'wpse303391_change_graphic_editor');
function wpse303391_change_graphic_editor($array)
{
return array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick');
}
Neither of these have fixed my issue.
I'm running XAMPP on debian. I imagine it has something to do with permissions because it's linux and 99% of all linux issues end up being permissions.
I got php 7.4.13
Share Improve this question asked Dec 15, 2020 at 16:48 Santiago WelbesSantiago Welbes 431 silver badge5 bronze badges 2- can you add screenshot? – Vasim Shaikh Commented Dec 15, 2020 at 16:56
- Can you check the server error log to see if there's any more information there? Please also check the body of the AJAX response you're getting in your browser's network tab to see if there's any extra information there that the block editor code isn't displaying. – Rup Commented Dec 15, 2020 at 17:57
1 Answer
Reset to default 1In some cases, the ImageMagick extension might not be installed or might be unreliable (old versions of ImageMagick can be buggy). If its okay then check the rest of points.
It's the GD Library not installed.If its installed you forget to restart server.
sudo apt-get install php7.0-gd
Use this to stop Apache for it to make changes.
sudo apachectl stop
Start Apache now and everything is fixed
.
sudo apachectl start
本文标签: There has been an error cropping your image
版权声明:本文标题:There has been an error cropping your image 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736311910a1934909.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论