Comments (8)
@Shardj Can you check this issue ?
Can any one help for this issue ?
from zf1-future.
Hi,
can you post full code which you using there? Also the whole stack trace would help.
from zf1-future.
As I always say with these kinds of things, you really need to push through and convert to using AWS's SDK https://aws.amazon.com/sdk-for-php/ . From the sounds of it you're only just starting to implement this. If you really don't want to then I'd recommend you have a look at the authentication method AWS mentioned in your error message and compare it to the one Zend is using and see what's different. If you want to try and implement a new authentication method feel free as long as it doesn't cause any backwards compatibility breaks for anyone else.
from zf1-future.
We came across this long before moving to this fork when moving our production environment over from eu-west-1 to eu-west-2.
As Shardj has mentioned, you'd be better off replacing your usage of Zend_Service_Amazon_S3
with the AWS provided SDK. For us, that was as simple as pulling in that library with composer and replacing our bootstrapping of the stream wrapper e.g.
Replacing:
$s3 = new Zend_Service_Amazon_S3($key, $secret);
$s3->registerStreamWrapper("s3");
With:
$s3Client = new Aws\S3\S3Client([
'region' => 'eu-west-2',
'version' => 'latest',
'credentials' => [
'key' => $key,
'secret' => $secret
]
]);
$s3Client->registerStreamWrapper();
from zf1-future.
Thanks for the advice Dave, I hope that this helps you @vijaygarg-ahead. I'll close this as I won't be taking any action here
from zf1-future.
Thanks for the advice Dave, I hope that this helps you @vijaygarg-ahead. I'll close this as I won't be taking any action here
I will check the above solutions and update here.
from zf1-future.
We came across this long before moving to this fork when moving our production environment over from eu-west-1 to eu-west-2.
As Shardj has mentioned, you'd be better off replacing your usage of
Zend_Service_Amazon_S3
with the AWS provided SDK. For us, that was as simple as pulling in that library with composer and replacing our bootstrapping of the stream wrapper e.g.Replacing:
$s3 = new Zend_Service_Amazon_S3($key, $secret); $s3->registerStreamWrapper("s3");
With:
$s3Client = new Aws\S3\S3Client([ 'region' => 'eu-west-2', 'version' => 'latest', 'credentials' => [ 'key' => $key, 'secret' => $secret ] ]); $s3Client->registerStreamWrapper();
This solution is not working for me.
@Shardj Please can you check the above file I have mentioned and let me know the solution.
from zf1-future.
Hey @vijaygarg-ahead if you're having issues using the AWS SDK you should be able to find advice pretty much everywhere on the web since it's a very popular library. It's hard to provide a solution when I know nothing about the issue you're facing though.
from zf1-future.
Related Issues (20)
- Setting the Request's `_dispatched` flag to `false` in a `preDispatch` hook leads to an infinite loop HOT 1
- Bootstrap error: Unable to resolve plugin "useragent"; no corresponding plugin with that name
- Undefined array key 1 in library/Zend/Db/Adapter/Abstract.php on line 817 HOT 1
- Fatal error: Uncaught Error: Class "Zend\Config\Factory" not found in /vendor/zendframework/zend-modulemanager/src/Listener/ConfigListener.php on line 376
- Documentation Error/Notices if locale is de_DE HOT 1
- Test/PHPUnit/ is not compatible with PHP8 method signatures...
- Zend_View_Helper_HeadLink notice using compact()
- Error on Zend_Auth_Adapter_DbTable with AmbiguityIdentity = true
- Member function process() on null HOT 3
- PHP8.3 unserialize(), double values in Zend_Cache meta files HOT 1
- Order of distinct and top is wrong HOT 1
- Zend_Validate::$zfBreakChainOnFailure is deprecated in /var/www/html/vendor/shardj/zf1-future/library/Zend/Form/Element.php on line 1229
- Implementation of Zend_Cache_Backend_TwoLevels::_getFastLifetime is incorrect.
- Select is always multiple HOT 2
- PHP version_compare Argument #3 ($operator) must be a valid comparison
- Zend_View: accessing view variables with value `null` throws error when `strictVars` is active
- add TLSv1_3
- deprecated passing null to strripos and rtrim with php 8.3 HOT 3
- Zend Session error when session.sid_bits_per_character change
- [question] Can I use npm or yarn for import javascript and css modules? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zf1-future.