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

Composer autoloader not finding csrest_campaigns.php #80

Open
v3nt opened this issue Sep 5, 2018 · 0 comments
Open

Composer autoloader not finding csrest_campaigns.php #80

v3nt opened this issue Sep 5, 2018 · 0 comments

Comments

@v3nt
Copy link

v3nt commented Sep 5, 2018

I've used composer to install CM API but the theme can't see the API.

in content-signup-cm.php I've added
require_once 'csrest_campaigns.php'

And that returns

Fatal error: require_once(): Failed opening required 'csrest_campaigns.php' (include_path='.:/Applications/MAMP/bin/php/php7.2.7/lib/php') in /wp-content/themes/wonkhe2-theme/templates/content-signup-cm.php on line 5

I can see the API here -
/wp-content/themes/wonkhe2-theme/vendor/campaign-monitor/createsend-php/

Should the require_once path be different? I thought autoloader would set the paths? Using composer is new to me so apologies if I'm misunderstanding.

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

1 participant