Fixed a lot of error with 'error_reporting(E_ALL)' ON.
Fixed a lot of error with 'error_reporting(E_ALL)' ON.