• Resolved nikdow

    (@nikdow)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    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:
     

    • Temporarily switch your theme to Storefront
    • 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

    (@nikdow)

    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.