vb.org Archive

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

UncleGrundle 10-15-2013 03:26 AM

4.2.2 error after upgrade.
 
Just upgraded to VB4 4.2.2 and I am receiving the following error message:

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 '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
And when I try to access the admin control panel I get this:

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 '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
Please help!

ozzy47 10-15-2013 03:31 AM

See this post, http://www.vbulletin.com/forum/forum...25#post4000425

UncleGrundle 10-15-2013 03:43 AM

Quote:

Originally Posted by ozzy47 (Post 2453483)

Thanks for replying. Where do I add this code to config.php?

PHP 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 


ozzy47 10-15-2013 03:47 AM

You can, but it should be set at the server level in the php.ini file.

UncleGrundle 10-15-2013 04:07 AM

Dang, now I have this error:

Warning: Declaration of vBCms_Item_Content::setItemId() should be compatible with that of vB_Model::setItemId() in ..../packages/vbcms/item/content.php on line 26

Any ideas?

ozzy47 10-15-2013 09:37 AM

Read the instructions here, http://www.vbulletin.com/forum/forum...66#post4000466

UncleGrundle 10-15-2013 12:10 PM

Quote:

Originally Posted by ozzy47 (Post 2453528)

Thanks again for the reply. I do have CMS running.

I did the following and I still have that error message.
1. Use the option provided in 4.2.2 to suppress these messages if you have products or hooks in use that still generate errors.

Goto : Settings > Options > Plugin/Hook System and then set the "PHP Compatability" setting to 'Yes'.

This will change the error reporting options within vBulletin on the first hook that is run.

If you have vBulletin Suite (i.e. Blogs / CMS) this setting will pretty much disable all the new Strict & Deprecated messages anywhere.
--------------- Added [DATE]1381866578[/DATE] at [TIME]1381866578[/TIME] ---------------

Can someone help me with this please? Thanks again in advance!

ozzy47 10-15-2013 07:19 PM

I would try option #2 as well.

immediate 10-16-2013 11:10 AM

Upgrade your PHP. I upgraded from 5.2 to 5.4 and everything's fine now.

gsmlover4u 10-17-2013 06:47 AM

for this error cant login in admincp is it php error ?
can login in admincp after upgrade php ?

ozzy47 10-17-2013 09:34 AM

What's the error you are receiving?

gsmlover4u 10-17-2013 10:04 AM

when i try to login in admincp i am receaving this error

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 '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
when i open forum i am receavig this error

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 '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

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: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at ..../includes/class_core.php:5745) in ..../includes/facebook/facebook.php on line 49

ozzy47 10-17-2013 10:10 AM

Did you follow the link in the post I already posted.

Quote:

Originally Posted by ozzy47 (Post 2453483)


gsmlover4u 10-17-2013 10:15 AM

yes my host said thay change time zone
but my php is 5.2
and i put this line in config file
Quote:

error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));

ozzy47 10-17-2013 10:17 AM

What about the instructions here, http://www.vbulletin.com/forum/forum...66#post4000466

gsmlover4u 10-17-2013 10:22 AM

i read sir but how to solve i cant login in admincp

--------------- Added [DATE]1382009033[/DATE] at [TIME]1382009033[/TIME] ---------------

sir can you edit class_core.php for me and upload here

ozzy47 10-17-2013 10:27 AM

No, that can not be done, the files contain your customer info.

Just follow the instructions, it tells you specifically how to do it.

Maybe try to disable your hooks to see if you can log into the ACP.

Open your config.php and below<?php add this line:

PHP Code:

 define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2


gsmlover4u 10-17-2013 10:31 AM

i did as you said when click on login then show me this error
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 '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

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at ..../includes/class_core.php:5745) in ..../includes/facebook/facebook.php on line 49

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at ..../includes/class_core.php:5745) in ..../includes/facebook/facebook.php on line 49
Unable to add cookies, header already sent.
File: /home/******/public_html/includes/class_core.php
Line: 5745

ozzy47 10-17-2013 10:53 AM

Then your date is still not set right, regardless of what the host says.

Add this to your includes/config.php

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

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


gsmlover4u 10-17-2013 11:16 AM

anywhere in config file ? or there is spacific place to put these code in config file ?

ozzy47 10-17-2013 11:19 AM

It don't say, but I would try it right below this.

Code:

/*-------------------------------------------------------*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
| If you get any errors while attempting to connect to    |
| MySQL, you will need to email your webhost because we  |
| cannot tell you the correct values for the variables    |
| in this file.                                          |
\*-------------------------------------------------------*/


gsmlover4u 10-17-2013 11:24 AM

i put this code and this error appear

Quote:

Parse error: syntax error, unexpected '[' in /home/****/public_html/includes/config.php on line 23

ozzy47 10-17-2013 11:34 AM

Try removing [date] from the code.

gsmlover4u 10-17-2013 11:38 AM

i did and remove [date]
apper same error
Quote:

Parse error: syntax error, unexpected T_STRING in /home/*******/public_html/includes/config.php on line 23

ozzy47 10-17-2013 11:42 AM

I don't know then, many users have had no issues with that code, I would wait for someone else, or post I'm the paid section here, or open a ticket at vb.com

autoescala 10-17-2013 01:38 PM

its safe do the upgrade to 4.2.2 ? from 4.2.1 or better I wait to 4.2.3 because I see a lot of complains in this forum and others.

There are a lot of bugs in this 4.2.2 version, I'm scary

ForceHSS 10-17-2013 06:06 PM

Quote:

Originally Posted by autoescala (Post 2454151)
its safe do the upgrade to 4.2.2 ? from 4.2.1 or better I wait to 4.2.3 because I see a lot of complains in this forum and others.

There are a lot of bugs in this 4.2.2 version, I'm scary

there are a few things to be updated but thats not hard to do if you need help with this pm me

Paul M 10-17-2013 06:48 PM

Quote:

Originally Posted by gsmlover4u (Post 2454115)
yes my host said thay change time zone

Whatever your host says they did, they did not set a correct timezone in php.ini, if they had, you would not get that error.

gsmlover4u 10-18-2013 03:15 AM

thanks to all
forum is working fine now
after update php 5.2 to 5.4

autoescala 10-20-2013 06:03 PM

Quote:

Originally Posted by ForceHSS (Post 2454233)
there are a few things to be updated but thats not hard to do if you need help with this pm me

That means is better to wait for another release without problems ??

ForceHSS 10-20-2013 07:03 PM

Quote:

Originally Posted by autoescala (Post 2454948)
That means is better to wait for another release without problems ??

Yes this version has some but not hard to fix them

Krusty1231 10-29-2013 02:43 AM

Oh man.

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

So the correct thing to do is contact my host right?

ForceHSS 10-29-2013 03:02 AM

Quote:

Originally Posted by Krusty1231 (Post 2456963)
Oh man.

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

So the correct thing to do is contact my host right?

you need to add the fix to your php.ini file

Krusty1231 10-29-2013 03:14 AM

1 Attachment(s)
Quote:

Originally Posted by ForceHSS (Post 2456966)
you need to add the fix to your php.ini file

Hmmm. OK thanks for the tip, I went to make the change in my php.ini through my cpanel

I followed what Hostgator has set for instructions.

Code:

Making Changes via cPanel's php.ini QuickConfig

You can also make changes to php.ini via the "php.ini QuickConfig" utility in the "Software/Services" section of your cPanel.

    Login to cPanel.
    Click on php.ini QuickConfig in the "Software/Services" section.
    Enable QuickConfig if not already enabled.
    Change the settings that you want to change.
    Click the Save Changes button to save your changes.

I do not see where to make the change.

I'm sort of stumped.

I do have a ticket in asking them what the issue is, but am trying to learn/figure things out for myself.

I tried all the things in this thread, and none of them have made any diff. I went with what Paul said about my timezone not being changed.

Still waiting to hear back from hostgator.

Thanks tho.

Krusty1231 10-29-2013 04:45 AM

Well, I have not heard back from Hostgator yet.

I took the 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 added it to my php.ini file and reuploaded it.

The issue is gone.

I added that code to the very bottom of my php.ini file - is that an OK place to put it, or should it go somewhere specific in the ini file?

So now I can't access my admincp

Quote:

Warning: Assigning the return value of new by reference is deprecated in ..../global.php(29) : eval()'d code on line 141
Unable to add cookies, header already sent.
File: /home2/jerry/public_html/includes/functions_log_error.php
And am getting this error at the top of my forum.

Quote:

Warning: Assigning the return value of new by reference is deprecated in ..../global.php(29) : eval()'d code on line 141
*sigh.

I added back:

define('DISABLE_HOOKS', true);

Now I can access everything as normal.

But now what? As soon as I turn my mods on - blamo I get the above errors.

ozzy47 10-29-2013 10:08 AM

Disable your mods, remove the
Code:

define('DISABLE_HOOKS', true);
Then re enable them one by one till you find the culprit.

Krusty1231 10-29-2013 10:22 AM

Quote:

Originally Posted by ozzy47 (Post 2457006)
Disable your mods, remove the
Code:

define('DISABLE_HOOKS', true);
Then re enable them one by one till you find the culprit.

Ha Ha. I did just that Sir. One by one....took me awhile to find it.

I had an old outdated mod installed that functioned fine before, but not now.

vB Comment 1.0

The upgrade did not agree with it. It's a mod I can do without. I got rid of it.

Now if I can only figure out my Style Variable errors I will be good to go.

Thanks for the help.

ozzy47 10-29-2013 10:29 AM

Glad at least that is sorted. :)

ForceHSS 10-29-2013 08:38 PM

Quote:

Originally Posted by Krusty1231 (Post 2456980)
Well, I have not heard back from Hostgator yet.

I took the 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 added it to my php.ini file and reuploaded it.

The issue is gone.

I added that code to the very bottom of my php.ini file - is that an OK place to put it, or should it go somewhere specific in the ini file?

Adding it to the bottom of the php.ini is correct

autoescala 01-27-2014 11:29 AM

I upgrade to 4.22 I disable all mods by hooks = true and when I try to login in my admin panel appears white screen.

My php was 4.4, what can i do ?

I upgrade from 4.21 to 4.22 because I had some problems with php 4.4 on my hosting.

Any advice please?

Best Regards

--------------- Added [DATE]1390825999[/DATE] at [TIME]1390825999[/TIME] ---------------

EDIT: SOLVED

I don't do well the disable hooks :)

Best Regards


All times are GMT. The time now is 05:55 PM.

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.02052 seconds
  • Memory Usage 1,895KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete