WordPress.org

Support

Support » Plugins and Hacks » Woocommerce CSV importer » Debug Issue: non-static method should not be called statically

Debug Issue: non-static method should not be called statically

  • 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.

    http://wordpress.org/plugins/woocommerce-csvimport/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    John

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

    Plugin Author allaerd

    @allaerd

    Hi there,

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

    Bozz

    @bozzmedia

    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:
    https://github.com/dgrundel/woo-product-importer

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Debug Issue: non-static method should not be called statically’ is closed to new replies.
Skip to toolbar