• Resolved Buzzcola

    (@buzzcola)


    Hi All,
    Background:
    I’m setting up a WordPress site for a family member to use for podcast.
    I have setup the WordPress server in AWS and followed the following guides:
    https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
    https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html

    I have loaded the “Blackoot Lite” theme. I have uploaded one image thus far.

    Issue 1: When I attempt to set the header image under the Appearance > Customize > header Image > Add new image, select the image, the click on crop I get the error:
    There has been an error cropping your image.

    Issue 2: When I attempt to edit the image ie Click on Media > click on image > Edit image. All I get is an icon for a broken image.
    This looks similar to: post except I dont have a thumb nail preview on the right.

    I believe these two issues are might have the same root cause.

    I have googled this error and read a number of posts. The most common solution is to install the php-gd package but this was already installed.

    I have also read that this could be a permissions issue but I have limited linux command skills so not entirely sure what I need to check and what I need to set.

    Thanks Martin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Buzzcola

    (@buzzcola)

    So I decided to see if this problem was from a fresh install.
    So I built another server (saved the AMI from earlier) and found the issue exists on a fresh install!?!

    Could it be file permissions? see this Link and scroll to “To fix file permissions for the Apache web server” for the commands run.

    Thread Starter Buzzcola

    (@buzzcola)

    Update: I have Attempted to change the folder permissions on the server with the following command
    find /var/www/html/wp-content/uploads -type d -exec sudo chmod 2777 {} +

    I have tried to enable debug but I don’t get any errors also i have checked the httpd/error_log log and no errors also.

    Also another Error im able to generate in the GUI is when I try to scale the image it then reports “Unable to create new image.”

    Thread Starter Buzzcola

    (@buzzcola)

    I found the possible problem but need help to fix it. Found this post

    I go to run: sudo yum install php-gd
    and get the following error:
    Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64

    If I run through the install again what packages do I need to use?

    Thread Starter Buzzcola

    (@buzzcola)

    Found the problem! Sorry for the Spam.
    The issue was with the package conflict. So when installing php-gd you need to specify the version. I fixed it by running:
    sudo yum remove php-common
    sudo yum install php55 php55-gd php55-mysqlnd php55-pdo

    Hope this helps some one.

    @buzzcola ^exactly what i needed, cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to Crop or edit images’ is closed to new replies.