vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Update to 4.2.2 blew up my board. (https://vborg.vbsupport.ru/showthread.php?t=303172)

eboggs_jkvl 10-09-2013 02:03 PM

Update to 4.2.2 blew up my board.
 
I've done tons of these updates without a problem but this one blew up my site.

I am getting these error messages on my forum site:

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/New_York' for 'EDT/-4.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/New_York' for 'EDT/-4.0/DST' instead in ..../includes/functions.php on line 5104

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 10019

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 10308

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 10689

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 11251

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 11676

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 12150

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 12677

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 14825

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 15516

Warning: Assigning the return value of new by reference is deprecated in ..../includes/garage_func_var.php on line 17521

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/New_York' for 'EDT/-4.0/DST' instead in ..../forum.php on line 676
************************************************** *******************

I use a very weird time zone to catch spammers (Katmandu or something).

What the heck is wrong with the update and what do I need to do to get my site back up?????????

Heck, I can't even get my admin CP to come up!!!!!!! I get these errors instead:

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/New_York' for 'EDT/-4.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/New_York' for 'EDT/-4.0/DST' instead in ..../includes/functions.php on line 5104

I NEED HELP HERE!

Elmer

I'm at panic mode now!

kh99 10-09-2013 02:10 PM

Try going to Plugin/Hook System in the options and setting "PHP Compatability" to Yes.

Edit: actually, that only will work on plugins. You should really edit file includes/garage_func_var.php and look for things like:
Code:

$var = & new something(....

it's the "= &" or "=&" you're looking for. You need to remove the "&".

eboggs_jkvl 10-09-2013 02:30 PM

I can't get in to the admin CP. I get 4 warning messages and that's it.

Quote:

Heck, I can't even get my admin CP to come up!!!!!!! I get these errors instead:

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/New_York' for 'EDT/-4.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/New_York' for 'EDT/-4.0/DST' instead in ..../includes/functions.php on line 5104
I get 3 of the 5104 warnings.

kh99 10-09-2013 02:45 PM

Just out of curiosity, did you change your php version at all, or did you just upgrade?

I don't have any specific knowledge of problems with 4.2.2, I was just trying to read the errors and figure out if there's a fix. You might look at vbulletin.com if you haven't already, if you're having an issue then it's likely others are having the same problem.

eboggs_jkvl 10-09-2013 02:49 PM

FIXED!!!!!!!!!!!!!!!!!!! I called my IT son who is on furlough from NASA and he:

Found in another thread, I added:
date.timezone="America/New_York"

to my php.ini file and started apache and the error went away.
Running php 5.2.17



Kids are good to have around!!!!!


I also had to turn off 1 product with this update but that was an easy thing.

Elmer

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

Quote:

Originally Posted by kh99 (Post 2451292)
Just out of curiosity, did you change your php version at all, or did you just upgrade?

I don't have any specific knowledge of problems with 4.2.2, I was just trying to read the errors and figure out if there's a fix. You might look at vbulletin.com if you haven't already, if you're having an issue then it's likely others are having the same problem.

4.2.2 is blowing up sites with glorious abandon! I did a straight update to the vBulletin as I was within the range of acceptable php 5.2.1.7 version.

Elmer

CarlitoBrigante 10-09-2013 09:45 PM

We have been doing many upgrades today. The issue is not a change in the php configuration, but a change in the vBulletin error handler. I think there is a bug in it - did not have time to explore it further, I just swapped back the old error handling code - which makes it ignore the settings in display_error.

Of course, these warnings show issues you should take care of, but they were there also before you installed 4.2.2, are not immediately critical things, usually, AND should not be shown if display_errors is set to off.

eboggs_jkvl 10-09-2013 09:55 PM

Quote:

Originally Posted by CarlitoBrigante (Post 2451435)
We have been doing many upgrades today. The issue is not a change in the php configuration, but a change in the vBulletin error handler. I think there is a bug in it - did not have time to explore it further, I just swapped back the old error handling code - which makes it ignore the settings in display_error.

Of course, these warnings show issues you should take care of, but they were there also before you installed 4.2.2, are not immediately critical things, usually, AND should not be shown if display_errors is set to off.

All sounds reasonable. I had it running just fine. I did an update. It shouldn't have screwed up and started showing warnings if all I did was an update.

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

Now I can't upload attachments with the new update. This is total crap. I guess I need to start a new thread to get this new issue solved.

Elmer

meaters 10-09-2013 09:59 PM

Shit...so many people having problems after this upgrade...

ozzy47 10-09-2013 10:19 PM

Most of what I have seen is due to mods,, not the software it's self.

eboggs_jkvl 10-09-2013 10:25 PM

Quote:

Originally Posted by ozzy47 (Post 2451458)
Most of what I have seen is due to mods,, not the software it's self.


I turned all mods off. It still will not upload an attachment.

Elmer

bugzy 10-09-2013 10:25 PM

I had same issue and fixed it by editing my /etc/php.ini

Added this anywhere in php.ini and restarted apache, you probably need to use New York
PHP Code:

date.timezone="America/Los_Angeles" 


eboggs_jkvl 10-09-2013 10:28 PM

Quote:

Originally Posted by bugzy (Post 2451463)
I had same issue and fixed it by editing my /etc/php.ini

Added this anywhere in php.ini and restarted apache, you probably need to use New York
PHP Code:

date.timezone="America/Los_Angeles" 


I did that in post 5. Most of the issues cleared up. I'm now chasing a problem with the attachment uploads failing to upload.

Elmer

BGObsession 10-09-2013 10:38 PM

I've seen a handfull of 'great upgrade' comments and a ton of 'holy hell!' ones. They can't all be 'mod-related'. What bothers me intensely about vbulletin.com is that they put out an upgrade, ask people to post in the support thread, and then critical issues sit there unanswered for extended periods. You JUST rolled out an upgrade - they should be all over anyone having problems bending over backwards to help them resolve them.

It has taken us months to get 4.2.1 working correctly. No way am I upgrading any time soon. And honestly, despite having been a vbulletin customer for going on 10 years, I think we will strongly consider moving to another vendor the next time we really need to upgrade our software. My experience with the vbulletin Facebook App debacle earlier this year and watching the total lack of vbulletin response to complaints about a paid add-on that didn't work or perform as advertised was infuriating.

Paul M 10-09-2013 10:57 PM

Quote:

Originally Posted by CarlitoBrigante (Post 2451435)
a change in the vBulletin error handler. I think there is a bug in it

There is no bug in the error handler.

Paul M 10-09-2013 11:00 PM

Quote:

Originally Posted by BGObsession (Post 2451474)
I've seen a handfull of 'great upgrade' comments and a ton of 'holy hell!' ones. They can't all be 'mod-related'. .

Actually, yes they can.

Almost all are either mods, or server configuation (or both).
So far Ive only come across two that were actual code issues, and one of them wasnt posted anywhere, just logged directly in Jira.

BGObsession 10-09-2013 11:03 PM

So, what you're saying is, they aren't all mod-related :)

Paul M 10-09-2013 11:06 PM

Quote:

Originally Posted by BGObsession (Post 2451492)
So, what you're saying is, they aren't all mod-related :)

I believe that would be what this basically says, yes.

Quote:

Almost all are either mods, or server configuation (or both).

ozzy47 10-09-2013 11:06 PM

He said:

Almost all are either mods, or server configuation (or both).
So far Ive only come across two that were actual code issues, and one of them wasnt posted anywhere, just logged directly in Jira.[/quote]

eboggs_jkvl 10-09-2013 11:08 PM

OK, guys.... I'm not having issues with anything but the INABILITY to upload attachments. All the rest is fine.

If my server configuration worked with v4.2.1, what changed to make the configuration NOT work with 4.2.2? I didn't touch the server. I only updated the files contained in the update.

I can turn ALL of my mods off and I still can't upload an attachment.

BGObsession 10-09-2013 11:11 PM

Quote:

Originally Posted by Paul M (Post 2451494)
I believe that would be what this basically says, yes.

I'm really not trying to be snarky. I appreciate you're working through threads and trying to point folks having problems in the right direction.

Paul M 10-09-2013 11:14 PM

Quote:

I can turn ALL of my mods off and I still can't upload an attachment.
You should log a support ticket for that, I dont recall any particular changes to attachments.

ozzy47 10-09-2013 11:14 PM

Yeah, there is alot going on, thanks for understanding. :)

meaters 10-09-2013 11:52 PM

Paul, we all greatly appreciate your time and work but this upgrade really turned out more problematic that anyone had expected...errors popping everywhere after upgrade, templates broken.

CarlitoBrigante 10-10-2013 12:04 AM

Quote:

Originally Posted by Paul M (Post 2451486)
There is no bug in the error handler.

Paul, do not be so dismissive, it is silly. 5 forum upgrades today, all with display errors set to off and errors still displaying. Anyhow, I said "I think" in my post. If the error is not in the error handler, could be elsewhere.

ForceHSS 10-10-2013 12:11 AM

1 Attachment(s)
Quote:

Originally Posted by Paul M (Post 2451502)
You should log a support ticket for that, I dont recall any particular changes to attachments.

I get a error for attachments as well

meaters 10-10-2013 12:19 AM

Horrible

Vbulletin needs to release a fix for all these issues, this is no good

CarlitoBrigante 10-10-2013 01:05 AM

Quote:

Originally Posted by CarlitoBrigante (Post 2451525)
Paul, do not be so dismissive, it is silly. 5 forum upgrades today, all with display errors set to off and errors still displaying. Anyhow, I said "I think" in my post. If the error is not in the error handler, could be elsewhere.

OK, since I am a stupid bastard, instead of working on my stuff I decided to jump into it, and it looks like I was right. The implementation of the error_handler in vBulletin 4.2.2 is wrong, or at the very least, incomplete.

The final part of the new error handler, the one matching all errors not matched by previous cases, which means also deprecated errors (those most people in the forums have been having problems with) contains this:

Code:

default:
              if (error_reporting() OR ini_get('display_errors'))
              {

and vBulletin then proceeds to echo the error.

This means errors will be shown if error_reporting is enabled even if display errors is set to off. A correct implementation of an error_handler needs to follow the configuration settings specified on the server and react accordingly.

More on this here:

http://stackoverflow.com/questions/5...700117#5700117

I do not have the time to submit this to vBulletin's JIRA, so if you guys have the time, do it. I will submit only a trouble ticket for this.

ForceHSS 10-10-2013 01:10 AM

So I put up a fresh install for testing and the problem with attachments they are still there was just making sure the problem was not with my forums. VB needs to fix this problem now some kind of quick fix in the next hour this should of been tested before it was given out

CarlitoBrigante 10-10-2013 01:14 AM

And for forum owners, a possible solution to this is just to change this in includes/class_core.php line 5733

Code:

                      if (error_reporting() OR ini_get('display_errors'))
                      {
                              if (defined('DIR'))
                              {
                                      require_once(DIR . '/includes/functions_log_error.php');
                                      $message = "Warning: $errstr in $errfile on line $errline";
                                      log_vbulletin_error($message, 'php');
                              }

to this

Code:

                      if (error_reporting() OR ini_get('display_errors'))
                      {
                              if (defined('DIR'))
                              {
                                      require_once(DIR . '/includes/functions_log_error.php');
                                      $message = "Warning: $errstr in $errfile on line $errline";
                                      log_vbulletin_error($message, 'php');
                                if(!ini_get('display_errors')) return;
                              }

This is a very rushed out solution, and I encourage you guys to double check it as I really really do not have the time (do not want to be mean, I just have been up in front of the monitor for 18 hours straight upgrading stuff already).

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

Guys, I can confirm I had a similar problem with attachments in a forum and it was, once again, caused by the issue I posted above about warnings coming out at the head of the AJAX response. Using the fix above and hiding the display errors made them work for me.

Not sure this covers also your cases (it does not seem to as some of you are reporting issues with fresh installs which should not contain deprecated messages), but just double check this is not what is causing the problem for you as well.

meaters 10-10-2013 01:42 AM

Quote:

Originally Posted by ForceHSS (Post 2451555)
VB needs to fix this problem now some kind of quick fix in the next hour this should of been tested before it was given out

Shame really, never imagined we could come to this.

ForceHSS 10-10-2013 02:04 AM

Quote:

Originally Posted by CarlitoBrigante (Post 2451557)
And for forum owners, a possible solution to this is just to change this in includes/class_core.php line 5733

Code:

              if (error_reporting() OR ini_get('display_errors'))
              {
                  if (defined('DIR'))
                  {
                      require_once(DIR . '/includes/functions_log_error.php');
                      $message = "Warning: $errstr in $errfile on line $errline";
                      log_vbulletin_error($message, 'php');
                  }

to this

Code:

              if (error_reporting() OR ini_get('display_errors'))
              {
                  if (defined('DIR'))
                  {
                      require_once(DIR . '/includes/functions_log_error.php');
                      $message = "Warning: $errstr in $errfile on line $errline";
                      log_vbulletin_error($message, 'php');
                                if(!ini_get('display_errors')) return;
                  }

This is a very rushed out solution, and I encourage you guys to double check it as I really really do not have the time (do not want to be mean, I just have been up in front of the monitor for 18 hours straight upgrading stuff already).

--------------- Added 10 Oct 2013 at 03:17 ---------------

Guys, I can confirm I had a similar problem with attachments in a forum and it was, once again, caused by the issue I posted above about warnings coming out at the head of the AJAX response. Using the fix above and hiding the display errors made them work for me.

Not sure this covers also your cases (it does not seem to as some of you are reporting issues with fresh installs which should not contain deprecated messages), but just double check this is not what is causing the problem for you as well.

tried that did not work so just went back to 4.2.1

Peafor 10-10-2013 01:05 PM

I've got this same problem and had to revert back to the old version to get my site back online.

I have two forums, both on the same server, both were version 4.2.0 patch level 3 and upgraded to 4.2.2

One upgraded perfectly without a problem, the other has this time zone error which locked me out of the admin panel. :o

eboggs_jkvl 10-10-2013 01:09 PM

Quote:

Originally Posted by ForceHSS (Post 2451528)
I get a error for attachments as well

Your error shows "undefined" on mouse hover, mine at least says "Upload Failed".:D

I'm 70 years old and I'm not a programmer. I can be "led" pretty easily but I don't "do" new code on my own.

I'm looking into updating my version of php and I hope this is the issue. If the problem is purely from the vb code, then I need new files or explicit instructions on what code to add/change in some mysterious php file.

Elmer

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

Quote:

Originally Posted by Peafor (Post 2451789)
I've got this same problem and had to revert back to the old version to get my site back online.

I have two forums, both on the same server, both were version 4.2.0 patch level 3 and upgraded to 4.2.2

One upgraded perfectly without a problem, the other has this time zone error which locked me out of the admin panel. :o

The time zone errors can be fixed with the php.ini update. I think that answer is in post #5 in this thread on the warning messages for the time zone error.


Elmer

Peafor 10-10-2013 01:43 PM

Quote:

Originally Posted by eboggs_jkvl (Post 2451791)
Your error shows "undefined" on mouse hover, mine at least says "Upload Failed".:D

I'm 70 years old and I'm not a programmer. I can be "led" pretty easily but I don't "do" new code on my own.

I'm looking into updating my version of php and I hope this is the issue. If the problem is purely from the vb code, then I need new files or explicit instructions on what code to add/change in some mysterious php file.

Elmer

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



The time zone errors can be fixed with the php.ini update. I think that answer is in post #5 in this thread on the warning messages for the time zone error.


Elmer

Thank you Elmer, yes I did read that but to be honest I haven't a clue how to do it :( I have asked for vBulletin support so maybe they will help (Should I hold my breath? :rolleyes:)

Arrogant-One 10-10-2013 01:59 PM

Quote:

Originally Posted by Peafor (Post 2451789)
I've got this same problem and had to revert back to the old version to get my site back online.

I have two forums, both on the same server, both were version 4.2.0 patch level 3 and upgraded to 4.2.2

One upgraded perfectly without a problem, the other has this time zone error which locked me out of the admin panel.
:o

Oh, thank God. I am not the only one with this problem.

So, here is my sob story. Was using vB 4.1.12, all good, no problemo's. One day some Arabic hackers mess up my site. They created Admin accounts. I upgraded to 4.2.2 and yes, deleted the install folder, nuked the fake Admin accounts. Shortly afterward my site was getting its head flushed down the toilet where it remains currently. Click link below in my sig to see for yourself.

Now I am trying to re-install the upload folder of the vB 4.1.12, but I have noticed the includes folder does not contain the config.php, only config.php.new

Any guidance from you good folks would be appreciated.

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

Quote:

Originally Posted by Peafor (Post 2451789)
I've got this same problem and had to revert back to the old version to get my site back online.

I would like to try this. Please advise, step by step, how I can revert to an older model of vB.

eboggs_jkvl 10-10-2013 02:10 PM

Someone told me you can't "step" back in vb to 4.2.1. The only way is to get a backup from the ISP and load that backup and lose whatever is "new" from the date of the backup.

ELmer

Arrogant-One 10-10-2013 02:16 PM

Quote:

Originally Posted by eboggs_jkvl (Post 2451809)
Someone told me you can't "step" back in vb to 4.2.1. The only way is to get a backup from the ISP and load that backup and lose whatever is "new" from the date of the backup.

ELmer

Okay, but does my site look normal to you, or does it look hacked? What would you recommend I do here?

ForceHSS 10-10-2013 02:19 PM

Quote:

Originally Posted by eboggs_jkvl (Post 2451809)
Someone told me you can't "step" back in vb to 4.2.1. The only way is to get a backup from the ISP and load that backup and lose whatever is "new" from the date of the backup.

ELmer

Its easy just upload the 4.2.1 files and run the upgrade.php it will give you two options at the start pick the one on the left

Arrogant-One 10-10-2013 02:21 PM

Quote:

Originally Posted by ForceHSS (Post 2451815)
Its easy just upload the 4.2.1 files and run the upgrade.php it will give you two options at the start pick the one on the left

How do I run the

upgrade.php

Thanks for your help.

eboggs_jkvl 10-10-2013 02:21 PM

Quote:

Originally Posted by Arrogant-One (Post 2451814)
Okay, but does my site look normal to you, or does it look hacked? What would you recommend I do here?

Friend,

I'm the last person that you should ask for expert opinion on hacked or looking good. I know my limitations and that's why I'm asking questions on this forum.

Until someone comes up with a solution, my "upload attachments" functionality is just sitting there, dead.

I'm looking into updating my version of PHP to see if that helps but I'm pretty much screwed here unless I get a backup reloaded from my ISP putting me back on v4.2.1.

I clicked on ozchess and got this:
Quote:

An error occurred.

Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.
Elmer


All times are GMT. The time now is 06:38 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.01532 seconds
  • Memory Usage 1,898KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (26)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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete