I'm still getting this error when I try to execute the upgrade script from 2.30 to 2.40.

Someone must have an ideal as to what is causing this.