• Resolved demuri

    (@demuri)


    Hi,
    I found a lot of lines from Booster in my error log:
    PHP Warning: array_keys() expects parameter 1 to be array, null given in …/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-checkout-custom-fields.php on line 356
    Please have a look on your code and usage of $replaced_values:

    
    else if ('' == $value) {
    						$templates = array(
    							'before' => '',
    							'field'  => '',
    							'after'  => '',
    						);
    						$final_output .= str_replace( array_keys( $replaced_values ), $replaced_values, $templates['field'] );
    					 }
    
    • This topic was modified 3 years, 2 months ago by demuri.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support David G

    (@gravid7)

    Hi @demuri

    Thanks for bringing our attention here.

    You can replace this variable from $replaced_values to $templates. We will resolve this in our upcoming updates. Let us know if you need further help from us.

    Thread Starter demuri

    (@demuri)

    We will resolve this in our upcoming updates.

    Thanks, looking forward for update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘class-wcj-checkout-custom-fields.php error’ is closed to new replies.