I actually did that and it did not solve the problem.
Fortunately, I solved the problem by deleting the contents of the following folders in the moodledata:
cache, localcache, sessions, temp, trashdir
I should not have copied these folders when I migrated to the new server.
Thank you very much for your time Sir Howard Miller!