Showing Warning on screen. How do I stop this? |
[eluser]stowell48[/eluser]
Hi, I am trying to run my code locally, but I am getting a php warning error displayed instead of showing my page. Is this a setting that I change in codeigniter, or would this be a php setting? Also, I get this warning when trying to use the libraries/Zip.php file. Is it possible to fix this warning so that it doesn't display this? Thanks A PHP Error was encountered Severity: Warning Message: substr() [function.substr]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for '-7.0/no DST' instead Filename: libraries/Zip.php Line Number: 161
[eluser]vitoco[/eluser]
error_reporting it's the php function that enable/disable errors, warnings, notices...etc. http://php.net/manual/en/errorfunc.configuration.php http://www.php.net/manual/en/function.er...orting.php Saludos
[eluser]pickupman[/eluser]
Make sure you have the correct timezone setting in your php.ini file [url="http://php.net/manual/en/datetime.configuration.php"]Datetime configuration[/url]
[eluser]stowell48[/eluser]
[quote author="pickupman" date="1290585726"]Make sure you have the correct timezone setting in your php.ini file [url="http://php.net/manual/en/datetime.configuration.php"]Datetime configuration[/url][/quote] Awesome... Thanks for the help. Putting the correct timezone in the php settings did the trick.
[eluser]mike7418[/eluser]
In system/applications/config/config.php line 176 $config['log+threshold'] =1; by default. change to 0 if you do not want to see any errors until you get the site functioning correctly.
[eluser]InsiteFX[/eluser]
Add to index.php Code: // PHP 5.3 will BITCH without this! PyroCMS Development Team. InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |