For current Plex versions, the above procedure is missing 2 commands. Updated procedure here:
https://forums.plex.tv/t/there-was-an-unexpected-error-loading-this-library-when-accessing-all-movies-server-bug/237460/24