PHP Fatal Error since version 9.5.0.
-
Since WooCommerce Stripe Payment Gateway updated to 9.5.0. we’re seeing a fatal error.
PHP message: PHP Fatal error: Uncaught Error: Failed opening required '/mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/admin/stripe-settings.php' (include_path='.:/usr/share/php') in /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:389\nStack trace:\n#0 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php(230): WC_Stripe_UPE_Payment_Gateway->init_form_fields()\n#1 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php(789): WC_Stripe_UPE_Payment_Gateway->__construct()\n#2 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gat…', referer: https://www.xxxxxx.co.uk/wp-admin/plugins.phpWe’re having to manually disable the plugin to give us access to the admin.
Any ideas what could be causing this?
WooCommerce Version 9.8.5
WordPress Version 6.8.1
-
Our site also experienced PHP Fatal errors after upgrade to version 9.5.0. Loading the checkout page caused the following PHP Fatal error to displayed on the front-end:
[15-May-2025 14:25:34 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object in /www/doc/www.mywave.cz/www/wp-includes/class-wp-hook.php:324
Deactivating the WooCommerce Stripe Payment Gateway plugin allowed the checkout page to display normally. I just rolled the WooCommerce Stripe Payment Gateway plugin back to version 9.4.1 and all is working properly once again.
Woocommerce version 9.8.5
WordPress version 6.8.1Thanks for reporting this.
The fatal error indicates that a required file (
stripe-settings.php) is missing from the WooCommerce Stripe Payment Gateway plugin folder. This usually happens if the plugin update was incomplete or some files were not properly installed.To resolve this, I recommend reinstalling or updating the Stripe plugin to ensure all files are present and intact.
To avoid impacting your live site, I recommend setting up a staging environment where you can safely troubleshoot the issue. On the staging site, please delete the strip plugin and re-install the latest version again and see if you still face the same issuye.If the problem persists after reinstalling, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
- System Status Report which you can find via WooCommerce > Status
- Fatal error logs (if any) under WooCommerce > Status > Logs.
Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.
Hi @westonworkshops
I understand that you are also experiencing a fatal error, but it is different from the one reported by the user who created that ticket. As per forum best practices shown here, it is advised that you create a new thread so that we can address your issue(s) separately.You can create a new thread here: https://ww.wp.xz.cn/support/plugin/woocommerce/#new-topic-0 and make sure to include as much information as you can.
Thanks for understanding!
OK…opening a new thread.
Thanks for the advice. Completely deleting the plugin and reinstalling it has fixed the issue. A note for anyone else, simply uploading the plugin to ‘replace’ the old copy did not work – you had to actually delete it and its data to get it to fix the issue.
Thanks for the help.
Hello livingstonescreative,
I’m glad to hear that the issue has been resolved.
Thank you for sharing the solution, as it may help others who run into the same problem.
Wishing you a great day ahead!
We’ve just experienced the same issue again, with the recent update to 9.5.1., with a fatal error preventing access to the admin. To fix it we had to completely delete the plugin and its data and manually reinstall it.
Why would this be happening?
CORRECTION – Apologies, in my initial post I said that reinstalling had fixed the issue but I was mistaken. The same fatal error is occurring when the manually installed version 9.5.1. is activated. This was manually downloaded from ww.wp.xz.cn and installed via the dashboard, so this should rule out a partial install issue presumably.
Here’s the fatal error from 9.5.1. in WooCommerce’s log :
2025-05-19T13:05:12+00:00 Critical Uncaught Error: Failed opening required '/mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/admin/stripe-settings.php' (include_path='.:/usr/share/php') in /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:389
Additional context
{
"error": {
"type": 1,
"file": "/mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php",
"line": 389
},
"remote-logging": true,
"backtrace": [
"",
"#0 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php(230): WC_Stripe_UPE_Payment_Gateway->init_form_fields()",
"#1 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php(789): WC_Stripe_UPE_Payment_Gateway->__construct()",
"#2 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-express-checkout-helper.php(46): WC_Stripe->get_main_stripe_gateway()",
"#3 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-blocks-support.php(49): WC_Stripe_Express_Checkout_Helper->__construct()",
"#4 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php(933): WC_Stripe_Blocks_Support->__construct()",
"#5 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/AbstractDependencyType.php(42): {closure}()",
"#6 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/SharedType.php(28): Automattic\WooCommerce\Blocks\Registry\AbstractDependencyType->resolve_value()",
"#7 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce/src/Blocks/Registry/Container.php(96): Automattic\WooCommerce\Blocks\Registry\SharedType->get()",
"#8 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php(940): Automattic\WooCommerce\Blocks\Registry\Container->get()",
"#9 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-includes/class-wp-hook.php(324): {closure}()",
"#10 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
"#11 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()",
"#12 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-content/plugins/woocommerce/src/Blocks/Integrations/IntegrationRegistry.php(50): do_action()",
"#13 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry->initialize()",
"#14 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()",
"#15 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()",
"#16 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-settings.php(727): do_action()",
"#17 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-config.php(91): require_once('…')",
"#18 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-load.php(50): require_once('…')",
"#19 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-admin/admin.php(35): require_once('…')",
"#20 /mnt/BLOCKSTORAGE/home/XXXXX/public_html/wp-admin/index.php(10): require_once('…')",
"#21 {main}",
"thrown"
]
}-
This reply was modified 1 year ago by
livingstonescreative. Reason: Correction, as the problem persists
Hi there!
Thank you for sharing more details about the issue. I have tried to replicate the problem on my end, but I was not able to reproduce it on my site. I recently upgraded to version 9.5.1 without any issues.It seems like there might be something on your site causing this problem. For testing purposes, could you please completely delete the plugin files you downloaded, then download a fresh copy? After that, delete the existing plugin from your site, upload the new file, and see if you still face the same issue.
Also, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:- System Status Report which you can find via WooCommerce > Status
Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.
Hi shahzeen,
I’d already tried manually downloading the plugin, completely deleting the old one, and uploading 9.5.1. as a fresh install. We see the same error in WooCommerce.
I’ve copied our status report here – https://gist.github.com/livingstonecreative/d2adaeeba28ef8a0362d573a7a8a0dfc
Thanks
Hi there!
Thank you for sharing the system status report. Everything appears to be fine in the report.
However, I noticed that you are using multiple plugins on your site, and I suspect there might be a conflict caused by one of them.
For testing purposes, could you please create a staging site, deactivate all plugins except WooCommerce, and then try installing the plugin again to see if it works?
I’m unable to replicate the issue on my own site, which is why I recommend running a conflict test to help identify the root cause.
Also, could you please share any fatal error logs (if available) from WooCommerce > Status > Logs?
Thank you!
Hi Shahzeen,
The fatal error log was pasted into an earlier post in this thread, 4 or 5 messages up. Here I think.
Thanks.
Thank you for highlighting this and for providing additional clarification. I completely understand how frustrating this must have been—especially after trying multiple methods to install and activate the plugin, only to encounter the same issue.
After carefully reviewing your message, it appears the issue you’re facing is related to a known bug reported here: GitHub Issue #4270. If the plugin were still installed, I would have suggested checking the browser console for multiple API call requests, as that’s often a symptom.
That said, a fix is already in progress and can be tracked here: GitHub Pull Request #4323.
I know this may not be the immediate solution you were hoping for, and I truly understand how much this may have impacted your site and business. Thank you again for your patience and for bringing this to our attention—we’re hopeful the upcoming fix will resolve this for good.
If you’re satisfied with the plugin and the support you’ve received—aside from this bug and the upcoming fix —we’d truly appreciate it if you could leave us a review: https://ww.wp.xz.cn/support/plugin/woocommerce-gateway-stripe/reviews/#new-post. Your feedback means a lot to us!
Thanks for the update. I’ll keep an eye out for the fix to be released.
The topic ‘PHP Fatal Error since version 9.5.0.’ is closed to new replies.