I had this error even though my home directory whas listed in my open_basedir & include_path. I turned debugging on and found PHP could not open files in "./lib/"
The soultion was to include my web servers root directory in my include_path.
I belive include_path can only be changed in the apache config or the php.ini file so changes to an htaccess file would have no effect.