Open pimihel opened 8 months ago
This seems weird, considering that $gateways
contains the Stripe gateway reference as a minimum, and the function is called via a core WC hook. Maybe you can try to isolate this further by looking for other messages that could be related and performing a plugin/theme isolation test.
Also, it'll be helpful to provide environment information, like PHP version, web server information, WordPress version and the versions of WooCommerce and the Stripe Gateway plugin.
Same issue here.
Checked the logs and the only errors are this. All plugins and theme is up to date.
PHP: 8.1.27 Webserver: NGINX 1.25.4 WordPress: 6.4.3 Stripe Gateway: 8.1
NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /var/www/html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php:661 Stack trace:
thrown in /var/www/html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php on line 661
When does this happen? How can it be reproduced? What are the plugin settings (except the secret bits)?
When trying to access wp admin. No matter what page in admin. Get wp critical error message. Haven’t changed any settings before or after update. Default settings.
The function reorder_available_payment_gateways()
is called by the woocommerce_available_payment_gateways
filter hook in the function get_available_payment_gateways()
, where the first line ensures that the filter function always gets an array, so again, I really wonder how this is happening.
Can you perhaps download the plugin and reinstall it?
Also, can you compare the contents of wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php on your server the Github version?
Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.
This issue has gone 180 days (6 months) without any activity.
PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /www/xxxxxxx/public/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php:661