If you’re integrating with Stripe and running into an error with the words “Uncaught Exception”, see below for how to resolve.


Ask your host to enable ‘multibyte string PHP extension’

This particular error is between Stripe and your hosting configuration. You should follow up with your host to have the “multibyte string PHP extension” installed.

Most hosts should be able to do this quickly on your account. You might need to upgrade your plan if you are on a lower level shared hosting plan.


The Sample Error(s) You May be Seeing

Fatal error: Uncaught exception 'Exception' with message 'Stripe needs the Multibyte String PHP extension.' in /public_html/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe.php:13 Stack trace: #0 /public_html/wp-content/plugins/paid-memberships-pro/classes/gateways/class.pmprogateway_stripe.php(43): require_once() #1 /public_html/wp-content/plugins/paid-memberships-pro/classes/gateways/class.pmprogateway_stripe.php(27): PMProGateway_stripe->loadStripeLibrary() #2 /public_html/wp-content/plugins/paid-memberships-pro/classes/class.memberorder.php(128): PMProGateway_stripe->PMProGateway_stripe('stripe') #3 /public_html/wp-content/plugins/paid-memberships-pro/classes/class.memberorder.php(10): MemberOrder->setGateway('stripe') #4 /public_html/wp-content/plugins/paid-memberships-pro/preheaders/checkout.php(434): MemberOrder->MemberOrder() #5 /public_html/wp-content/plugin in /public_html/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe.php on line 13

Comments (2)

Author’s gravatar

Hi Jason! I am getting a similar PHP error, BUT it’s about the Stripe invoice. The plugin is up to date and I’ve been using it with zero problems for over a year now. I also tested by buying from myself for $1 and everything went smoothly — there was an invoice on the screen, too. So I’m not sure what this error is about or how to fix it.

Here is the error from my log. I’ve been getting it all day.

[Wed Feb 17 06:31:08.439005 2016] [:error] [pid 31132] [client 54.187.205.235:11746] PHP Fatal error: Uncaught exception ‘Stripe_InvalidRequestError’ with message ‘Could not determine which URL to request: Stripe_Invoice instance has invalid ID: ‘ in /nas/content/live/proofreadanywh/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe/ApiResource.php:69\nStack trace:\n#0 /nas/content/live/proofreadanywh/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe/ApiResource.php(18): Stripe_ApiResource->instanceUrl()\n#1 /nas/content/live/proofreadanywh/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe/ApiResource.php(8): Stripe_ApiResource->refresh()\n#2 /nas/content/live/proofreadanywh/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe/Invoice.php(26): Stripe_ApiResource::_scopedRetrieve(‘Stripe_Invoice’, NULL, NULL)\n#3 /nas/content/live/proofreadanywh/wp-content/plugins/paid-memberships-pro/services/stripe-webhook.php(368): Stripe_Invoice::retrieve(NULL)\n#4 /nas/content/live/proofreadanywh/wp-content/plugins/paid-memberships-pro/services/stripe-webhook.php(2 in /nas/content/live/proofreadanywh/wp-content/plugins/paid-memberships-pro/includes/lib/Stripe/Stripe/ApiResource.php on line 69

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *