fbpx

Home Forums Booster Plus Customer Forum Undefined array key “standard” in /shortcodes/class-wcj-orders-shortcodes.php

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53416
    M.W
    Participant

    Hello,

    I have this PHP Warning: Undefined array key “standard” in /public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/shortcodes/class-wcj-orders-shortcodes.php on line 254\n
    That line contains: $atts[‘standard’] = wcj_sanitize_input_attribute_values( $atts[‘standard’] );

    The PHP warning, Undefined array key “standard”, occurs because the array key “standard” is not defined in the $atts array when it is being accessed. This can happen if the shortcode that the code is handling doesn’t include the standard attribute.

    I have Booster Plus for WooCommerce version 7.2.2

    How to solve this?

    #53428
    David G
    Participant

    Hi @ilonafurnexx-nl,

    Thanks for reaching out to us.

    If you are able to modify the code then you can add the below line of code to the wp-config.php file. You can find this file directly to your domain. This will not display the errors on any pages.

    @ini_set( ‘log_errors’, ‘On’ );
    @ini_set( ‘display_errors’, ‘Off’ );
    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );

    #53440
    M.W
    Participant

    Well, hiding errors does not solve the problem, does it?
    I need to see errors from other plugins etc. too, just hiding errors is not an option.
    Please solve the problem.

    #53488
    M.W
    Participant

    Can you fix it?

    #53768
    Justin
    Participant

    I am also having this problem and that’s a hilarious response from the support team…

    #53771
    M.W
    Participant

    Justin, what support team? 😉

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.