500 Error on membership 2 Free Registration

hello I am having an issue with a 500 error when someone tries to register on Membership 2 plugin.

this is the link that gives me the error - https://figtreelive.com/register/?step=process_purchase&membership_id=9994&ms_relationship_id=18190&gateway=free&_wpnonce=f63403474b

it says this
figtreelive.com is currently unable to handle this request.
HTTP ERROR 500

Any ideas on what might be causing this? I can toggle on support if you need to login

thanks for your help!
Cody

  • Katya Tsihotska

    Hi Cody

    Hope you're having a wonderful day!

    In order to diagnose your issue, I'd request you to perform the two tests mentioned in the following:

    1. Just to make sure no other plugin is causing this, can you please do a plugin conflict test?
    The simplest way to perform a plugin conflict test:

    * Login to your site via FTP
    * Navigate to wp-content
    * Rename the plugins folder to _plugins
    * Creant new empty plugins folder
    * Move the plugin folder (ex: membership) you want to test from _plugins to plugins
    * Check if issue still persists, if no, proceed to the next step
    * Then, one at a time, move other plugin folders over from _plugins to plugins until the symptom returns

    NOTE: While you are doing this, do not visit WP Admin > Plugins on your site. This will ensure that your plugins remain active when you copy them back over.

    Let us know about results.

    2. Enable wp debug. To enable WP_DEBUG, change the following line in your wp-config.php file:
    define('WP_DEBUG', false);
    To this:

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );
    // Disable display of errors and warnings
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    Please make sure to add the above code just before the line /* That's all, stop editing! Happy blogging. */

    After this, try to replicate issue again. Then go to /wp-content folder and check if debug.log file is there. If it's there. download it, save as debug.txt and attach to your next reply.

    Also, could you please grant us temporary support access to your website so we can have a better look at your setup and settings? You can grant us access via WPMUDEV Dashboard plugin, there's no need to share credentials. Here's our detailed documentation page about it:
    https://premium.wpmudev.org/docs/getting-started/getting-support/#chapter-5

    Kind regards,
    Katya

  • Cody

    Ok I did as you asked and removing the plugins didn't work. we still got the error. I am attaching the debug log: I think the issue is with the membership 2 plugin. thanks for your help!

    <html><head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="plesk-build" content="1205150826.19">
    <title>Plesk 12.5.30</title>
    <script language="javascript" type="text/javascript" src="/javascript/common.js?1440594985"/></script>
    <script language="javascript" type="text/javascript" src="/javascript/prototype.js?1440594985"/></script>

    </head><body onLoad=";top.location='/login.php3?success_redirect_url=https%3A%2F%2F67.225.136.88%3A8443%2Fsmb%2Ffile-manager%2Fdownload%3FcurrentDir%3D%252Fhttpdocs%252Fwp-content%26file%3Ddebug.log';"></body><noscript>You will be redirected to the new address in 15 seconds... If you are not automatically taken to the new location, please enable javascript or click the hyperlink /login.php3?success_redirect_url=https%3A%2F%2F67.225.136.88%3A8443%2Fsmb%2Ffile-manager%2Fdownload%3FcurrentDir%3D%252Fhttpdocs%252Fwp-content%26file%3Ddebug.log.</noscript></html><!--______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________IE error page size limitation______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________-->

  • Katya Tsihotska

    Hi Cody

    Hope you're fine today!

    Thank you for attaching the log. In your debug.log if found the following error:
    [06-Dec-2017 23:54:03 America/North_Dakota/Center] PHP Fatal error: Cannot use object of type WP_Error as array in /wp-content/plugins/membership/lib/mailchimp-api/Mailchimp.php on line 61

    It's the known issue and it will be fixed in next release. We also already have a beta version of the next plugin update, so you can use it if you'd like. You will need to replace the current version of the plugin with the version from the attached archive.

    Please, keep in mind, that it's always better to create a backup of the site before doing any changes.

    Let us know if it doesn't help or if you need further assistance with this.

    KInd regards,
    Katya