Plugin conflict?
-
I’m testing out the free version of your plugin, but find that when I enable CheckoutWC, there’s an error showing a conflict with it:
Fatal error: Uncaught Error: in_array(): Argument #2 ($haystack) must be of type array, string given
in /home/931063.cloudwaysapps.com/cfnskvdbee/public_html/wp-content/plugins/woocommerce-checkout-manager/lib/view/frontend/class-fields-register.php on line 71If I disable their plugin, yours works fine. However, when I look at woocommerce-checkout-manager/lib/view/frontend/class-fields-register.php, there is no haystack on line 71.
Can you help? I’d like to buy your plugin, but not if I can’t get it to work.
The whole stack error, in case that’s helpful:
Call stack:
in_array()
wp-content/plugins/woocommerce-checkout-manager/lib/view/frontend/class-fields-register.php:71
QuadLayers\W\V\F\Fields_Register::add_billing_fields_beta()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-content/plugins/woocommerce/includes/class-wc-checkout.php:300
WC_Checkout::get_checkout_fields()
wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php:1293
wc_stripe_get_checkout_fields()
wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-frontend-scripts.php:129
WC_Stripe_Frontend_Scripts::localize_scripts()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/script-loader.php:2224
wp_print_head_scripts()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/general-template.php:3064
wp_head()
wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php:239
Objectiv\P\C\L\Redirect::cfw_wp_head()
wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php:201
Objectiv\P\C\L\Redirect::head()
wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php:57
Objectiv\P\C\L\Redirect::checkout()
wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php:386
Objectiv\P\C\L\Redirect::template_redirect()
wp-content/plugins/checkout-for-woocommerce/sources/php/functions.php:1825
{closure}()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/template-loader.php:13
require_once()
wp-blog-header.php:19
require()
index.php:17If I remove the checks at lines 71 and 99, everything works.
What does that code actually do?
if ( isset( $fields['shipping']['shipping_address_2']['label_class'] ) && in_array( 'screen-reader-text', $fields['shipping']['shipping_address_2']['label_class'], true ) ) {
$fields['shipping']['shipping_address_2']['label_class'] = array_filter(
$fields['shipping']['shipping_address_2']['label_class'],
static function ( $class ) {
return 'screen-reader-text' !== $class;
}
);
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.