WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Bozz
    Member
    Posted 10 months 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.

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

  2. johnrom
    Member
    Posted 10 months 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

    John

  3. Bozz
    Member
    Posted 10 months 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
    Member
    Plugin Author

    Posted 9 months ago #

    Hi there,

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

  5. Bozz
    Member
    Posted 9 months 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:
    https://github.com/dgrundel/woo-product-importer

Reply

You must log in to post.

About this Plugin

About this Topic