• Resolved Gregg Franklin

    (@greggfranklin)


    Getting the following errors when activating the plugin:

    Warning: fopen(/Users/scarroll/Documents/Websites/beta.serverpress.com/wp-content/plugins/AffiliateWP/affiliate-wp.php): failed to open stream: No such file or directory in /Users/scarroll/Documents/Websites/beta.serverpress.com/wp-includes/functions.php on line 3879

    Warning: fread() expects parameter 1 to be resource, boolean given in /Users/scarroll/Documents/Websites/beta.serverpress.com/wp-includes/functions.php on line 3882

    Warning: fclose() expects parameter 1 to be resource, boolean given in /Users/scarroll/Documents/Websites/beta.serverpress.com/wp-includes/functions.php on line 3885

    https://wordpress.org/plugins/affiliatewp-mailchimp-add-on/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tunbosun Ayinla

    (@tubiz)

    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.

    Thread Starter Gregg Franklin

    (@greggfranklin)

    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

    Thread Starter Gregg Franklin

    (@greggfranklin)

    Ok I found one issue. In two places the path is wrong

    line 49: /affiliate-wp/affiliate-wp.php

    Thread Starter Gregg Franklin

    (@greggfranklin)

    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”

    Plugin Author Tunbosun Ayinla

    (@tubiz)

    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.

    Thread Starter Gregg Franklin

    (@greggfranklin)

    Yes I removed the “/” and now it seems all is good.

    Plugin Author Tunbosun Ayinla

    (@tubiz)

    I just released version 1.0.2, kindly update to this version and check if the issues have been resolved.

    Plugin Author Tunbosun Ayinla

    (@tubiz)

    I am marking this issue as resolved as an update that fixes it was released.
    If you still experiencing the issue kindly reopen it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘fopen, fread, fclose erros’ is closed to new replies.