• Resolved joelby37

    (@joelby37)


    I noticed that the plugin was generating a large amount of messages in the PHP error logs. In classes/class-get-products.php on lines 4143, 4152 and 4166 it looks like some extra development debug statements were added and then committed to the repository:

    
            $new_key_m ="custom_attributes_" . $custom_kk_m;
    
    + error_log($custom_kk_m);
    
            if(!is_array($custom_value_m)){
                    // In order to make the mapping work again, replace var by product
                    $new_key_m = str_replace("var","product",$new_key_m);
                    if(!key_exists($new_key_m, $product_data) AND (!empty($custom_value_m))){
                            if(is_array($custom_value_m)){
                                    // determine what to do with this later
                            } else {
    
    + error_log("1111" . $custom_value_m);
                                    $product_data[$new_key_m] = $custom_value_m;
                            }
                    }

    and

    
                            }
                    }
    +               error_log(print_r($arr_value, TRUE));
                    $arr_value = rtrim($arr_value, ",");

    Please consider removing these error_log calls if they’re no longer required! 🙂

    • This topic was modified 3 years, 12 months ago by joelby37.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Debug logging in classes/class-get-products.php’ is closed to new replies.