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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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