Hello,
we have more than 2000 image on our site, does it support to bulk upload all of images in media libraries?
thanks
]]>Hi,
Will you be adding any way to set config options using PHP constants or a function for values like the bucket name, path, access key and, secret? Currently they are stored in the database unencrypted. Also it’d be nice to disable setting the ‘ACL’ prop when uploading. My bucket is not publicly accessible and so don’t use/need it (CloudFront serves up the files) and I prefer to give the user’s policy as few permissions as possible.
Hi,
I just tried your plugin, but when I try to activate after entering the S3 credentials, I see this message on screen “Please check your credentials” and this message in the php error log:
PHP Fatal error: Uncaught Error: Call to undefined function GuzzleHttp\_idn_uri_convert() in /var/www/test/public/content/plugins/advanced-media-manager/vendor/guzzlehttp/guzzle/src/Client.php:220
Stack trace:
#0 /var/www/test/public/content/plugins/advanced-media-manager/vendor/guzzlehttp/guzzle/src/Client.php(113): GuzzleHttp\Client->buildUri(Object(GuzzleHttp\Psr7\Uri), Array)
#1 /var/www/test/public/content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php(43): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
#2 /var/www/test/public/content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php(87): Aws\Handler\GuzzleV6\GuzzleHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#3 /var/www/test/public/content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/AbstractMonitoringMiddleware.php(126): Aws\WrappedHttpHandler->__invoke(Object(Aws\Command), Object(Guzzl in /var/www/test/public/content/plugins/advanced-media-manager/vendor/guzzlehttp/guzzle/src/Client.php on line 220
I’m also using composer and also use guzzlehttp/guzzle. Your version was older (6.5.2) than mine (6.5.5), if I downgrade, then it works. I was just looking on packagist and both versions have security advisories and should be upgraded to 6.5.8.
There are many other plugins out there that also use composer, so you may want to namespace your vendor packages using something like php-scoper or imposter-plugin (which was created specifically to avoid this issue).
]]>After image upload, I’m getting following error after a second or two:
Uncaught Error: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given
in /app/wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/RejectedPromise.php on line 16
I’ve tested other plugins, it works with my credentials
Edit: I’m connecting to DO
Exact call stack
]]>`Call stack:
method_exists()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/RejectedPromise.php:16
GuzzleHttp\P\RejectedPromise::__construct()
wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php:56
Aws\H\G\GuzzleHandler::Aws\H\G\{closure}()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:203
GuzzleHttp\P\Promise::callHandler()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:156
GuzzleHttp\P\Promise::GuzzleHttp\P\{closure}()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/TaskQueue.php:47
GuzzleHttp\P\TaskQueue::run()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php:118
GuzzleHttp\H\CurlMultiHandler::tick()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php:145
GuzzleHttp\H\CurlMultiHandler::execute()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:246
GuzzleHttp\P\Promise::invokeWaitFn()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:223
GuzzleHttp\P\Promise::waitIfPending()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:267
GuzzleHttp\P\Promise::invokeWaitList()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:225
GuzzleHttp\P\Promise::waitIfPending()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:267
GuzzleHttp\P\Promise::invokeWaitList()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:225
GuzzleHttp\P\Promise::waitIfPending()
wp-content/plugins/advanced-media-manager/vendor/guzzlehttp/promises/src/Promise.php:62
GuzzleHttp\P\Promise::wait()
wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/AwsClientTrait.php:58
Aws\AwsClient::execute()
wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/AwsClientTrait.php:86
Aws\AwsClient::__call()
wp-content/plugins/advanced-media-manager/media-manager-install.php:389
Smackcoders\A\SmackAWSInstall::upload_to_digitalocean()
wp-content/plugins/advanced-media-manager/media-manager-install.php:327
Smackcoders\A\SmackAWSInstall::cloud_media_upload_attachment()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:331
WP_Hook::do_action()
wp-includes/plugin.php:474
do_action()
wp-includes/post.php:4610
wp_insert_post()
wp-includes/post.php:6315
wp_insert_attachment()
wp-admin/includes/media.php:410
media_handle_upload()
wp-admin/async-upload.php:114`