AWS S3

Failed uploads after success - AWS S3

Failed uploads after success

by MarkDHamill » Fri Dec 13, 2019 11:04 pm

For a couple of days the integration of the S3 service was working fine. Then it stopped. No error messages or anything, but when you attach something it apparently doesn't get uploaded to S3.

I tried whitelisting the IP of the service we were using, 52.219.100.100, in case the server's firewall wasn't allowing it to upload anymore. This hasn't made a difference.

Any idea how to solve this? I double checked all the keys and they are still valid and haven't changed.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: Failed uploads after success

by MarkDHamill » Sat Dec 14, 2019 12:12 am

This issue has something to do with a PHP configuration because it works on PHP 5.6 but doesn't on PHP 7.2. I don't see any requirements for using the extension like curl must be available and I've checked the differences in PHP configuration between these versions. I don't see anything obvious that would cause this issue.

Given that there are a number of vendor libraries in the extension, is there a way to know what PHP extensions or packages these require?
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: Failed uploads after success

by austin881 » Mon Dec 23, 2019 4:38 pm

If you're using PHP 7.2 you're probably getting the error that others have reported.

Code: Select all

[ROOT]/ext/AustinMaddox/s3/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 67: count(): Parameter must be an array or an object that implements Countable
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum
User avatar
austin881
Registered User
Posts: 287
Joined: Wed Jan 30, 2008 9:58 pm
Location: Texas, USA
Name: Austin Maddox

Re: Failed uploads after success

by MarkDHamill » Mon Dec 23, 2019 4:44 pm

Indeed. I "fixed" the problem by reverting to PHP 5.6.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: Failed uploads after success

by robbie787 » Mon Feb 03, 2020 1:26 pm

Must admit reverting to php 5.x is a very bad move. The lower php versions have some major vulnerabilities. Is there going to be an update for this plugin for php 7 versions anytime soon? I see on the github that work is being done to accomodate php 7. Just wondered when the release is going to be. I am using phpbb 3.2.7.
User avatar
robbie787
Registered User
Posts: 62
Joined: Fri Sep 13, 2019 12:53 pm

Re: Failed uploads after success

by austin881 » Mon Feb 03, 2020 1:54 pm

New version has been submitted, just waiting for approval from the validation team.
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum
User avatar
austin881
Registered User
Posts: 287
Joined: Wed Jan 30, 2008 9:58 pm
Location: Texas, USA
Name: Austin Maddox