I have try to upgrading ezpublish from 4.0.3 to 4.1 but I have a problem with scripts upgrade and ezcomponents, after installed ezcomponents such as documented I can run the upgrade scripts but if I try to install a fresh ezpublish with wizard and I have your same php error; this is strange because I think I have just installed ezcomponents.