View Full Version : 4.2.2 error after upgrade.
UncleGrundle
10-15-2013, 03:26 AM
Just upgraded to VB4 4.2.2 and I am receiving the following error message:
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:
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/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4000411-common-issues-4-2-2?p=4000425#post4000425
UncleGrundle
10-15-2013, 03:43 AM
See this post, http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4000411-common-issues-4-2-2?p=4000425#post4000425
Thanks for replying. Where do I add this code to config.php?
[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/vbulletin-announcements/vbulletin-announcements_aa/4000121-vbulletin-4-2-2-full-has-been-released?p=4000466#post4000466
UncleGrundle
10-15-2013, 12:10 PM
Read the instructions here, http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4000121-vbulletin-4-2-2-full-has-been-released?p=4000466#post4000466
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 1381866578 at 1381866578 ---------------
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
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
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.
See this post, http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4000411-common-issues-4-2-2?p=4000425#post4000425
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
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 (http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4000121-vbulletin-4-2-2-full-has-been-released?p=4000466#post4000466)
gsmlover4u
10-17-2013, 10:22 AM
i read sir but how to solve i cant login in admincp
--------------- Added 1382009033 at 1382009033 ---------------
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:
define('DISABLE_HOOKS', true);
So it looks like this:
<?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
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
[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.
/*-------------------------------------------------------*\
| ****** 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
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
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
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
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
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
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
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
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.
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:
[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
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.
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
define('DISABLE_HOOKS', true);
Then re enable them one by one till you find the culprit.
Krusty1231
10-29-2013, 10:22 AM
Disable your mods, remove the
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
Well, I have not heard back from Hostgator yet.
I took the 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.583333I 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 1390825999 at 1390825999 ---------------
EDIT: SOLVED
I don't do well the disable hooks :)
Best Regards
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.