Support » Plugin: ActiveCampaign for WooCommerce » Plugin is flooding the WooCommerce Logs table

  • This plugin is adding millions of lines daily into the WooCommerce error logs table, resulting in poor performance of the site, and unnecessarily large database.

    Problem is originating on line
    https://plugins.trac.wordpress.org/browser/activecampaign-for-woocommerce/trunk/includes/orders/class-activecampaign-for-woocommerce-order-utilities.php#L694

    
    $order = wc_get_order( $line->wc_order_id );
    	if ( $this->verify_order_status( $order->get_status() ) ) {
    

    wc_get_order function can return false as well, in case the order is removed from database for some reason, in which case it will always thow an error, and keep trying to sync a non existing order every minute or so and keep adding new lines to the log.

    If we simply add a check like this:

    
    $order = wc_get_order( $line->wc_order_id );
    	if ( $order instanceof WC_order && $this->verify_order_status( $order->get_status() ) ) {
    

    This will resolve the issue.

    Can we please have it in next update?

  • You must be logged in to reply to this topic.