bobmet820 / unraid-simplefeatures

Automatically exported from code.google.com/p/unraid-simplefeatures
0 stars 0 forks source link

PHP Template errors - date and time displays #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load main page of simpleFeatures under unRAID 5.0-rc12a
2. Ensure Parity check is NOT running, but HAS been completed
3. Info stating last parity check time has PHP warning.

What is the expected output? What do you see instead?
I would expect the correct date and time appropriately formatted. Instead I see 
a PHP error - "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 'Europe/London' for 'BST/1.0/DST' instead in 
/usr/local/emhttp/plugins/webGui/template.php on line 41 Tue Apr 9 14:47:47 
2013 BST (today), finding 0 errors. 
> Error code: user abort"

What version of the product are you using? On what operating system?
simpleFeatures 1.0.11 on unRAID 5.0-rc12a. Complete install of all 
simpleFeatures plugins from downloaded zip file.

Please provide any additional information below.
I think I saw this happening elsewhere under other pages, but I can't remember 
where.

Original issue reported on code.google.com by nick.woo...@gmail.com on 9 Apr 2013 at 2:07

Attachments:

GoogleCodeExporter commented 9 years ago
yup, same issue here

Original comment by alex...@gmail.com on 5 May 2013 at 4:33

GoogleCodeExporter commented 9 years ago
FIX: When following the instructions correctly on the forum for how to upgrade 
the problem goes away. I think it's the left-over php.ini file that gets left 
behind (in /boot/config/plugins/simpleFeatures/) if you don't delete the 
correct folders as suggested on the forum.

Delete the following files on your Flash drive:
/boot/extra/simpleFeatures* files
/boot/config/plugins/simpleFeatures/ folder

Reboot your unRAID server, it should stop reporting the timezone issue now.

Read the original instructions here: 
http://lime-technology.com/forum/index.php?topic=12698.msg120524#msg120524

Original comment by werne...@gmail.com on 5 May 2013 at 5:10

GoogleCodeExporter commented 9 years ago
Neither of those folders are on my flash drive - so I rebooted just incase that 
was the issue, but it's made no difference.

The instructions referenced state if you are upgrading from before 1.05... I 
upgraded from version 1.05

If you're migrating from an earlier version (before version 1.0.5), MAKE BACKUP 
OF FLASH DRIVE AS YOUR SETTINGS WILL BE DELETED!!!

For upgrade from 1.0.4 or below, you need to remove:
/boot/extra/simpleFeatures* files
/boot/config/plugins/simpleFeatures/ folder

Original comment by nick.woo...@gmail.com on 7 May 2013 at 9:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had the same problem, in addition, the web UI would crash (until reboot) when 
trying to change the timezone via the settings page. Tried the above solution, 
didn't help in my case either (no upgrade, I had a fresh install of 
simplefeatures).

I did however find a solution, maybe it helps anyone else as well:
Seems like in my case the simplefeatures webserver plugin wasn't installed 
properly due to a missing dependency. I followed what this guy did: 
http://lime-technology.com/forum/index.php?topic=19508.msg232982#msg232982 (see 
reply #220) and now everything works smoothly, I can set the correct timezone 
and those nasty strftime()-Warnings don't show up anymore.

Original comment by mtthsf...@gmail.com on 7 May 2013 at 9:25

GoogleCodeExporter commented 9 years ago
OK I've rebooted again. Made no difference.

I've then followed the instructions suggested in post #5 for amending the 
SQLLite package. 
Rebooted again.

Now everything seems to be working... no PHP time errors on the main page or on 
the Date & Time settings.

Thanks.

Original comment by nick.woo...@gmail.com on 7 May 2013 at 10:39