Announcement

Collapse
No announcement yet.

Upgrade problem functions.php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Zachery
    replied
    Then you can use the secondary option, to disable the errors, which is available in the 4.2.2 release thread. The version is not buggy, the version enabled displaying errors.

    Leave a comment:


  • psypher
    replied
    I added the php.ini file and the errors are no longer on my main pages but I still cannot access my admin control panel, it is full of the time zone errors and will not load. Upgrading to this buggy version was a huge mistake.

    Leave a comment:


  • fholbert
    replied
    Good fix guys!!!

    I upgraded 4.08 to 4.2.2 today and got the
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings... error message.
    I spent an hour looking for the file php.ini you speak of with no luck. I finally called HostGator support and was told there isn't a php.ini but he was happy to make one for me and put it in /. Two minutes later there with was. I went to the first line of php.ini and added: <?php date.timezone="Greenwich" Issue resolved! To be honest I was kind of surprised it was that easy to fix.

    Leave a comment:


  • Wayne Luke
    replied
    Originally posted by bogley View Post
    Can you tell me exactly where you added this line of code?

    Thanks
    Anywhere after the line with <?php

    Leave a comment:


  • bogley
    replied
    Originally posted by willy888 View Post
    Thanks a lot
    I add in config php this line and all ok now
    Code:
    date_default_timezone_set ('America/Los_Angeles');
    Can you tell me exactly where you added this line of code?

    Thanks

    Leave a comment:


  • willy888
    replied
    I try to find this php.ini file and I didn't
    Only in cpanel there is a php.ini QuickConfig and I can't change the code

    Leave a comment:


  • willy888
    replied
    Thanks a lot
    I add in config php this line and all ok now
    Code:
    date_default_timezone_set ('America/Los_Angeles');

    Leave a comment:


  • Wayne Luke
    replied
    This is a server configuration issue and should be set at the server level in the php.ini file. However you can override the issue by setting a locale in your config.php file.

    See: http://php.net/manual/en/function.da...mezone-set.php

    You would use something like:

    date_default_timezone_set ('America/Los_Angeles');

    You can find all timezones here: http://www.php.net/manual/en/timezones.php

    Really should be set in the php.ini file in this section of code:
    Code:
    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    date.timezone = "America/Los_Angeles"
    
    ; http://php.net/date.default-latitude
    date.default_latitude = 34.3981
    
    ; http://php.net/date.default-longitude
    date.default_longitude = 118.1358
    
    ; http://php.net/date.sunrise-zenith
    ;date.sunrise_zenith = 90.583333
    
    ; http://php.net/date.sunset-zenith
    ;date.sunset_zenith = 90.583333
    Turning display errors off would also eliminate the problem. They aren't errors, simply warnings. They are due to how PHP has changed over the years. Previous to vBulletin 4.2.2, they were suppressed because vBulletin didn't know how to deal with them.

    Leave a comment:


  • Carmichael
    replied
    I have the same problem. I upgraded and now my site is offline and everyone gets this error. Anyone have a solution to this problem. Where are the vbulletin techs.

    Code:
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 ..../includes/functions.php on line 4912
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 ..../includes/functions.php on line 5104

    Leave a comment:


  • willy888
    replied
    I made the mistake to upgrade to 4.2.2 and I have all day my site off
    Is there any solution to this problem , I can't login to admin panel either .
    What can I do ?

    Leave a comment:


  • boggseric
    replied
    Found in another thread, I added:
    date.timezone="America/New_York"

    to my php.ini file and started apache and the error when away.
    ​Running php 5.2.17​
    Last edited by boggseric; Wed 9 Oct '13, 8:40am. Reason: added php verison I'm running

    Leave a comment:


  • Avimelech
    replied
    Same here after uploading 4.2.2 and upgrading. If there is not a reply soon I'll have to go back to the 4.2.1 I had going.

    This has never happened to me with a vbulletin upgrade, but I guess now that I am on the previous major version (4 instead of 5), this is what can happen?

    Leave a comment:


  • [RDH]Razor[OT]
    replied
    Same issue! What has to be done to fix this?

    Code:
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 4912
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5038
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5038
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5050
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104
    
    Warning: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../modules/minicalendar.php on line 17
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Los_Angeles' for 'PDT/-7.0/DST' instead in ..../includes/functions.php on line 5104

    Leave a comment:


  • babyinternet
    replied
    Same error. How to fix ?

    Leave a comment:


  • willy888
    started a topic Upgrade problem functions.php

    Upgrade problem functions.php

    My site is ultragreek.com
    I upgrate from 4.1.2. to 4.2.2 and I have full all page with this error
    Code:
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 ..../includes/functions.php on line 4912
    
    Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 ..../includes/functions.php on line 5104
    
    Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 ..../includes/functions.php on line 5104
    
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 ..../includes/functions.php on line 5104
    I can't login to admincp

    Code:
    Warning: Cannot modify header information - headers already sent by (output started at ..../includes/class_core.php:5745) in ..../includes/functions.php on line 5588
    No cookies
    file: ....../forums/includes/class_core.php
    line: 5745
    I did reupload the new files and make upgrade again but I have the same error
    Last edited by willy888; Wed 9 Oct '13, 1:12am.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X