Hi and thanks for the superb theme!
We just updated our woocommerce to the latest version on our site https://gearouthere.com and all of a sudden we are getting this error when trying to add a product to cart:
Fatal error: Call to undefined function wp_get_raw_referer() in /home/gearouthere/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 90
Not sure how to fix this. We updated wordpress, our theme etc. Do you have any idea?
Thank you,
Gear Out Here
Hey gearouthere,
Thanks for getting in touch with us!
The fatal error seems to be referring to an error in the file within the WooCommerce plugin. Please try contacting WooCommerce support to see if they have a solution for this error.
Best regards,
Jordan
Hi Gearouthere
I have had this same issue since the WC upgrade to 2.6 – I am going to open a ticket with Woo as well myself, but in the meantime I found that if you turn off the “redirect to cart after adding” option in Woocommerce this behaviour can be avoided and the cart works ok (you can then manually view cart after adding a product).
Hope that helps as a workaround.
Thanks, Cat
Hi Cat,
thanks for that workaround! I talked to Woo and they advised to update WordPress to the latest version – that fixed it! Maybe it would help you as well?
Thanks,
Gearouthere