I solved the problem myself. I did a fresh install of opencart on the server. Uploaded and overwrite the files to the server from my machine. Deleted the fresh database and imported my database on it. Got it solved!!
Jonid Bendo's comment also work's !!
Sometimes clearing the themes cache also works.