• Resolved Carlos Blázquez

    (@carlosblazquez4global)


    Hi.

    Some days ago this plugin stop working when adding products to basket with checked options, and output the “Option is invalid” error message.

    After checking the plugin, we found the problem in the file includes/class-epofw-front.php, line 738, when try to sanitize the option array of values. To solve, change:

    $post_check_field_name = array_map( 'sanitize_text_field', wp_unslash( wp_strip_all_tags( $epofw_field_value ) ) );

    To:

    $post_check_field_name = array_map( 'sanitize_text_field', wp_unslash( array_map( 'wp_strip_all_tags', $epofw_field_value ) ) );

    We hope it will be helpful to the users and to the developer.

    The page I need help with: [log in to see the link]

The topic ‘“Option is invalid” error message when adding product (plugin version 3.0.8)’ is closed to new replies.