vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   errors after upgrade (https://vborg.vbsupport.ru/showthread.php?t=307899)

Big Country 02-04-2014 05:13 AM

errors after upgrade
 
pops up over & over

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 'America/Chicago' for 'CST/-6.0/no 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 'CST/-6.0/no DST' instead in ..../includes/functions.php on line 5104
and

Quote:

Invalid Redirect URL (http://pa.com/forum.php)
after I log in
:confused:

all I see when I try logging in to adminCP is the 1st message

ozzy47 02-04-2014 10:31 AM

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.

Big Country 02-04-2014 01:56 PM

Quote:

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

where would I turn display errors off? tried finding that section of code in the INIT.PHP.

no go, only found
Quote:

// Force PHP 5.3.0+ to take time zone information from OS
if (version_compare(phpversion(), '5.3.0', '>='))
{
@date_default_timezone_set('America/Los_Angeles');
rest of the code was not there. this is in the includes folder.

ForceHSS 02-04-2014 02:38 PM

You put the fix at the bottom of the php.ini making it a new line

Big Country 02-05-2014 01:28 AM

still getting errors

found INIT.PHP
Quote:

// Force PHP 5.3.0+ to take time zone information from OS
if (version_compare(phpversion(), '5.3.0', '>='))
{
@date_default_timezone_set('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;
}

// start the page generation timer
define('TIMESTART', microtime(true));

// set the current unix timestamp
define('TIMENOW', time());


error is now
Quote:

Parse error: syntax error, unexpected ':' in /home1/****/public_html/includes/init.php on line 32


ForceHSS 02-05-2014 02:04 AM

Quote:

Originally Posted by Big Country (Post 2479089)
still getting errors

found INIT.PHP


error is now

You need to put the fix in the php.ini not in init.php file

Big Country 02-05-2014 02:06 AM

Quote:

Originally Posted by ForceHSS (Post 2479093)
You need to put the fix in the php.ini not in init.php file

where do I find that one? can't see it in the includes folder:confused:

not poppoing up under search

ForceHSS 02-05-2014 02:09 AM

Its not in the includes folder if you have skype pm me can explain and help u

Big Country 02-05-2014 02:10 AM

Quote:

Originally Posted by ForceHSS (Post 2479095)
Its not in the includes folder if you have skype pm me can explain and help u

no skype sadly.

ForceHSS 02-05-2014 02:13 AM

Then download it


All times are GMT. The time now is 03:52 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.01049 seconds
  • Memory Usage 1,749KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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