Title: PHP error log noise
Last modified: April 14, 2026

---

# PHP error log noise

 *  Resolved [cptkoolbeenz](https://wordpress.org/support/users/cptkoolbeenz/)
 * (@cptkoolbeenz)
 * [1 month, 4 weeks ago](https://wordpress.org/support/topic/php-error-log-noise/)
 * Plugin version: 13.5.2.2
   WordPress: 6.9.4WooCommerce: 10.6.2PHP: 8.4
 * I’m getting daily PHP warnings (3 entries every cron run, every day) from
   class-
   get-products.php line 1147 when I have a CSV-format feed configuredalongside 
   XML feeds:
 * PHP Warning: simplexml_load_file():
   /wp-content/uploads/woo-product-feed-pro/
   csv/[feed]_tmp.csv:1:parser error : Start tag expected, ‘<‘ not foundin classes/
   class-get-products.php on line 1147
 * The CSV file itself generates correctly via woosea_create_csvtxt_feed and
   the
   feed works fine in Google Merchant Center. The warning is coming fromwoosea_create_xml_feed
   which is also being called for the same feed object,and it tries to simplexml_load_file()
   the CSV file because the file path isconstructed from $feed->file_format with
   no format check before the XMLreload at line 1147.
 * The fix should be straightforward — your plugin already has a private
   helper 
   at line 415 that does exactly the right check:
 *     ```wp-block-code
         private function is_xml_file( $file ) {
             if ( ! file_exists( $file ) ) {
                 return false;
             }
             $handle = fopen( $file, 'r' );
             if ( ! $handle ) {
                 return false;
             }
             $content = fread( $handle, 200 );
             fclose( $handle );
             $content = ltrim( $content, "\xEF\xBB\xBF" );
             return ( strpos( trim( $content ), '<?xml' ) === 0
                   || strpos( trim( $content ), '<' ) === 0 );
         }
       ```
   
 * It just isn’t called at line 1147. Wrapping the simplexml_load_file()
   call in
   $this->is_xml_file( $file ) would skip the XML re-parse for CSVand TXT feeds 
   entirely:
 *     ```wp-block-code
         } else {
             if ( $this->is_xml_file( $file ) ) {
                 $xml    = simplexml_load_file( $file );
                 $aantal = count( $products );
                 // ... existing XML-specific manipulation
             } else {
                 // Non-XML feed — already written by woosea_create_csvtxt_feed
                 $aantal = count( $products );
             }
         }
       ```
   
 * Happy to test a fix on staging and confirm the warnings clear. Thanks!
    -  This topic was modified 1 month, 4 weeks ago by [cptkoolbeenz](https://wordpress.org/support/users/cptkoolbeenz/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Jeff Alvarez](https://wordpress.org/support/users/superlemon1998/)
 * (@superlemon1998)
 * [1 month, 4 weeks ago](https://wordpress.org/support/topic/php-error-log-noise/#post-18879510)
 * Hi [@cptkoolbeenz](https://wordpress.org/support/users/cptkoolbeenz/) ,
 * Thanks for the bug report, I’ll raise it up with our developers but I’m afraid
   I can’t provide any ETAs when a fix will be released for this. I’ll keep you 
   in the loops

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-log-noise%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeff Alvarez](https://wordpress.org/support/users/superlemon1998/)
 * Last activity: [1 month, 4 weeks ago](https://wordpress.org/support/topic/php-error-log-noise/#post-18879510)
 * Status: resolved