WordPress.org

Forums

Amazon S3 and Cloudfront
Images Won't Delete (10 posts)

  1. mikedunn
    Member
    Posted 11 months ago #

    In WP 3.9.1, works well with one exception: when I delete media from Media --> Library by clicking "Delete Permanently", the browser simply goes completely blank and the image is not deleted either from the WP database or S3. I've confirmed the IAM user has delete privs. Error is: "[26-May-2014 15:49:56 UTC] PHP Fatal error: Class 'XMLWriter' not found in /var/www/mikedunn.me/wp/wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Service/Command/LocationVisitor/Request/XmlVisitor.php on line 201"

    Thanks,
    Mike

    https://wordpress.org/plugins/amazon-s3-and-cloudfront/

  2. mikedunn
    Member
    Posted 3 months ago #

    Still an issue in the latest version. Anyone else able to delete images from the Media Library?

  3. polevaultweb
    Member
    Posted 3 months ago #

    Delete is working fine for me. What is your IAM user policy so I can investigate and try to recreate?

  4. mikedunn
    Member
    Posted 3 months ago #

    Thanks. I'm just allowing full S3 access to the user's group:

    {
      "Statement": [
        {
          "Effect": "Allow",
          "Action": "s3:*",
          "Resource": "*"
        }
      ]
    }
  5. polevaultweb
    Member
    Posted 3 months ago #

    Just managed to delete ok with the same group policy. What version of the Amazon Web Services plugin are you using?

  6. mikedunn
    Member
    Posted 3 months ago #

    Looks like 0.2.

    Thanks,
    Mike

  7. polevaultweb
    Member
    Posted 3 months ago #

    Hi Mike

    Is the WP site running on AWS at all? Have you got an IAM user with a group applied? Can you try adding just a policy to the user?

  8. mikedunn
    Member
    Posted 3 months ago #

    It is. It's running on EC2 (Amazon Linux). I removed the user from the group and applied the S3 full administrator policy, but still the same result. Here is the entry in the Apache error_log:

    PHP Fatal error: Class 'XMLWriter' not found in /var/www/mikedunn.me/wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Service/Command/LocationVisitor/Request/XmlVisitor.php on line 198

  9. nashlesigon
    Member
    Posted 2 months ago #

    Installing php-xml fixed it for me.

  10. mikedunn
    Member
    Posted 2 months ago #

    php-xml fixed it.

    Thanks.

Reply

You must log in to post.

About this Plugin

  • Amazon S3 and Cloudfront
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.