Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require_once __DIR__ . 'sendgrid-php/vendor/autoload.php' not seeing the autoload.php file #6771

Closed
indomtrading opened this issue Oct 28, 2017 · 3 comments

Comments

@indomtrading
Copy link

I'm getting extremely angry with Composer. I'm getting sick to death of seeing these messaghttps://imgur.com/a/aiF8w when clearly the fucking directory exists. Its clear there is an issue with composer because when I run the poxy command <require_once __DIR__ . 'sendgrid-php/vendor/autoload.php';> it decides it's doing to be a retarded 5-year-old child.

Anny suggestions as to why this keeps happening?

Thanks
2017-10-28 5 _li

@indomtrading indomtrading changed the title require_once __DIR__ . 'sendgrid-php/vendor/autoload.php' not seeind the autoload.php file require_once __DIR__ . 'sendgrid-php/vendor/autoload.php' not seeing the autoload.php file Oct 28, 2017
@digitalkreativ
Copy link

It seems you are missing a / or \ even in your path where you include the autoload.php .
The __DIR__ value does not contain a trailing slash per PHP docs

Try changing __DIR__ with __DIR__ . DIRECTORY_SEPARATOR

This should takes the \ into consideration.

@alcohol alcohol closed this as completed Nov 8, 2017
@alcohol
Copy link
Member

alcohol commented Nov 8, 2017

@digitalkreativ is correct. You are missing a path separator.

If you read the error that PHP provides you, you can see that it is trying to access a directory named TastefullyObscenesendgrid-php. This directory does not exist.

Also I have to correct you here, the first commit to this repo dates back to Tue Apr 5 17:36:01 2011 +0200, so that actually makes Composer 6 years old, not 5.

@DASPRiD
Copy link

DASPRiD commented Nov 8, 2017

@alcohol I would assume that with software it works the same way as with dog-years, which would make Composer a 6 years old adult, not child. After all, it is a pet-project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants