• Hi

    We get a massive amount of warnings logged into our debug log coming from the plugin on the checkout page. It fills the log with megabytes of data. Could you please fix this:

    Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /nas/content/staging/camove/wp-includes/functions.php on line 3840

    Notice: id was called incorrectly. Product properties should not be accessed directly.

    Notice: post was called incorrectly. Product properties should not be accessed directly.

    Notice: id was called incorrectly. Product properties should not be accessed directly.

    Notice: post was called incorrectly. Product properties should not be accessed directly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @alekv, did you manage to fix those errors? I tried integrating the code below to see if I could fix them but didn’t have any luck…

    function wck_save_or_update_cart() {
         }
       }
     
    +  // don't create a post and the assorted crap if the cart doesn't have anything in it.
    +  if($create_new_cart && WC()->cart->is_empty()) {
    +    return;
    +  }
    +
       if ( $create_new_cart ) {
         $cart_id = wp_insert_post( $cart_data, true );
    
    • This reply was modified 6 years, 3 months ago by LuisVzz.
    Thread Starter alekv

    (@alekv)

    @luisvzz

    No, I never really tried to.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘massive amount of warnings in our log’ is closed to new replies.