Title: AWS error, while delete or upload image
Last modified: June 10, 2019

---

# AWS error, while delete or upload image

 *  Resolved [erdalaltin](https://wordpress.org/support/users/erdalaltin/)
 * (@erdalaltin)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/)
 * Hi;
 * I get this error while delete or upload image.
 * #0 /var/www/html/wp-content/plugins/w3-total-cache/CdnEngine_S3.php(75): Aws\\
   Common\\Client\\AbstractClient->__construct(Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)
   #
   1 /var/www/html/wp-content/plugins/w3-total-cache/CdnEngine_S3.php(281): W3TC\\
   CdnEngine_S3->_init(), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)#
   2 /var/www/html/wp-content/plugins/w3-total-cache/Cdn_Core.php(222): W3TC\\CdnEngine_S3-
   >delete(Array, Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)#
   3 /var/www/html/wp-content/plugins/w3-total-cache/Cdn_Plugin.php(217): W3TC\\
   Cdn_Core->delete(Array, true, Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)#
   4 /var/www/html/wp-includes/class-wp-hook.php(286): W3TC\\Cdn_Plugin->delete_attachment(
   15807), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)#
   5 /var/www/html/wp-includes/class-wp-hook.php(310): WP…, referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11621530)
 * Hello [@erdalaltin](https://wordpress.org/support/users/erdalaltin/),
 * Can you please share the full error message? It’s missing error message itself,
   you copied the stacktrack.
 *  Thread Starter [erdalaltin](https://wordpress.org/support/users/erdalaltin/)
 * (@erdalaltin)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11621898)
 * [Mon Jun 10 08:30:59.353532 2019] [:error] [pid 29675] [client 188.119.34.217:
   53650] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: PHP message: PHP
   Fatal error: Uncaught TypeError: Argument 1 passed to Aws\\Common\\Client\\AbstractClient::
   __construct() must be an instance of Aws\\Common\\Credentials\\CredentialsInterface,
   array given, called in /var/www/html/wp-content/plugins/w3-total-cache/CdnEngine_S3.
   php on line 75 and defined in /var/www/html/wp-content/plugins/amazon-web-services/
   vendor/aws/Aws/Common/Client/AbstractClient.php:73, referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)
   [
   Mon Jun 10 08:30:59.353561 2019] [:error] [pid 29675] [client 188.119.34.217:
   53650] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: Stack trace:, referer:
   [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 08:30:59.353565 2019] [:error] [pid 29675] [client 188.119.34.217:
   53650] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #0 /var/www/html/
   wp-content/plugins/w3-total-cache/CdnEngine_S3.php(75): Aws\\Common\\Client\\
   AbstractClient->__construct(Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 08:30:59.353568 2019] [:error] [pid 29675] [client 188.119.34.217:
   53650] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #1 /var/www/html/
   wp-content/plugins/w3-total-cache/CdnEngine_S3.php(281): W3TC\\CdnEngine_S3->
   _init(), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 08:30:59.353571 2019] [:error] [pid 29675] [client 188.119.34.217:
   53650] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #2 /var/www/html/
   wp-content/plugins/w3-total-cache/Cdn_Core.php(222): W3TC\\CdnEngine_S3->delete(
   Array, Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 08:30:59.353573 2019] [:error] [pid 29675] [client 188.119.34.217:
   53650] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #3 /var/www/html/
   wp-content/plugins/w3-total-cache/Cdn_Plugin.php(217): W3TC\\Cdn_Core->delete(
   Array, true, Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 08:30:59.353609 2019] [:error] [pid 29675] [client 188.119.34.217:
   53650] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #4 /var/www/html/
   wp-includes/class-wp-hook.php(286): W3TC\\Cdn_Plugin->delete_attachment(15804),
   referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 08:30:59.353631 2019] [:error] [pid 29675] [client 188.119.34.217:
   53650] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #5 /var/www/html/
   wp-includes/class-wp-hook.php(310): WP…, referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11622600)
 * Hello,
    It appears that there’s a conflict with some other plugin loading AWS
   SDK v2. If you have added the constant: `define('W3TC_SKIPLIB_AWS', true);` you
   have blocked the loading of w3tc’s AWS library. We tried to limit the number 
   of requests when w3tc loads the AWS library and it happens only when interaction
   with AWS is required. If you do the same, and will not load it always – potentially
   both products will be able to co-exist.
 *  Thread Starter [erdalaltin](https://wordpress.org/support/users/erdalaltin/)
 * (@erdalaltin)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11623250)
 * I added `define('W3TC_SKIPLIB_AWS', true);` to first row in wp-config.php
 * but error:
 * [Mon Jun 10 18:16:53.592194 2019] [:error] [pid 29675] [client 159.146.42.44:
   21715] FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: PHP message: PHP
   Fatal error: Uncaught Error: Class ‘Aws\\Credentials\\Credentials’ not found 
   in /var/www/html/wp-content/plugins/w3-total-cache/CdnEngine_S3.php:68, referer:
   [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)
   [
   Mon Jun 10 18:16:53.592225 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: Stack trace:, referer:
   [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592229 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #0 /var/www/html/wp-content/
   plugins/w3-total-cache/CdnEngine_S3.php(281): W3TC\\CdnEngine_S3->_init(), referer:
   [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592232 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #1 /var/www/html/wp-content/
   plugins/w3-total-cache/Cdn_Core.php(222): W3TC\\CdnEngine_S3->delete(Array, Array),
   referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592235 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #2 /var/www/html/wp-content/
   plugins/w3-total-cache/Cdn_Plugin.php(217): W3TC\\Cdn_Core->delete(Array, true,
   Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592246 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #3 /var/www/html/wp-includes/
   class-wp-hook.php(286): W3TC\\Cdn_Plugin->delete_attachment(15809), referer: 
   [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592249 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #4 /var/www/html/wp-includes/
   class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592252 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #5 /var/www/html/wp-includes/
   plugin.php(465): WP_Hook->do_action(Array), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592255 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #6 /var/www/html/wp-includes/
   post.php(5419): do_action(‘delete_attachme…’, 15809), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592257 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #7 /var/www/html/wp-admin/
   post.php(303): wp_delete_attachment(15809, true), referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592259 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: #8 {main}, referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)[
   Mon Jun 10 18:16:53.592262 2019] [:error] [pid 29675] [client 159.146.42.44:21715]
   FastCGI: server “/usr/lib/cgi-bin/php7.2-fcgi” stderr: thrown in /var/www/html/
   wp-content/plugins/w3-total-cache/CdnEngine_S3.php on line 68, referer: [https://motosikletevi.com/wp-admin/upload.php](https://motosikletevi.com/wp-admin/upload.php)
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11624389)
 * Hello,
    As said in the previous topic. There is a conflict with some other plugin
   loading AWS SDK v2.
 *  Thread Starter [erdalaltin](https://wordpress.org/support/users/erdalaltin/)
 * (@erdalaltin)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11625803)
 * I disabled plugin [https://wordpress.org/plugins/amazon-web-services/](https://wordpress.org/plugins/amazon-web-services/)
   then
 * It is fixed.
 * thanks..
 *  [giuseppect](https://wordpress.org/support/users/giuseppect/)
 * (@giuseppect)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11634061)
 * Hello,
 * the define breaks the Cloudfront purge, I got this error:
    `The cloudfront service
   does not have version: 2018-11-05.`
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11634106)
 * Hello [@giuseppect](https://wordpress.org/support/users/giuseppect/),
 * can you confirm if you have the latest W3 Total Cache 0.9.7.5 version?
 *  [Daniyal](https://wordpress.org/support/users/gravityblue/)
 * (@gravityblue)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11644545)
 * Hello [@vmarko](https://wordpress.org/support/users/vmarko/)
    Im facing the same
   issue with the latest release on W3 Total Cache 0.9.7.5, I downgraded to version
   W3 Total Cache 0.9.7.4 and it works fine. Please look into this.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11644697)
 * Hello [@gravityblue](https://wordpress.org/support/users/gravityblue/),
 * Adding define(‘W3TC_SKIPLIB_AWS’, true); is not a solution but it’s a way to 
   make things work if another project using AWS library is doing the same.
    The
   solution is not to use other plugins that cause conflict.
 *  [Daniyal](https://wordpress.org/support/users/gravityblue/)
 * (@gravityblue)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11644756)
 * The solution isnt working.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘AWS error, while delete or upload image’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [aws](https://wordpress.org/support/topic-tag/aws/)
 * [delete](https://wordpress.org/support/topic-tag/delete/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * 11 replies
 * 4 participants
 * Last reply from: [Daniyal](https://wordpress.org/support/users/gravityblue/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/aws-error-while-delete-or-upload-image/#post-11644756)
 * Status: resolved