Image Crop Editor Not working

前端 未结 16 2036
自闭症患者
自闭症患者 2020-12-15 05:55

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

相关标签:
16条回答
  • 2020-12-15 06:05

    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!

    0 讨论(0)
  • 2020-12-15 06:06

    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

    0 讨论(0)
  • 2020-12-15 06:07

    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

    0 讨论(0)
  • 2020-12-15 06:08

    This should solve your problem:

    • Remove all blank lines and whitespaces in /wp-content/themes/name/functions.php + the including files.
    • Remove all blank lines and whitespaces in /wp-config.php file
    • Check that php5-gd is installed.
    • Permissions changed to 777 for testing /wp-content/upload/ + sub folders
    • Remove closing ( ?> ) php tags in /wp-content/themes/name/functions.php + the including files.
    • Turn off all plugins.
    • Rename your theme and change to default theme.
    0 讨论(0)
  • 2020-12-15 06:08

    If your WordPress installation hosted on Amazon Red hat, please, do the following:

    sudo yum install php-gd
    

    For more check here.

    0 讨论(0)
  • 2020-12-15 06:09

    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.

    0 讨论(0)
提交回复
热议问题