0

I'm using this statement: require './vendor/autoload.php'; in my _aws-config.php file,

after importing that _aws-config, I'm able to add the objects in s3 buckets easily, so no error till now,

but sometimes it gives the following error, when the same _aws-config file is called in some other places : enter image description here

So why this weird behavior happens? it works at someplace and in some part it don't :(

I had tried several things like

  • deleting vendor and composer files and reinstalling them
  • running this command: composer dump-autoload
  • also tried to run this: composer update --no-scripts

but nothing works :/

  • Relative paths are best avoided, as the thing they're relative *to* is confusing, and can vary at runtime. Use `__DIR__` to build a path based on the file you're typing into instead. – IMSoP Mar 18 '22 at 21:24

0 Answers0