I am having an issue in WordPress admin, where the images are not cropping in WP \"edit image\" for a site I am creating and I do not know what the cause is.
I\'ve r
If you've tried just about everything but none of the suggestions work, read on.
I was experiencing this issue on just one site in my dev environment where all other sites were working fine. It ended up being a single included file with UTF-8 BOM header. Removed it and voila!
You may be missing the GD library.
To check that the server has it installed, try php -me
at the command line. Scan for gd module.
If it's missing, get it: sudo apt-get install php7.0-gd
If someone is trying to accomplish this in an AWS Linux Environment, these commands worked for me:
yum install php71-pecl-imagick.x86_64
Of course, you can search for the corresponding imagemagick
package for your environment:
yum search imagemagick
later, don't forget to do a:
service httpd restart
for the changes to take effect on your WP
This should solve your problem:
/wp-content/themes/name/functions.php
+ the including files./wp-config.php
filephp5-gd
is installed./wp-content/upload/
+ sub folders?>
) php tags in /wp-content/themes/name/functions.php
+ the including files.If your WordPress installation hosted on Amazon Red hat, please, do the following:
sudo yum install php-gd
For more check here.
I was not able to crop images, too. The area, where the cropping should show was just blank, instead I got the error message:
Image crop area preview. Requires mouse interaction.
Now, there was also other suspicous things: the media image library showed no thumbnails. When activating developer mode in the browser, I noticed some resources of Wordpress could not load.
Solution: the access rights to /wp-content
were broken, Apache was no longer able to read the files. In my case, recursively changing the access rights of wp-content
folder to rwxr-x---
did solve it.