Title: Debug logging in classes/class-get-products.php
Last modified: June 16, 2022

---

# Debug logging in classes/class-get-products.php

 *  Resolved [joelby37](https://wordpress.org/support/users/joelby37/)
 * (@joelby37)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/debug-logging-in-classes-class-get-products-php/)
 * 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](https://wordpress.org/support/users/joelby37/).

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

 *  [supportadtribes](https://wordpress.org/support/users/supportadtribes/)
 * (@supportadtribes)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/debug-logging-in-classes-class-get-products-php/#post-15742676)
 * Hi Joel,
 * Thanks for using our plugin and reaching out to us. We checked those files but
   there is no error logging in it. I suspect you are on an old version of the plugin.
   What version are you using?
 *  Thread Starter [joelby37](https://wordpress.org/support/users/joelby37/)
 * (@joelby37)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/debug-logging-in-classes-class-get-products-php/#post-15742704)
 * Thanks for replying! I’m using 11.6.3. I don’t see this release tagged in SVN,
   but the error logging statements are present in the trunk: [https://plugins.trac.wordpress.org/browser/woo-product-feed-pro/trunk/classes/class-get-products.php](https://plugins.trac.wordpress.org/browser/woo-product-feed-pro/trunk/classes/class-get-products.php)
 *  [supportadtribes](https://wordpress.org/support/users/supportadtribes/)
 * (@supportadtribes)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/debug-logging-in-classes-class-get-products-php/#post-15745483)
 * Try updating the plugin through the normal plugins section and get version 11.6.4.
 *  Thread Starter [joelby37](https://wordpress.org/support/users/joelby37/)
 * (@joelby37)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/debug-logging-in-classes-class-get-products-php/#post-15745508)
 * Thanks – I downloaded the latest version and this still has the three error_log
   statements (and they’re still in SVN trunk).
 *  Thread Starter [joelby37](https://wordpress.org/support/users/joelby37/)
 * (@joelby37)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/debug-logging-in-classes-class-get-products-php/#post-15755592)
 * Thanks – release 11.6.6 removes some (but not all) of the error logging statements.
 * The error_log statements on lines 4192 and 4206 remain, and these are some of
   the biggest offenders when it comes to generating lots of logging.

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

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

 * ![](https://ps.w.org/woo-product-feed-pro/assets/icon-256x256.png?rev=3111496)
 * [Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce](https://wordpress.org/plugins/woo-product-feed-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-feed-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-feed-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-feed-pro/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [joelby37](https://wordpress.org/support/users/joelby37/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/debug-logging-in-classes-class-get-products-php/#post-15755592)
 * Status: resolved