Did anyone find a solution? I’m getting the exact same error.
I just did exactly the same thing with a site in which I’m integrating a WordPress blog. I, too, would be very interested to know if removing “wp_unregister_GLOBALS();” will pose a security risk.