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)

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.


All times are GMT. The time now is 11:24 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.02032 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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