Title: Debug Issue: non-static method should not be called statically
Last modified: August 21, 2016

---

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

 *  [Marty](https://wordpress.org/support/users/bozzmedia/)
 * (@bozzmedia)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/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/](http://wordpress.org/plugins/woocommerce-csvimport/)

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

 *  [johnrom](https://wordpress.org/support/users/johnrom/)
 * (@johnrom)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/debug-issue-non-static-method-should-not-be-called-statically/#post-4242661)
 * 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](http://pastebin.com/9QJVwUk2)
 * John
 *  Thread Starter [Marty](https://wordpress.org/support/users/bozzmedia/)
 * (@bozzmedia)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/debug-issue-non-static-method-should-not-be-called-statically/#post-4242688)
 * 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](https://wordpress.org/support/users/allaerd/)
 * (@allaerd)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/debug-issue-non-static-method-should-not-be-called-statically/#post-4242704)
 * Hi there,
 * This is not from my plugin!!!!! This is from somebody else!
 *  Thread Starter [Marty](https://wordpress.org/support/users/bozzmedia/)
 * (@bozzmedia)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/debug-issue-non-static-method-should-not-be-called-statically/#post-4242706)
 * 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](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.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-csvimport_aa9366.svg)
 * [Woocommerce CSV importer](https://wordpress.org/plugins/woocommerce-csvimport/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-csvimport/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-csvimport/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-csvimport/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-csvimport/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-csvimport/reviews/)

## Tags

 * [strict standards](https://wordpress.org/support/topic-tag/strict-standards/)

 * 4 replies
 * 3 participants
 * Last reply from: [Marty](https://wordpress.org/support/users/bozzmedia/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/debug-issue-non-static-method-should-not-be-called-statically/#post-4242706)
 * Status: not a support question