Error while upgrading from 3.3.4 to 4.0

This is how I was able to resolve my problem once and for all. Now I have a fully upgraded and clean installation of v4