vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Problem about upgrading 4.2.2 to 4.2.2 pl4 (https://vborg.vbsupport.ru/showthread.php?t=316717)

suvari1794 01-17-2015 06:52 AM

Problem about upgrading 4.2.2 to 4.2.2 pl4
 
Hi,
When upgrade is done, I can't enter admincp page. And there are many of errors in forum pages like that;
Quote:

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

Dave 01-17-2015 08:08 AM

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

Quote:

Originally Posted by ForceHSS (Post 2532898)
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

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


ForceHSS 01-17-2015 10:33 AM

Quote:

Originally Posted by ozzy47 (Post 2532899)
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

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


I did point out the time zone only in my post above as I said the screenshot and the info above it
Quote:

Originally Posted by ForceHSS (Post 2532898)
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


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01156 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete