AWS S3

PHP 7.2.3 - AWS S3

PHP 7.2.3

by John connor » 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?
User avatar
John connor
Registered User
Posts: 1597
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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: 275
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: PHP 7.2.3

by John connor » 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.
User avatar
John connor
Registered User
Posts: 1597
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: PHP 7.2.3

by John connor » 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>
User avatar
John connor
Registered User
Posts: 1597
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: PHP 7.2.3

by John connor » 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.
User avatar
John connor
Registered User
Posts: 1597
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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: 275
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: PHP 7.2.3

by John connor » 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
User avatar
John connor
Registered User
Posts: 1597
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: PHP 7.2.3

by John connor » 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.
User avatar
John connor
Registered User
Posts: 1597
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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: 275
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: PHP 7.2.3

by John connor » 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.
User avatar
John connor
Registered User
Posts: 1597
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact: