To confirm.... you recursively changed the permissions on /data and /internal_data[/code].... meaning that all files and directories below that base location were changed also?
Normally that error is found when files/folders under those two base directories are NOT given world read/write permission or access by the HTTP/PHP processes.