@danish – By the way I kept on running into these kinds of issues all the time, so then I set-up XAMPP (a WAMP stack) on my personal computer and on top I installed WordPress and WooCommerce.
Any updates or changes I plan to make to a website, I first apply to the local host and I test the changes thoroughly. Once I am happy everything is OK I then make the same changes to the live web server.
This separation of development environment from production environment allows me to roll back any changes and to undo mistakes without tampering/affecting an up and running website. Its a gamble to apply an update and to hope it will work successfully every time.
I admit there is a bit of legwork to set-up a local development environment (1 days work) but it sure pays dividends in the long run. (Many days & stress saved.)