Well I have never seen an instance of the "Refresh UI is not defined" error that was not fixed by deleting the cache file.
I *have* seen instances where you need to delete the cache file, restart your computer and then delete it again before opening Dreamweaver. Have you tried that? If you still have the error after trying that, I will open a support ticket for you.