Autoloading errors after clean install using composer
Opened this issue · 1 comments
m-rsmn commented
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 commented
Agree - I hit the same road block! This was very useful, thanks for posting.