Site icon Hip-Hop Website Design and Development

Customized plugin difficulty – Discover: Attempting to get property of non-object in

In my plugin to configure some fundamental values utilizing a woocommerce perform which is making a choose discipline, however for some motive it generate this error:
“Discover: Attempting to get property of non-object in /var/www/html/wp-content/plugins/woocommerce/consists of/admin/wc-meta-box-functions.php on line 192”

It really works however the error message on the display screen driving me loopy. I can change worth and save and all the things is completely wonderful besides the message.

perform spinna360_nof($noi) {

woocommerce_wp_select( 
    array(
        'id'        => '_select_noi',
        'label'     => __( 'Choose variety of pictures: ', 'spinna360' ),
        'chosen'  => true,
        'worth'     =>  $noi,
        'choices'   => [
            '24'        => __( '24', 'spinna360' ),
            '36'        => __( '36', 'spinna360' ),
            '48'        => __( '48', 'spinna360' )
            ]
        )
    );
}

Why?
What’s the downside?