Woocommerce CSV importer
Debug Issue: non-static method should not be called statically (5 posts)

  1. Bozz
    Posted 2 years ago #

    Great plugin! Just a heads up that I receive the following error when using WP_Debug:

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method WebPres_Woo_Product_Importer::translations() should not be called statically in /home/site/public_html/wp-includes/plugin.php on line 406

    Hope this can be addressed in a future release, thank you.


  2. johnrom
    Posted 2 years ago #

    Hi Bozz,

    All instances of 'WebPres_Woo_Product_Importer' passed to call_user_func_array have to be replaced by an instantiated object. In this case, it would be &$this since it is within a class constructor.

    If you run a find/replace of 'WebPres_Woo_Product_Importer' with &$this, the error will go away and everything should go back to normal.

    Here is my version of woo_product_importer.php


  3. Bozz
    Posted 2 years ago #

    Thanks for sharing the fix, John! Hopefully the developer will change this in a future update of the plugin, seems easy enough. Cheers

  4. allaerd
    Plugin Author

    Posted 2 years ago #

    Hi there,

    This is not from my plugin!!!!! This is from somebody else!

  5. Bozz
    Posted 2 years ago #

    My apologies allaerd, you're correct/ Different plugin - 'Woo Product Importer', it was the second hit when I searched for the plugin name.

    For those looking for that plugin and support forum:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Woocommerce CSV importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic