Title: error in PHP log: WC_Log_Handler_File::get_log_file_path
Last modified: July 25, 2019

---

# error in PHP log: WC_Log_Handler_File::get_log_file_path

 *  Resolved [nikdow](https://wordpress.org/support/users/nikdow/)
 * (@nikdow)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-in-php-log-wc_log_handler_fileget_log_file_path/)
 * Page looks OK but seeing this in the server log:
    [25-Jul-2019 03:33:27 UTC] 
   WC_Log_Handler_File::get_log_file_path was called incorrectly. This method should
   not be called before plugins_loaded. Backtrace: WooCommerce->log_errors, WC_Logger-
   >critical, WC_Logger->log, WC_Log_Handler_File->handle, WC_Log_Handler_File->
   add, WC_Log_Handler_File->should_rotate, WC_Log_Handler_File::get_log_file_path,
   wc_doing_it_wrong. This message was added in version 3.0. [25-Jul-2019 03:33:
   27 UTC] WC_Log_Handler_File::get_log_file_path was called incorrectly. This method
   should not be called before plugins_loaded. Backtrace: WooCommerce->log_errors,
   WC_Logger->critical, WC_Logger->log, WC_Log_Handler_File->handle, WC_Log_Handler_File-
   >add, WC_Log_Handler_File->open, WC_Log_Handler_File::get_log_file_path, wc_doing_it_wrong.
   This message was added in version 3.0. WP 5.2.2 WC 3.6.5 Also running plugin 
   WooCommerce Donation/Tip Checkout
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-php-log-wc_log_handler_fileget_log_file_path%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * (@thup90)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-in-php-log-wc_log_handler_fileget_log_file_path/#post-11769101)
 * Hi there nikdow,
 * This kind of problem is usually caused by either a conflict with your theme or
   with another plugin.
      The best way to determine this is to:  
    - 
    - Disable all plugins except for WooCommerce
    - Repeat the action that is causing the problem
 * If you’re not seeing the same problem after completing the conflict test, then
   you know the problem was with the plugins and/or theme you deactivated. To figure
   out which plugin is causing the problem, reactivate your other plugins one by
   one, testing after each, until you find the one causing conflict. You can find
   a more detailed explanation on how to do a conflict test here.
 *  Thread Starter [nikdow](https://wordpress.org/support/users/nikdow/)
 * (@nikdow)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-in-php-log-wc_log_handler_fileget_log_file_path/#post-11769209)
 * Thanks, I identified the plugin by comparing the earliest time of this error 
   in the logs with plugin file dates on the server.
    The plugin that had updated
   just before this warning started appearing also had a bug which I had notified,
   and I received reply that this was hot-fixed, so I’ve updated that plugin, and
   both errors are now gone.
 * Thanks for the hint, which pointed me in the right direction.

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

The topic ‘error in PHP log: WC_Log_Handler_File::get_log_file_path’ is closed to
new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nikdow](https://wordpress.org/support/users/nikdow/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/error-in-php-log-wc_log_handler_fileget_log_file_path/#post-11769209)
 * Status: resolved