So sorry about the errors that you are getting when activating the plugin
I need to ask some questions towards troubleshooting this.
Do you have AffiliateWP installed?
If you do can you paste the full path to your AffiliateWP directory?
Are you doing this on your local environment?
If you are what software are you using?
Eagerly expecting your response.
Hi Tunbosun,
>Do you have AffiliateWP installed?
Yes
>If you do can you paste the full path to your AffiliateWP directory?
/Users/scarroll/Documents/Websites/beta.serverpress.com/wp-content/plugins/affiliate-wp
>Are you doing this on your local environment?
No
>If you are what software are you using?
N/A
Added the MailChimp API Key and received the following errors which then required me to uninstall it completely to get the site back.
Warning: require_once(/classes/api/MailChimp.php): failed to open stream: No such file or directory in /Users/scarroll/Documents/Websites/beta.serverpress.com/wp-content/plugins/affiliatewp-mailchimp-add-on/affiliatewp-mailchimp-addon.php on line 320
Fatal error: require_once(): Failed opening required ‘/classes/api/MailChimp.php’ (include_path=’.:/Applications/XAMPP/xamppfiles/lib/php’) in /Users/scarroll/Documents/Websites/beta.serverpress.com/wp-content/plugins/affiliatewp-mailchimp-add-on/affiliatewp-mailchimp-addon.php on line 320
Ok I found one issue. In two places the path is wrong
line 49: /affiliate-wp/affiliate-wp.php
The other error is: Warning: require_once(/classes/api/MailChimp.php): failed to open stream: No such file or directory in /Volumes/Data/Users/GreggFranklin/Documents/Websites/affiliatewp.dev/wp-content/plugins/affiliatewp-mailchimp-add-on/affiliatewp-mailchimp-addon.php on line 320
Fatal error: require_once(): Failed opening required ‘/classes/api/MailChimp.php’ (include_path=’.:/Applications/XAMPP/xamppfiles/lib/php’) in /Volumes/Data/Users/GreggFranklin/Documents/Websites/affiliatewp.dev/wp-content/plugins/affiliatewp-mailchimp-add-on/affiliatewp-mailchimp-addon.php on line 320
On line 322 there is $mailchimp = new \Drewm\MailChimp( $mailchimp_api_key ); what is “Drewm”
That was a mistake on my part Gregg.
Will release an update right away that fixes all this issues, really sorry about this.
Instead of require_once(/classes/api/MailChimp.php); it is meant to be require_once(classes/api/MailChimp.php);
Drewm that you are seeing is a PHP namespace, that isn’t the issue.
Yes I removed the “/” and now it seems all is good.
I just released version 1.0.2, kindly update to this version and check if the issues have been resolved.
I am marking this issue as resolved as an update that fixes it was released.
If you still experiencing the issue kindly reopen it.