• Resolved ghartwig

    (@ghartwig)


    I’m using Seamless Donations 4.0.17. Version 3 worked fine. I recently updated WordPress and all plugins and now I get a server error (500) when the plug-in is invoked. This happens when called from a page template or on the page itself (new keyword used). No errors in the browser console.

    I tried deactivating and deleting the plug-in, refreshing the plug-in page, then installing it again. Same results.

    Log excerpt from a few page loads calling the plug-in:

    2016-05-21 02:48:10 —————————————-
    2016-05-21 02:48:10 PREPARING DONATION FORM
    2016-05-21 02:48:10 Seamless Donations Version: 4.0.17
    2016-05-21 02:53:13 —————————————-
    2016-05-21 02:53:13 PREPARING DONATION FORM
    2016-05-21 02:53:13 Seamless Donations Version: 4.0.17
    2016-05-21 03:13:17 dgx-donate-paypalstd-ipn.php called outside of constructor.
    2016-05-21 03:13:17 Null IPN (Empty session id). Nothing to do.
    2016-05-21 03:13:30 dgx-donate-paypalstd-ipn.php called outside of constructor.
    2016-05-21 03:13:30 Null IPN (Empty session id). Nothing to do.
    2016-05-21 03:14:46 —————————————-
    2016-05-21 03:14:46 PREPARING DONATION FORM
    2016-05-21 03:14:46 Seamless Donations Version: 4.0.17
    2016-05-21 03:19:36 —————————————-

    It seems that your plugin in crashing somewhere but I don’t know where to start looking. My server fails the requirements for PayPal and I’ll deal with that later, but I just want to get the form working again now. The code shouldn’t be getting far enough to try to use those yet anyway.

    Level check errors:

    OpenSSL version too low:
    PayPal requires TLSv1.2, which requires OpenSSL 1.0.1 or greater. Your server appears to be running an older version ( OpenSSL/0.9.8b). …
    cURL version too low:
    PayPal requires TLSv1.2, which requires cURL 7.34.0 or greater. Your server appears to be running an older version (7.15.5).

    https:// IPN URL does not respond:

    https://wordpress.org/plugins/seamless-donations/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ghartwig

    (@ghartwig)

    I upgraded the server and PHP level and don’t get level check errors but the problem persists.

    Plugin Author David Gewirtz

    (@dgewirtz)

    Server errors aren’t common in Seamless Donations so it’s almost entirely probably you’re dealing with a purely server configuration issue. One (wild) guess is it might be you’re getting too little memory for PHP, which is causing it to crap out.

    Seamless Donations doesn’t require much. Even my $5/mo Digital Ocean test account runs Seamless Donations smoothly.

    –David

    Thread Starter ghartwig

    (@ghartwig)

    I found the problem with the code.
    In seamless_donations_get_browser_name() in inc/utilities.php you’re assuming the location of the WordPress directory in order to include dashboard.php as being at the root. Mine is in a subdirectory, so the call to wp_check_browser_version() fails as undefined.

    This is invoked by
    dgx_donate_debug_log( "Seamless Donations Version: " . dgx_donate_get_version() );
    in seamless-donations-form.php

    So this line in inc/utilities.php is the problem:
    $path .= '/wp-admin/includes/dashboard.php';

    I tried replacing it with get_home_path() but that’s undefined at this point, so I’m not sure how best to fix it, but I changed it to return an empty string right now and all works fine.

    Plugin Author David Gewirtz

    (@dgewirtz)

    That’ll do it. Not sure if I’d consider it a bug, but I’ll write it up as one and take a look to see if there’s a better way.

    –David

    P.S. Marking as resolved because marked as bug for investigation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Server error 500 received on page after updating to v4’ is closed to new replies.