aws / aws-sdk-php

Official repository of the AWS SDK for PHP (@awsforphp)
http://aws.amazon.com/sdkforphp
Apache License 2.0
6.04k stars 1.23k forks source link

Missing manifest function #3024

Closed jase-languasco closed 1 week ago

jase-languasco commented 2 weeks ago

Describe the bug

I'm getting the following fatal:

Fatal error: Uncaught Error: Call to undefined function Aws\manifest() in /srv/www/vendor/aws/aws-sdk-php/src/AwsClient.php:241 

I've uninstalled the package with composer and reinstalled it. I've looked at the installed code in the vendor directory and src/functions.php is there with the manifest function.

Not sure whats going on here. Any help would be appreciated.

Regression Issue

Expected Behavior

No fatal

Current Behavior

A fatal is being thrown

Fatal error: Uncaught Error: Call to undefined function Aws\manifest() in /srv/www/vendor/aws/aws-sdk-php/src/AwsClient.php:241 

Reproduction Steps

Setting up SesClient

$this->vendor = new SesClient([
    'version' => 'latest',
    'region'  =>  "us-east-1",
    'credentials' => [
        'key'    => $params['aws_access_key_id'],
        'secret' => $params['aws_secret_access_key'],
    ],
]);

Using: "aws/aws-sdk-php": "^3.325",

Possible Solution

No response

Additional Information/Context

No response

SDK version used

"aws/aws-sdk-php": "^3.325",

Environment details (Version of PHP (php -v)? OS name and version, etc.)

PHP 8.3.9 (cli) (built: Jul 5 2024 12:03:46) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.9, Copyright (c) Zend Technologies with Zend OPcache v8.3.9, Copyright (c), by Zend Technologies

yenfryherrerafeliz commented 2 weeks ago

Hi @jase-languasco, sorry to hear about your issues. I have done a test in my local with the same version you point here and I do not see the same behavior. To determine what the problem is, could you please try the following:

Please let me know if that helps!

Thank you!

jase-languasco commented 1 week ago

Thank you for the help. I finally figured it out myself.

It was actually a conflict between another packages requirements. I don't understand the exact conflict, but by updating the dependencies on on another package I was able to fix it

github-actions[bot] commented 1 week ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.