• Hi All,

    Have installed the woocommerce – deposits plugin but am getting the following error on the my account/my orders page

    Warning: array_diff(): Argument #1 is not an array in /homepages/19/d546603862/htdocs/clickandbuilds/IcklePicklePrints/wp-content/plugins/woocommerce-deposits/includes/class-wc-deposits-order-manager.php on line 131

    Anyone know what this is and how to rectify it?.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • I am facing this same issue. Hope someone can shed some light on this issue. I will let you know if I figure it out.

    Thread Starter mattyfowles

    (@mattyfowles)

    Yeah has me stumped. It seems like its trying to import some info thats not there!. I think..

    I made sure I have the latest version. It may be an issue with another plugin. Are you using anything else in conjunction with deposits? I am going to try disabling things and seeing if that helps.

    public function woocommerce_my_account_my_orders_query( $query ) {
    		$query['post_status'] = array_diff( $query['post_status'], array( 'wc-scheduled-payment' ) );
    		return $query;
    	}

    this is the PHP in question. In case anyone can look and see what may be wrong in the line.

    I created a ticket with Woo Themes. I suggest you do as well. Let me know what they tell you if you find out. Thanks!

    Thread Starter mattyfowles

    (@mattyfowles)

    Ive been advised that is not the code that is the issue its the data the code is trying to import is the issue!.

    Just trying to figure out what that data is is the problem.

    I will raise a ticket also and let you know in the meantime if i sort it..

    that makes sense. Thanks for the info!

    I was informed by woothemes that the issue is a part of the code that is going to be updated in the next version. Until the next version is sent out for download you can turn off debug to make it not show. No word on when it will be released.

    Thread Starter mattyfowles

    (@mattyfowles)

    Thats great thanks..

    Turn the debug off in wordpress or the plugin?.

    Thread Starter mattyfowles

    (@mattyfowles)

    Just so anyone else out there needs this.

    The code to enter in your wp-config.php is below

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

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Woocommerce – deposits’ is closed to new replies.