- May 29, 2018 at 10:08 am #18051
I wanted to upgrade Ajax Search Pro from 4.11.2 to 4.14. I undertook the following procedure:
– disabled 4.11.2 via wp-admin console
– deleted 4.11.2 via wp-admin console
– installed and enabled 4.14 via wp-admin console
Have now got the following issues
(1) Undefined variables and Index notices now appear on my website, see attached.
(2) Cannot click through to my basket (basket icon is there but not responding to clicks). The cart URL is not working, because it’s link is malformed, it contains this error message:
” <b>Notice</b>: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in <b>/home/da12pl9th3zs/public_html/staging/wp-includes/functions.php</b> on line <b>3840</b> http://staging.raw4pets.uk/cart/”
This is only been applied to my staging site: staging.raw4pets.uk
Since then, I have been in touch with the author and followed his recommendation and have disabled another plugin woo-title-limit, this has removed the notice seen at the top of the screen, however the 3 other notices still persist. Also, my cart link is still malformed.
Nothing else has taken place other than the upgrade of Ajax Search Pro to 4.11.
Please can you advise.May 29, 2018 at 1:10 pm #18055
Thank you for the details, it helps us a lot.
Sorry if I was not clear, what I meant is to disable the Ajax Search Pro plugin (not the other one), to see if the issues persist. If yes, then it means that the plugin is not related to the problems. I no longer see however the notices on the front page, but I still tested the other cart issue.
I have disabled the ajax search pro plugin, and the Cart icon is still containing the wrong URL, causing the problem. This means that the issue is not related to the search plugin, since it persists even if it is completely disabled, see the screenshot: https://i.imgur.com/gSZEm8b.jpg
You can test this by disabling, or even uninstalling the search plugin, the issue will still persist.
The Cart URL error message is thrown by WooCommerce itself, saying that the function which prints the cart URL in the Theme is the outdated version. Usually ‘Notice’ type of errors are not displayed in WordPress unless the debug mode is enabled. Perhaps on your staging environment you have enabled the debug mode in the wp-config.php file. These issues can be present in the live environment as well, but if the debug mode is disabled, these are not visible.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.