You need to change your PHP preferences in the php.ini file.
You need to change error reporting to:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
The symbol “~” means “NOT”. So, the above line means Notices and deprecated messages will not be displayed.