Disable warnings in EmHTTP?


Recommended Posts

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.

Link to comment
  • 1 month later...

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.

Link to comment

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.

Link to comment

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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.