Author Topic: When opening RC=> pink banner "Server Error !"=>vanishes=>OK ???  (Read 3638 times)

Offline smallhagrid

  • Jr. Member
  • **
  • Posts: 12
As the title says, when I open RC on my hosting, very briefly a pink banner appears that says "Server Error !"
Then it simply vanishes and all seems to work OK.
It is freshly installed (0.80 ?).

Does this matter - can it easily be fixed - or should I simply continue to ignore it ???

Thanks.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: When opening RC=> pink banner "Server Error !"=>vanishes=>OK ???
« Reply #1 on: August 17, 2012, 03:31:18 PM »
Whats in the RoundCube error log?

Offline smallhagrid

  • Jr. Member
  • **
  • Posts: 12
Re: When opening RC=> pink banner "Server Error !"=>vanishes=>OK ???
« Reply #2 on: August 17, 2012, 03:53:05 PM »
Many variations of this:

Code: [Select]
UTC] PHP Warning:  date() [<a href='function.date'>function.date</a>]: 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/Chicago' for 'CDT/-5.0/DST' instead in /program/include/rcube_mdb2.php on line 606
But with differing line numbers mentioned.
« Last Edit: August 17, 2012, 03:56:04 PM by smallhagrid »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: When opening RC=> pink banner "Server Error !"=>vanishes=>OK ???
« Reply #3 on: August 17, 2012, 04:08:28 PM »
You need to set date.timezone in the php.ini.

Offline smallhagrid

  • Jr. Member
  • **
  • Posts: 12
Re: When opening RC=> pink banner "Server Error !"=>vanishes=>OK ???
« Reply #4 on: August 17, 2012, 04:18:01 PM »
Thanks.
I just looked and there is no entry for date.timezone in my php.ini .

Would you please give me the exact line(s) I need to add to set it for EST ?

The entry it is adding on it's own for ''America/Chicago' for 'CDT/-5.0/DST'' is fine - but I've no idea what to do with php.ini to make it so minus the error banner...

Thanks.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: When opening RC=> pink banner "Server Error !"=>vanishes=>OK ???
« Reply #5 on: August 17, 2012, 04:32:26 PM »
You should just need to add:
Code: [Select]
date.timezone = ''America/Chicago"
To your php.ini and restart your web server.

Offline smallhagrid

  • Jr. Member
  • **
  • Posts: 12
Re: When opening RC=> pink banner "Server Error !"=>vanishes=>OK ???
« Reply #6 on: August 17, 2012, 04:49:35 PM »
Thanks, I added date.timezone = ''America/Chicago"; logged out and back in and still get the pink banner.

The error logs says:

[17-Aug-2012 20:44:54 UTC] PHP Warning:  strtotime() [<a href='function.strtotime'>function.strtotime</a>]: 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.

I looked up some info @ php.net and just changed it to read:
date.timezone = "America/New_York"

Same pink banner upon log-in.

Last log entry reads:
[17-Aug-2012 21:29:55 UTC] PHP Warning:  date() [<a href='function.date'>function.date</a>]: 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.
« Last Edit: August 17, 2012, 05:37:12 PM by smallhagrid »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: When opening RC=> pink banner "Server Error !"=>vanishes=>OK ???
« Reply #7 on: August 17, 2012, 09:36:02 PM »
Did you restart your web server after you made the change?