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

Autoloading errors after clean install using composer #68

Open
m-rsmn opened this issue Mar 1, 2018 · 1 comment
Open

Autoloading errors after clean install using composer #68

m-rsmn opened this issue Mar 1, 2018 · 1 comment

Comments

@m-rsmn
Copy link

m-rsmn commented Mar 1, 2018

I did an install trough composer (composer require campaignmonitor/createsend-php) but some classes fail to be autoloaded correctly and were throwing open_basedir restriction errors.

Examples of classes that were not correctly autoloaded are

  • Services_JSON
  • Services_JSON_Error
  • CS_REST_BaseSerialiser
  • ...

I managed to fix this issue by manually adding the following entry to my composer.json but I feel this should at least be mentioned in the read-me, and ideally fixed so it is no longer needed.

I'm mainly leaving this here to help people having the same issues.

"autoload": {
    "classmap": ["vendor/campaignmonitor/createsend-php"]
}
@tobyberesford
Copy link

Agree - I hit the same road block! This was very useful, thanks for posting.

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

2 participants