WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Warning: call_user_func_array() (45 posts)

  1. jzmwebdevelopment
    Member
    Posted 1 year ago #

    Hello,

    How do I fix this error?

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'woocommerce_price_filter_init' not found or invalid function name in /home/baby/public_html/wp-includes/plugin.php on line 406

    http://wordpress.org/extend/plugins/woocommerce/

  2. jeroenvanderschenk
    Member
    Posted 1 year ago #

    Hmmm, I have exactly the same problem. Appeared after updating the Woocommerce plugin. Anyone?

  3. a_bustamy
    Member
    Posted 1 year ago #

    the same with me , so i am going to remove this update and use the old one for now

  4. jeroenvanderschenk
    Member
    Posted 1 year ago #

    @a_bustamy Would like to do that too. Probably a very stupid question: Any idea where I can find the old one?

  5. a_bustamy
    Member
    Posted 1 year ago #

    yes i can give it to you send me email to a_bustamy@hotmail.com and i will send it to you now

  6. jeroenvanderschenk
    Member
    Posted 1 year ago #

    @a_bustamy Thanks! Will send it right now...

  7. a_bustamy
    Member
    Posted 1 year ago #

    SENT

  8. jzmwebdevelopment
    Member
    Posted 1 year ago #

    Could you send it to me plz

  9. a_bustamy
    Member
    Posted 1 year ago #

    SENT

  10. dunar21
    Member
    Posted 1 year ago #

    Come on woo team. We expect great things from you...

  11. FllOb
    Member
    Posted 1 year ago #

    I've got the same problem too.

  12. supton
    Member
    Posted 1 year ago #

    I've just run the upgrade and get exactly the same issue. Come on Woo, please help!!

  13. supton
    Member
    Posted 1 year ago #

    I've just run the upgrade and get exactly the same issue. Come on Woo, please help!!

    Whoops! Double post. that's cos I'm panicking.

  14. supton
    Member
    Posted 1 year ago #

    My error messages:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'woocommerce_price_filter_init' was given in /homepages/36/d225513697/htdocs/chocbarwoo/wp-includes/plugin.php on line 406

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/36/d225513697/htdocs/chocbarwoo/wp-includes/plugin.php:406) in /homepages/36/d225513697/htdocs/chocbarwoo/wp-includes/pluggable.php on line 876

    Is this what everyone else is getting?

  15. thecookiemonster
    Member
    Posted 1 year ago #

    same here.

  16. jacuzzu
    Member
    Posted 1 year ago #

    Warning: call_user_func_array () [Function.call-user-func-array]: Primo argomento dovrebbe essere una richiamata valido, 'woocommerce_price_filter_init' stato dato in / homepages/36/d225513697/htdocs/chocbarwoo/wp-includes/plugin. php on line 406

    Attenzione: Non รจ possibile modificare le informazioni di intestazione - headers already sent by (output iniziato a / homepages/36/d225513697/htdocs/chocbarwoo/wp-includes/plugin.php: 406) in / homepages/36/d225513697/htdocs/chocbarwoo/wp- includes / pluggable.php on line 876

    same here

  17. sosisson
    Member
    Posted 1 year ago #

    Yeah, seeing the same. I have Cheope 1.4.1 with WooCommerce 2.0.1 and they are not playing well together.

    I see the following at the top of every admin page right now:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'woocommerce_price_filter_init' not found or invalid function name...

    In addition, the shop page lists my products but when I click on any of those products I get a 404 file not found. Not sure what that is about but I'm glad this is just a development site right now....

    On the theme page (themeforest.net) the author says that they are working for an update to the Cheope theme as of 7 hours ago. Here is the exact message from her on that site:

    "Today we will work on this. We had already a beta version of the theme compatible with woo commerce 2.0 but Friday the woo commerce team changed a lot of settings in the plugin so now we have to work again on this changes. Today or tomorrow we will send the update of the theme with the full compatibilty. thanks"

  18. WeirdMike
    Member
    Posted 1 year ago #

    @jeroenvanderschenk can you send me the old plugin?
    contact@splendidangst.com

  19. Roy Ho
    Member
    Posted 1 year ago #

    You can't go back once you updated to 2.0 unless you restore the database.

  20. WeirdMike
    Member
    Posted 1 year ago #

    Damn. Thank you

  21. Roy Ho
    Member
    Posted 1 year ago #

    Well this is given you pressed the "RUN UPDATER" button already...there is a clear message that says once you update, you can't go back...So if you haven't already clicked that, then you can simply copy the 1.6.6 files back otherwise you need to restore.

  22. mreddavis
    Member
    Posted 1 year ago #

    I am having this same issue, so you are saying restore the database on my hosting site.

  23. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    Odd - the action and function (woocommerce_price_filter_init) are right next to one another - the callback is valid.

    Maybe you guys are running either a theme or another plugin which breaks this? If you start turning things off you can narrow down the issue.

  24. boteyfx
    Member
    Posted 1 year ago #

    after update woocommerce to 2.0 i got this warning

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'woocommerce_price_filter_init' was given in /home/shopeemy/public_html/wp-includes/plugin.php on line 406

    Warning: Cannot modify header information - headers already sent by (output started at /home/shopeemy/public_html/wp-includes/plugin.php:406) in /home/shopeemy/public_html/wp-includes/pluggable.php on line 876

    please!!please!!please.. fix this problem

  25. boteyfx
    Member
    Posted 1 year ago #

    please send me the old version. email to boteyfx@gmail.com

  26. dunar21
    Member
    Posted 1 year ago #

    This seems to be caused from an action call (do_action) with woocommerce_price_filter_init being passed as the argument. Woocommerce_price_filter_init is not an action, it is a function that is called during an init action. plugin.php on line 406 is the "do_action" hook. However, when adding an arbitrary action called woocommerce_price_filter_init, I still continue to get the same error. It's getting to be pretty damn frustrating.

  27. dunar21
    Member
    Posted 1 year ago #

    I found the problem in my theme. I am using Sommerce theme and discovered that there is a call to add_action('init', 'woocommerce_price_filter_init') inside of Sommerce>inc>woocommerce.php on line 16. This is a duplicate call and is what has been causing the error. So for those of you who are having this issue, it is likely that you are using a theme (or a plugin, but I doubt it) that was made to be used with woocommerce and somewhere in the core, or admin functions of your theme in some file relating to woocommerce. Find that file and look for the now duplicated call above. Comment it out or delete it.

  28. sosisson
    Member
    Posted 1 year ago #

    Latest Cheope theme seems to work fine now, latest RC for Woocommerce 2 out yesterday, installed this morning and it resolved errors and layout issues I was seeing.

  29. faronbi
    Member
    Posted 1 year ago #

    Download one of the previous versions of woocommerce here :

    http://wordpress.org/extend/plugins/woocommerce/developers/

  30. mi327
    Member
    Posted 1 year ago #

    dunar21, I have the Maya Shop theme that has a line in its woocommerce.php page that calls the action and commented it out like you said. It works.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.