Feb 14, 2018
0
Level 11
Heroku and AWS S3 Image Upload Issue
So, on my local server I can upload images to AWS S3 with no issues. However, when I upload or delete images(sitewide) on my dev and production sites I get the following error:
S3Exception in WrappedHttpHandler.php line 192: Error executing "ListObjects" on "https://s3-us-west-2.amazonaws.com/mdreptrack?prefix=img%2Fsurgeon%2Fuser_2%2Fsurgeon_139202%2F1518620513_brain_vector.png%2F&max-keys=1&encoding-type=url"; AWS HTTP error: count(): Parameter must be an array or an object that implements Countable
It seems to me that something is happening with PHP version 7.
I also found this, as I'm hosting on Heroku: https://devcenter.heroku.com/changelog-items/777
I tried to update my composer.json accordingly, but because I'm running PHP v7.1.13 locally I can't run $ composer update. I get the following error:
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- This package requires php ^5.5.9 but your PHP version (7.1.13) does not satisfy that requirement.
Not sure how to resolve this or if this is even the issue.
I also updated to HTTPS as of today.
Thanks in advance!
Please or to participate in this conversation.