Website crash after update
-
Hi, I got this error after last update
[Tue Mar 05 22:29:13.535156 2019] [proxy_fcgi:error] [pid 2144:tid 140585296041728] [client 162.158.102.140:17658] AH01071: Got error 'strpos(): Empty needle in /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php
it’s caused by this code:
function my_custom_available_payment_gateways( $gateways ) { $chosen_shipping_rates = WC()->session->get( 'chosen_shipping_methods' ); // When 'local delivery' has been chosen as shipping rate if ( in_array('flexible_shipping_11_6', $chosen_shipping_rates )) : // Remove bank transfer payment gateway unset( $gateways['przelewy24'] ); endif; return $gateways; } add_filter( 'woocommerce_available_payment_gateways', 'my_custom_available_payment_gateways' );
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Website crash after update’ is closed to new replies.