Automatic Posted March 27, 2013 Share Posted March 27, 2013 Simple Features keeps spewing out:- Warning: strftime(): 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/New_York' for 'EDT/-4.0/DST' instead in /usr/local/emhttp/plugins/webGui/template.php Which is annoying, and, it's only a warning. I can suppress the error by manually adding my timezone to the php file using this, however, considering the fact the PHP files are redownloaded on restart & reapplied it doesn't really help much. Considering, after all, it is just a warning and not an error, how do I disable warnings? I couldn't find any config option anywhere. Quote Link to comment
deva1983 Posted May 7, 2013 Share Posted May 7, 2013 I'm also interested in getting this solved/hidden ... Quote Link to comment
lainie Posted May 7, 2013 Share Posted May 7, 2013 I'm using an older version of the SimpleFeatures Webserver plugin that used lighttpd 1.4.30 & PHP 5.3.10... so your fix may be different. When I view the Main unRAID web Settings page, then click the Web Server icon, I see that my PHP configuration location is /boot/config/plugins/sf_webserver/php/php.ini Whatever changes I make to /boot/config/plugins/sf_webserver/php/php.ini (for instance, date/timezone settings) are reapplied every reboot. I also have a /etc/httpd/php.ini file, but it gets its settings from the php.ini file on my flash drive. Do the newer versions really re-download everything on every reboot? That sounds inefficient. Quote Link to comment
itimpi Posted May 7, 2013 Share Posted May 7, 2013 Do the newer versions really re-download everything on every reboot? That sounds inefficient. everything is not re-downloaded - previous downloads are saved. However the downloads need installing every boot over the virgin unRAID system. Quote Link to comment
lainie Posted May 8, 2013 Share Posted May 8, 2013 Looks like this newer version of SimpleFeatures Web Server is looking for php.ini in the "/boot/config/simpleFeatures/" directory. Slightly different path from my older version. Do you have a "/boot/config/simpleFeatures/php.ini" file? If so, edit that file with the "Americas/New_York" or your appropriate time zone setting. That should keep your php settings persistent through reboots. Quote Link to comment
speeding_ant Posted May 8, 2013 Share Posted May 8, 2013 If you have a timezone set in unRAID, the plugin should automatically insert that timezone into the php.ini file. If not, meh, and edit it manually Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.