Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 10-09-2013, 11:10 PM
da_judge's Avatar
da_judge da_judge is offline
 
Join Date: Jan 2006
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You suggested hide errors... how is that good.. just asking

http://www.vbulletin.com/forum/forum...-been-released

its bad to hide errors... not saying your fault... and as im from London... its what we say.. its mental... nothing personal.. but Nginx craps out big time with update

No offence intended Paul
Reply With Quote
  #12  
Old 10-09-2013, 11:13 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suggested "Where possible, you should fix the plugin code".

Thats not always practical or possible, so hiding them is the only alternative.

vBulletin has been hiding them for a long while due to the fact the old error handler (which dates from php 4 days) didnt do anything with them. All 4.2.2 does is expose them.
Reply With Quote
2 благодарности(ей) от:
da_judge, tbworld
  #13  
Old 10-09-2013, 11:17 PM
da_judge's Avatar
da_judge da_judge is offline
 
Join Date: Jan 2006
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

question is then m8... why hide errors.. it be better to show rather than hide

and your fixes fails on nginx.. plugins which i know are not yor fault.....
Reply With Quote
  #14  
Old 10-09-2013, 11:28 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by da_judge View Post
question is then m8... why hide errors.. it be better to show rather than hide
You are free to show them on your forum if you wish, most admins however would prefer not to display them.

On a production site, display_errors should be turned off at source (php.ini).

As noted in the standard php.ini file

Code:
;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.

; allow_call_time_pass_reference
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off
Reply With Quote
  #15  
Old 10-10-2013, 12:01 AM
CarlitoBrigante's Avatar
CarlitoBrigante CarlitoBrigante is offline
 
Join Date: Nov 2002
Location: Iceland
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul, there is no reason to be so dismissive. I have a problem on many servers with display_errors set to off and errors still being shown by vBulletin 4.2.2 through its new error handler. Why this is happening, I did not have time to look into, as I have so many forums to upgrade I do not have time to submit a bug report. I am not paid to look into vBulletin's core code, but I might take some time to do so.

For the others: those warnings, as I said in my previous post, should not be ignored. The reality is that many plugins you could have downloaded also from vBulletin.org will cause those warnings in many vBulletin installations - just, up to this moment, you might have not noticed them. This is because many plugins are using old code or are coded following old PHP standards.

When you set display_errors to off, you should always have log_errors set to on and check routinely for errors popping up there, including warnings, and fix plugins when possible.

On production websites, you should basically NEVER show this kind of error information to the public, as it might expose vulnerabilities or other information about your server you do not want to disclose (like path structure).

Sorry for the fast post, I did not have time to re-read it for spelling errors as I have still 4 forums piled up for an upgrade today.
Reply With Quote
  #16  
Old 10-10-2013, 12:23 AM
meaters meaters is offline
 
Join Date: Jul 2010
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the info Carlito.

Broken templates are also a big problem after this upgrade.
Reply With Quote
  #17  
Old 10-10-2013, 06:28 PM
da_judge's Avatar
da_judge da_judge is offline
 
Join Date: Jan 2006
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yer i understand that m8.. but im running Nginx.. php.ini doesn't work the same with nginx

i managed to fix anyway

cheers

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

Quote:
Originally Posted by meaters View Post
Thanks for the info Carlito.

Broken templates are also a big problem after this upgrade.
you tried rebuilding templates in maintenance

Admincp > Maintenance > Rebuild Styles

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04931 seconds
  • Memory Usage 2,231KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete