AWS S3

PHP 7.2.3 - AWS S3

PHP 7.2.3

by 2600 » Thu Mar 29, 2018 7:04 am

I have this extension working in 3.2.2, but when I upgraded to PHP 7.2.3 I get these errors.

Code: Select all

[phpBB Debug] PHP Warning: in file [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
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 542: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 543: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 542: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 543: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4517: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4517: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4517: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)

The other errors are to another extension I'll ask about there. Any idea on what's going on?
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by austin881 » Thu Mar 29, 2018 12:33 pm

The `aws/aws-sdk-php` composer dependency probably needs updated.

Run

Code: Select all

composer require aws/aws-sdk-php 
at the command line and see if that helps. The composer.json file shows the AWS SDK at version ^3.19 and probably needs to be at least ^3.52 to support PHP 7.
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: PHP 7.2.3

by 2600 » Fri Mar 30, 2018 2:24 am

I'm only on a shared account so I can't do that. How can I do that in Windows 7 with this extension? I need step by step instructions here since I'm a noob at all this.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by 2600 » Fri Mar 30, 2018 8:18 am

Okay, looked back at the original thread and installed PHP and Composer again. I ran the command and got this:




Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd C:\Users\Aaron\Desktop\AustinMaddox\s3

C:\Users\Aaron\Desktop\AustinMaddox\s3>composer require aws/aws-sdk-php
Using version ^3.52 for aws/aws-sdk-php
./composer.json has been updated
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
- Conclusion: don't install aws/aws-sdk-php 3.52.36
- Conclusion: don't install aws/aws-sdk-php 3.52.35
- Conclusion: don't install aws/aws-sdk-php 3.52.34
- Conclusion: don't install aws/aws-sdk-php 3.52.33
- Conclusion: don't install aws/aws-sdk-php 3.52.32
- Conclusion: don't install aws/aws-sdk-php 3.52.31
- Conclusion: don't install aws/aws-sdk-php 3.52.30
- Conclusion: don't install aws/aws-sdk-php 3.52.29
- Conclusion: don't install aws/aws-sdk-php 3.52.28
- Conclusion: don't install aws/aws-sdk-php 3.52.27
- Conclusion: don't install aws/aws-sdk-php 3.52.26
- Conclusion: don't install aws/aws-sdk-php 3.52.25
- Conclusion: don't install aws/aws-sdk-php 3.52.24
- Conclusion: don't install aws/aws-sdk-php 3.52.23
- Conclusion: don't install aws/aws-sdk-php 3.52.22
- Conclusion: don't install aws/aws-sdk-php 3.52.21
- Conclusion: don't install aws/aws-sdk-php 3.52.20
- Conclusion: don't install aws/aws-sdk-php 3.52.19
- Conclusion: don't install aws/aws-sdk-php 3.52.18
- Conclusion: don't install aws/aws-sdk-php 3.52.17
- Conclusion: don't install aws/aws-sdk-php 3.52.16
- Conclusion: don't install aws/aws-sdk-php 3.52.15
- Conclusion: don't install aws/aws-sdk-php 3.52.14
- Conclusion: don't install aws/aws-sdk-php 3.52.13
- Conclusion: don't install aws/aws-sdk-php 3.52.12
- Conclusion: don't install aws/aws-sdk-php 3.52.11
- Conclusion: don't install aws/aws-sdk-php 3.52.10
- Conclusion: don't install aws/aws-sdk-php 3.52.9
- Conclusion: don't install aws/aws-sdk-php 3.52.8
- Conclusion: don't install aws/aws-sdk-php 3.52.7
- Conclusion: don't install aws/aws-sdk-php 3.52.6
- Conclusion: don't install aws/aws-sdk-php 3.52.5
- Conclusion: don't install aws/aws-sdk-php 3.52.4
- Conclusion: don't install aws/aws-sdk-php 3.52.3
- Conclusion: don't install aws/aws-sdk-php 3.52.2
- Conclusion: don't install aws/aws-sdk-php 3.52.1
- Conclusion: remove guzzlehttp/psr7 1.3.1
- Installation request for aws/aws-sdk-php ^3.52 -> satisfiable by aws/aws-s
dk-php[3.52.0, 3.52.1, 3.52.10, 3.52.11, 3.52.12, 3.52.13, 3.52.14, 3.52.15, 3.5
2.16, 3.52.17, 3.52.18, 3.52.19, 3.52.2, 3.52.20, 3.52.21, 3.52.22, 3.52.23, 3.5
2.24, 3.52.25, 3.52.26, 3.52.27, 3.52.28, 3.52.29, 3.52.3, 3.52.30, 3.52.31, 3.5
2.32, 3.52.33, 3.52.34, 3.52.35, 3.52.36, 3.52.4, 3.52.5, 3.52.6, 3.52.7, 3.52.8
, 3.52.9].
- Conclusion: don't install guzzlehttp/psr7 1.3.1
- aws/aws-sdk-php 3.52.0 requires guzzlehttp/psr7 ^1.4.1 -> satisfiable by g
uzzlehttp/psr7[1.4.1, 1.4.2].
- Can only install one of: guzzlehttp/psr7[1.4.1, 1.3.1].
- Can only install one of: guzzlehttp/psr7[1.4.2, 1.3.1].
- Installation request for guzzlehttp/psr7 (locked at 1.3.1) -> satisfiable
by guzzlehttp/psr7[1.3.1].


Installation failed, reverting ./composer.json to its original content.

C:\Users\Aaron\Desktop\AustinMaddox\s3>
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by 2600 » Tue Apr 03, 2018 4:27 pm

Have any idea why I get those errors? I can't use PHP 7.2* unless this is fixed.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by austin881 » Tue Apr 03, 2018 5:07 pm

Yep, I do know why you're getting those errors; you're trying to do something this extension wasn't designed to do. This extension was designed for a specific versions of PHP and specific versions of phpBB, and specific versions of the AWS PHP SDK, and specific versions of Guzzle.

Until I have the time to sit down and update the extension and all it's dependencies, you're forging the path ahead and I'll help as much as I can.

Maybe try composer require guzzlehttp/guzzle ?
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: PHP 7.2.3

by 2600 » Wed Apr 11, 2018 12:23 pm

Ah, still got an error.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd C:\Users\Aaron\Desktop\New folder\AustinMaddox\s3

C:\Users\Aaron\Desktop\New folder\AustinMaddox\s3>composer require guzzlehttp/gu
zzle
Using version ^6.3 for guzzlehttp/guzzle
./composer.json has been updated
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
- Conclusion: don't install guzzlehttp/guzzle 6.3.2
- Conclusion: don't install guzzlehttp/guzzle 6.3.1
- Conclusion: don't install guzzlehttp/guzzle 6.3.0|remove guzzlehttp/psr7 1
.3.1
- Conclusion: don't install guzzlehttp/guzzle 6.3.0|don't install guzzlehttp
/psr7 1.3.1
- Installation request for guzzlehttp/guzzle ^6.3 -> satisfiable by guzzleht
tp/guzzle[6.3.0, 6.3.1, 6.3.2].
- guzzlehttp/guzzle 6.3.0 requires guzzlehttp/psr7 ^1.4 -> satisfiable by gu
zzlehttp/psr7[1.4.0, 1.4.1, 1.4.2].
- Can only install one of: guzzlehttp/psr7[1.4.0, 1.3.1].
- Can only install one of: guzzlehttp/psr7[1.4.1, 1.3.1].
- Can only install one of: guzzlehttp/psr7[1.4.2, 1.3.1].
- Installation request for guzzlehttp/psr7 (locked at 1.3.1) -> satisfiable
by guzzlehttp/psr7[1.3.1].


Installation failed, reverting ./composer.json to its original content.

C:\Users\Aaron\Desktop\New folder\AustinMaddox\s3>
I'll await an update for this extension. In the mean time I'm stuck with PHP 7.1
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by 2600 » Thu Jun 21, 2018 7:00 am

When will you update this extension? I use a security script that may use PHP 7.2 shortly in the future and then I'm either stuck getting rid of this extension which I do not want to do or getting rid of my security script which I NEVER want to do.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by austin881 » Tue Jun 26, 2018 9:58 pm

Does anyone even use this extension besides John connor? I thought there would be overwhelming feedback and demand for this. I feel like, based on the responses, nobody even uses it.
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: PHP 7.2.3

by 2600 » Wed Jun 27, 2018 9:23 am

Well, there is about 5 messages here so a few people use it. I reckon it's due to the complexity of it all. Between having to use composer and creating an Amazon S3 account.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by austin881 » Tue Sep 25, 2018 7:42 pm

I've added a FAQ to address questions surrounding phpBB 3.2 compatibility here: https://www.phpbb.com/customise/db/exte ... 3/faq/2701

When I release the next version, it will be compatible with PHP 7.2.
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: PHP 7.2.3

by 2600 » Tue Sep 25, 2018 8:45 pm

And I eagerly await the version that can be used in PHP 7.2. Because I have a security script that as of right now runs in PHP 7.1, but withen about a year or so it will be solely made for PHP 7.2 and then I would either have to chose dropping this extension or dropping my security script. And weighing both options, I'd rather drop this extension over the security script. But I'd really not want to do that at all. This extension has been great on one of my boards that's largely for picture sharing and it's taken the load of my host and sped up page load times. And because I have the mixed content option on in CloudFlare, all of my AWS images come up via SSL. Pretty cool. I hope it stays that way. Otherwise I have to mess with some proxy extension to keep out mixed content warnings and I just don't want to have to mess with something like that.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by funtent » Tue Dec 18, 2018 2:44 am

austin881 wrote:Does anyone even use this extension besides John connor? I thought there would be overwhelming feedback and demand for this. I feel like, based on the responses, nobody even uses it.
I'd install it today if it was 7.2 compatible.
funtent
Registered User
Posts: 289
Joined: Fri Aug 27, 2004 4:30 pm
Location: Denver

Re: PHP 7.2.3

by 2600 » Tue Dec 18, 2018 3:10 am

I'm ready to pay someone right now to get this PHP 7.2 compatible. I'm tired of waiting and a security script I run is about to be upgraded to only support PHP 7.2 so I need this extension compatible.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: PHP 7.2.3

by Tomba » Tue Apr 09, 2019 6:10 pm

Has anybody managed to remedy this problem?

I see there is no new version of this plugin, so I guess not officially.
I strongly suggest to update the PHP version requirements then on https://www.phpbb.com/customise/db/extension/aws_s3/ so that users are informed.
User avatar
Tomba
Registered User
Posts: 143
Joined: Tue Jun 18, 2002 7:52 am
Location: Belgium
Name: Steven De Groote