Support » Plugin: WooCommerce » Deprecated since version 3.0.1. Replace with woocommerce_add_to_cart_fragment

  • Resolved bmalott01

    (@bmalott01)


    When I log into the admin site and click on “Bookings” I get an HTTP Error 500. When I click on WooCommerce > Orders it takes me to a blank page. I just updated to WooCommerce version 3.0.1, which I belive is the issue. How do I correct this?

    The Error logs keep repeating the below message:

    [10-Apr-2017 17:29:08 UTC] The The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.0.1. Replace with woocommerce_add_to_cart_fragments.
    [10-Apr-2017 17:29:22 UTC] post was called incorrectly. Product properties should not be accessed directly.. This message was added in version 3.0.
    [10-Apr-2017 17:29:22 UTC] price was called incorrectly. Product properties should not be accessed directly.. This message was added in version 3.0.
    [10-Apr-2017 17:29:22 UTC] wc_display_cost was called incorrectly. Product properties should not be accessed directly.. This message was added in version 3.0.
    [10-Apr-2017 17:29:22 UTC] wc_display_cost was called incorrectly. Product properties should not be accessed directly.. This message was added in version 3.0.
    [10-Apr-2017 17:29:22 UTC] price was called incorrectly. Product properties should not be accessed directly.. This message was added in version 3.0.
    [10-Apr-2017 17:29:22 UTC] wc_display_cost was called incorrectly. Product properties should not be accessed directly.. This message was added in version 3.0.
    [10-Apr-2017 17:29:22 UTC] wc_display_cost was called incorrectly. Product properties should not be accessed directly.. This message was added in version 3.0.
    [10-Apr-2017 17:29:22 UTC] wc_booking_resouce_label was called incorrectly. Product properties should not be accessed directly.. This message was added in version 3.0.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    Deprecation warnings are to developers so they know they need to change certain things. What version of bookings?

    1.9.15 is the woocommerce booking version
    3.0.1 is the woocommerce version

    Plugin Author Mike Jolley

    (@mikejolley)

    Thank you. This issue was resolved with the update of the booking plugin.

    Okay, I thought this was resolved because it was working for about an hour. I was able to access “All booking” and “Orders,” but it is back to giving me the HTTP ERROR 500 when clicking on “Bookings” and it is does nothing and is blank with I click on “Orders.”

    Below are the plugin versions I’m using:
    WooCommerce – 3.0.1
    WooCommerce Bookings – 1.10.0

    The logs are throwing this error:
    [11-Apr-2017 19:15:52 UTC] The The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.0.1. Replace with woocommerce_add_to_cart_fragments.

    I have the same issue on and I have checked the woocommerce/includes/class-wc-deprecated-filter-hooks.php. Could you please let me know how I can get resolve this issue I have updated the woocommerce plugin and database as well.

    me too same problem can anybody help

    I fixed my error by going to Appearance > Editor > woocommerce.php (plugins/woocommerce.php) > and updated “add_to_cart_fragments” with “woocommerce_add_to_cart_fragments”. Seems to have worked.

    Many Row of this error in my error log

    [28-Apr-2017 07:34:22 UTC] The The “add_to_cart_fragments” hook uses out of date data structures and function is deprecated since version 3.0.4. Replace with woocommerce_add_to_cart_fragments.

    • This reply was modified 2 years, 8 months ago by shimist.
    • This reply was modified 2 years, 8 months ago by shimist.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Deprecated since version 3.0.1. Replace with woocommerce_add_to_cart_fragment’ is closed to new replies.