• Resolved 623carr

    (@623carr)


    Hello,

    When I go into my “products” section I keep getting this error:

    Fatal error: Uncaught Error: Call to undefined function wc_get_chosen_shipping_method_ids() in /home1/outpost6/public_html/omnibioinnovations/wp-content/plugins/woocommerce/includes/class-wc-customer.php:190 Stack trace: #0 /home1/outpost6/public_html/omnibioinnovations/wp-content/plugins/woocommerce/includes/class-wc-tax.php(459): WC_Customer->get_taxable_address() #1 /home1/outpost6/public_html/omnibioinnovations/wp-content/plugins/woocommerce/includes/class-wc-tax.php(481): WC_Tax::get_tax_location(”, Object(WC_Customer)) #2 /home1/outpost6/public_html/omnibioinnovations/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php(400): WC_Tax::get_rates() #3 /home1/outpost6/public_html/omnibioinnovations/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php(258): WC_Product_Variable_Data_Store_CPT->get_price_hash(Object(WC_Product_PW_Gift_Card), true) #4 /home1/outpost6/public_html/omnibioinnovations/wp-content/plugins/woocommerce/includes in /home1/outpost6/public_html/omnibioinnovations/wp-content/plugins/woocommerce/includes/class-wc-customer.php on line 190

    No idea what’s going on. I made sure no tax is applied. Also, because of this, I can’t click “quick edit” on any of my products. Can someone please help?

    • This topic was modified 4 years, 11 months ago by 623carr.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author pimwick

    (@pimwick)

    Sorry to hear you’re having trouble but I don’t see anything in that code that is related to our plugin. The code is all contained in the core WooCommerce code so I think you will need to open a ticket with them instead: https://woocommerce.com/contact-us/

    Thread Starter 623carr

    (@623carr)

    Oh ok thank you!

    Thread Starter 623carr

    (@623carr)

    So I reached out to them and they told me this:

    “Ok thanks for confirming.
    So looking more closely at the error, we can see there it’s coming from the PW Gift Card in #3 there: get_price_hash(Object(WC_Product_PW_Gift_Card)”

    Plugin Author pimwick

    (@pimwick)

    That code is passing your Gift Card product object into the WooCommerce fields which then throw the error.

    It could be that you have data corruption on that product. Try these steps and let me know if it resolves your issue:

    1. Move the existing Gift Card product to trash.
    2. Click on Pimwick Plugins -> PW Gift Cards
    3. Click on the “Create Gift Card Product” button.

    This will create a new gift card product with the default settings.

    Thread Starter 623carr

    (@623carr)

    I did that and am getting the same error.

    Plugin Author pimwick

    (@pimwick)

    Unfortunately there isn’t much further troubleshooting that I can provide since the error isn’t originating from our code.

    Investigating further would require debugging your system and tracing through the code to find the culprit. Your website host may be able to assist you with this or if you have a developer who helped you set things up they may be able to help.

    Also, make sure you have the latest versions of your plugins, theme, and PHP just to rule out anything like that as the source of the error.

    I’d like to know if the op @623carr got to solve this problem, cause I’m experiencing it too.

    And if so, how did you do it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal Error’ is closed to new replies.