View Full Version : Problem about upgrading 4.2.2 to 4.2.2 pl4
suvari1794
01-17-2015, 06:52 AM
Hi,
When upgrade is done, I can't enter admincp page. And there are many of errors in forum pages like that;
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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in ..../includes/functions.php on line 4918
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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in ..../includes/functions.php on line 5110
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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in ..../includes/functions.php on line 5110
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 'Europe/Helsinki' for 'EET/2.0/no DST' instead in ..../includes/functions.php on line 5110
ForceHSS
01-17-2015, 06:59 AM
update to 4.2.3 as the fixes are in that version or check my sig for the fixes if you only want to update to the version you are using now
You can fix this by setting the date.timezone variable in the php.ini file.
ForceHSS
01-17-2015, 08:46 AM
As I said my sig has all fixes post 4 see screenshot and read info above
ozzy47
01-17-2015, 09:38 AM
As I said my sig has all fixes post 4 see screenshot and read info above
You do not need to do the edits you are showing there. All you need to do is add the define('SKIP_DS_ERRORS', true); line to the includes/config.php file. This turns off the extra error reporting in php 5.3 & 5.4 (for strict & deprecated warnings), but will allow other important errors to show. That is for anything below 4.2.3
That will sort the issues you point out:
packages\vbforum\item
socialgroupmessage.php
socialgroupdiscussion.php
includes
class_core.php
Editing the class_core.php file doesn't cover up errors though. It changes the vBulletin Error Handler so it doesn't catch warnings, notices, or deprecated notices. These will still be properly logged in your php error log but if they are not displayed on the screen there is no adverse affect on the application because they are informational not errors.
As for this one:
clientscript\yui\uploader\assets
uploader
That is already add into v4.2.2 pl2 and beyond, so no need for that anymore.
As far as the timezone issue.
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 (http://php.net/manual/en/function.date-default-timezone-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:
[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
ForceHSS
01-17-2015, 10:33 AM
You do not need to do the edits you are showing there. All you need to do is add the define('SKIP_DS_ERRORS', true); line to the includes/config.php file. This turns off the extra error reporting in php 5.3 & 5.4 (for strict & deprecated warnings), but will allow other important errors to show. That is for anything below 4.2.3
That will sort the issues you point out:
packages\vbforum\item
socialgroupmessage.php
socialgroupdiscussion.php
includes
class_core.php
Editing the class_core.php file doesn't cover up errors though. It changes the vBulletin Error Handler so it doesn't catch warnings, notices, or deprecated notices. These will still be properly logged in your php error log but if they are not displayed on the screen there is no adverse affect on the application because they are informational not errors.
As for this one:
clientscript\yui\uploader\assets
uploader
That is already add into v4.2.2 pl2 and beyond, so no need for that anymore.
As far as the timezone issue.
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 (http://php.net/manual/en/function.date-default-timezone-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:
[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
I did point out the time zone only in my post above as I said the screenshot and the info above it
As I said my sig has all fixes post 4 see screenshot and read info above
ozzy47
01-17-2015, 10:36 AM
But all the jibberish you link to is not needed, only the line in the config file.
ForceHSS
01-17-2015, 10:42 AM
Maybe so, but I leave the info there so if anyone wants to check to see if the fixes are in place, then they will know where to look it will also help the ones who have updated to 4.2.2 before them fixes were put into place
ozzy47
01-17-2015, 10:44 AM
What fixes, the stuff you link to is not supported by vBulletin or IB, only the addition of the line to the config file is necessary, and supported method of resolving the warnings.
ForceHSS
01-17-2015, 10:57 AM
If not supported then why where they added
ozzy47
01-17-2015, 11:09 AM
They were not added, just the supressing of the warnings was re enabled. I would suggest doing a little research before assuming. :)
ForceHSS
01-17-2015, 11:21 AM
Just checked your right have not been added will remove the link in my sig
ozzy47
01-17-2015, 11:28 AM
Believe me, I am not trying to diss you, it's just we need to get the right info out to the masses, rather then them editing files when it is not necessary. :)
ForceHSS
01-17-2015, 11:30 AM
no problem
suvari1794
01-17-2015, 04:42 PM
You do not need to do the edits you are showing there. All you need to do is add the define('SKIP_DS_ERRORS', true); line to the includes/config.php file. This turns off the extra error reporting in php 5.3 & 5.4 (for strict & deprecated warnings), but will allow other important errors to show. That is for anything below 4.2.3
Thanks dude, it worked :up:
ozzy47
01-17-2015, 04:48 PM
Glad to hear. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.