Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #879137
    katyak
    Participant

    Hi guys,

    I have just bought the Stipe plugin licence extension, delete the WP Checkout Pro and installed the Simple Pay Plugin. Now, when I try to make a payment on my Payment page I get Error 500:

    I am told it may be a conflict with the theme – although it has been working just fine for over a year. What would be a possible solution? Thanks!

    #879372
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thanks.

    #886563
    katyak
    Participant
    #886971
    Thai
    Moderator

    Hey There,

    This usually means there is a fatal PHP error. Can you please enable WP_DEBUG mode? You can do this by opening wp-config.php and adding
    define( ‘WP_DEBUG’ , true ); just above /* That’s all, stop editing! Happy blogging. */ For example:

    define('WP_DEBUG', true);
    
    /* That's all, stop editing! Happy blogging. */

    When you revisit the page with the error, you should have some error output describing the issue in more detail.

    Thanks.

    #893041
    katyak
    Participant

    Ok, done!
    so one the payment page the error shown in the header is

    Notice: Undefined index: 6FoNxbvo73BHOjhxokW3 in /home/translat/public_html/wp-content/themes/x/header.php(8) : eval()’d code on line 9

    And then when I try to make a payment the error is:

    Fatal error: Uncaught exception ‘Stripe\Error\InvalidRequest’ with message ‘Invalid source object: must be a dictionary or a non-empty string. See API docs at https://stripe.com/docs” in /home/translat/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php:102 from API request ‘req_8JCdsZJtfuJwY4’ Stack trace: #0 /home/translat/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php(216): Stripe\ApiRequestor->handleApiError(‘{\n “error”: {\n…’, 400, Array, Array) #1 /home/translat/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php(60): Stripe\ApiRequestor->_interpretResponse(‘{\n “error”: {\n…’, 400, Array) #2 /home/translat/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiResource.php(105): Stripe\ApiRequestor->request(‘post’, ‘/v1/customers’, Array, Array) #3 /home/translat/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiResource.php(137) in /home/translat/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php on line 102

    #893550
    Christian
    Moderator

    Hey there,

    To be sure if X is causing the issue, please switch to the default theme and check again. Let us know if it works in the default WordPress theme. Also, please disable all third party plugins while we’re investigating.

    Thanks.

    #899534
    katyak
    Participant

    Hi Cristian,

    Switched to default theme – everything works.

    #899555
    katyak
    Participant

    Hi again,
    I have updated the theme (x) and reactivated the Stripe plugin and it looks like it is working now. I will double check today and let you know. Thanks for your support!

    #900421
    Thai
    Moderator

    Glad everything is working fine now 🙂

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-879137 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>