S3 importer stuck with fatal error
-
Third time, awesome plugin. ?? Seriously, I haven’t got it to work yet, but I can tell from your video and by going through your code, that it is. But there is, as I said in another ticket, some rough edges. Here is another one:
I created AWS credentials for the plugin and entered it in the settings page, went to the S3 import page and started to transfer more than 700 images. The progress bar moved to the right slowly but steady, and finally it was finished. But no images in my S3 bucket! It took me a couple of minutes to realize that I forgot to assign a S3 policy to the plugins AWS credentials. Bummer.
So this is the first problem. The plugin must check that it has enough permission. Otherwise a less experienced user may check the box delete images on upload, and not be too happy afterwards.
Now, instead of just adding the missing permissions and redo the thing, I choose to delete the credentials and start over. Now the S3 importer got stuck on the very first image. Why I don’t know. But this is another problem. Fortunately, I had the WP debug logging enabled, so here you can see the error message produced:
PHP Fatal error: Uncaught InvalidArgumentException: Found 2 errors while validating the input provided for the PutObject operation:
[Key] is missing and is a required parameter
[Key] expected string length to be >= 1, but found string length of 0 in /srv/www.kntnt.se/web/wp-content/plugins/ilab-media-tools/vendor/aws/aws-sdk-php/src/Api/Validator.php:65
Stack trace:
#0 /srv/www.kntnt.se/web/wp-content/plugins/ilab-media-tools/vendor/aws/aws-sdk-php/src/Middleware.php(79): ILAB_Aws\Api\Validator->validate(‘PutObject’, Object(ILAB_Aws\Api\StructureShape), Array)
#1 /srv/www.kntnt.se/web/wp-content/plugins/ilab-media-tools/vendor/aws/aws-sdk-php/src/S3/S3Client.php(354): ILAB_Aws\Middleware::ILAB_Aws\{closure}(Object(ILAB_Aws\Command), NULL)
#2 /srv/www.kntnt.se/web/wp-content/plugins/ilab-media-tools/vendor/aws/aws-sdk-php/src/S3/S3Client.php(377): ILAB_Aws\S3\S3Client::ILAB_Aws\S3\{closure}(Object(ILAB_Aws\Command), NULL)
#3 /srv/www.kntnt.se/web/wp-content/plugins/ilab-media-tools/vendor/aws/aws-sdk-php/src/S3/S3Client.php(31 in /srv/www.kntnt.se/web/wp-content/plugins/ilab-media-tools/vendor/aws/aws-sdk-php/src/Api/Validator.php on line 65Finally, I completely uninstalled the plugin, and re-installed it again. But the same thing happened. This time I assume it is because there were some WP_Background_Process remains in the option table (see another ticket by me).
- The topic ‘S3 importer stuck with fatal error’ is closed to new replies.