How to suppress error messages when you move or install joomla 1.5 on a new server
When you move joomla to a new server or install joomla 1.5 you might receive several error messages including
Warning: session_start(): Cannot send session cookie - headers already sent by
Strict Standards: Non-static method JLoader::register() should not be called statically
Strict Standards: Non-static method JPath::find() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method JFactory::getDBO() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method JRequest::clean() should not be called statically
Strict Standards: Declaration of JSession::set() should be compatible with JObject::set($property, $value = NULL)
Strict Standards: Non-static method JSessionStorage::getInstance() should not be called statically, assuming $this from incompatible context in
Strict Standards: Non-static method JLoader::register() should not be called statically
Strict Standards: Non-static method JPath::find() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method JFactory::getDBO() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method JRequest::clean() should not be called statically
Strict Standards: Declaration of JSession::set() should be compatible with JObject::set($property, $value = NULL)
Strict Standards: Non-static method JSessionStorage::getInstance() should not be called statically, assuming $this from incompatible context in
To suppress / Fix / Solve these errors
Add to to your php.ini or Create a file called PHP.ini and put one in both your site root folder and administrator folder
error_reporting = E_ALL & ~E_STRICT
display_errors = Off
in configuration.php file in your root, set error reporting to 6135
var $error_reporting = '6135';
When there is a date and time error as follows
Warning: date(): It is not safe to rely on the system's timezone settings.
Add the information below to your php.ini or Create a file called PHP.ini and put one in both your site root folder and administrator folder
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Africa/Casablanca
Comments
Post a Comment