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 02-08-2015, 12:42 AM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may seem like a strange question... but have you recently attempted to change to UTF-8 encoding from ISO-8859 ?
Reply With Quote
  #12  
Old 02-08-2015, 06:50 AM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by edgeless View Post
This may seem like a strange question... but have you recently attempted to change to UTF-8 encoding from ISO-8859 ?
Nope, I haven't touched anything like that. Cant speak for what the official VB patches will have done.

For the sake of completeness, over on vb.com it was suggested that the following should be added to the config.php

PHP Code:
define('SKIP_DS_ERRORS'true); 
I already had that line in my config.php. My changelog shows this as being there for over a year now (it was added to prevent some PHP error displaying after an upgrade)
Reply With Quote
  #13  
Old 02-08-2015, 07:55 AM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrEyes View Post
Nope, I haven't touched anything like that. Cant speak for what the official VB patches will have done.
Hmm, okay. Sadly, I'm at a loss. So no idea at all what may have led to your search functionality problem? Did anything that might be significant happen before you noticed it failing? Have you considered restoring the database to a point from before you noticed the search function was broken?

Quote:
Originally Posted by MrEyes View Post
For the sake of completeness, over on vb.com it was suggested that the following should be added to the config.php

PHP Code:
define('SKIP_DS_ERRORS'true); 
I already had that line in my config.php. My changelog shows this as being there for over a year now (it was added to prevent some PHP error displaying after an upgrade)
Yeah, I've seen that before. They tend to gravitate toward not addressing actual causes for errors, but rather hiding them. And another favorite fix of theirs seems to be telling people to re-upload all of their source files to the hosting server. I suppose that can fix things sometimes... but still
Reply With Quote
  #14  
Old 02-08-2015, 01:40 PM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by edgeless View Post
.....telling people to re-upload all of their source files to the hosting server....
For the sake of completeness and as a preemptive measure I have just done that (everything but the images and install folders)
Reply With Quote
  #15  
Old 02-08-2015, 05:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stupid question but.... is your Search Type set to DB Search or Sphinx Search?

If it's set to DB Search, how many rows in your searchcore and searchcore_text tables?

Are there any errors in your error_logs (if you don't know where they are, ask your host) when you try to search?

Has anything changed on your server lately?
Reply With Quote
  #16  
Old 02-08-2015, 10:05 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by edgeless View Post
Yeah, I've seen that before. They tend to gravitate toward not addressing actual causes for errors but rather hiding them
The fact you said that shows that you simply don't understand what adding that line of code does. It's nothing whatsoever to do with "hiding errors rather than fixing them".
Quote:
Originally Posted by edgeless View Post
And another favorite fix of theirs seems to be telling people to re-upload all of their source files to the hosting server. I suppose that can fix things sometimes... but still
So if it can fix things sometimes, what's the problem with suggesting it?

There are no "magic wands" in software support. If, for instance, someone has a corrupted file, whether it got corrupted in the download or the upload, how do you propose to fix that without uploading a fresh copy of the files?

It's one of the first things that gets suggested in cases like this, especially where someone has recently upgraded, because, in my personal experience, it fixes the issue in roughly 40% of cases. If it doesn't...well fine, we''ll try something else.

Support staff aren't magicians. We have to try a series of diagnostics to get to the bottom of what the problem is.

As for the case in hand, it's looking likely that a support ticket will be needed so we can have a look at what's going on in more detail.
Reply With Quote
  #17  
Old 02-08-2015, 10:50 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B View Post
The fact you said that shows that you simply don't understand what adding that line of code does.
Well, I know that it disables warnings. Are you telling me that it doesn't? Disable, conceal, hide... same difference, really.

Quote:
Originally Posted by Mark.B View Post
So if it can fix things sometimes, what's the problem with suggesting it?
It was merely an observation. Please calm down.

Quote:
Originally Posted by Mark.B View Post
There are no "magic wands" in software support. If, for instance, someone has a corrupted file, whether it got corrupted in the download or the upload, how do you propose to fix that without uploading a fresh copy of the files?
Perhaps by identifying which file is corrupted and replacing that file alone? But I understand that's not very easy to do or practical in many cases. Hence I get the reasoning behind the recommendation.

Quote:
Originally Posted by Mark.B View Post
It's one of the first things that gets suggested in cases like this, especially where someone has recently upgraded, because, in my personal experience, it fixes the issue in roughly 40% of cases. If it doesn't...well fine, we''ll try something else.
My point is that it seems the preferred approach in many cases rather than to try and identify which file(s)/code sections aren't working properly. Ok, granted, it makes sense in that uploading all of the files can be the shortest path to resolving a corrupted system and thus save a significant amount of time. I guess I'm just saying that it's an extremely common recommendation from vB support staff and that it's kind of reminiscent of OS support techs telling folks with OS issues they're not able to resolve to reformat and reinstall.

Sorry, I wasn't trying to offend anyone. I was merely replying to the OP with my spontaneous thoughts. Probably shouldn't have done that.
Reply With Quote
  #18  
Old 02-09-2015, 06:43 PM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Three things....

1) Being somebody who works in IT I entirely get the "look at the basics / frequent / common issue first" way of approaching issues.

2) No point in turning this into yet another he said she said

3) Search on my site is working, no idea why. It started to work after a server reboot which I was doing for entirely different issues.
Reply With Quote
  #19  
Old 02-10-2015, 08:30 AM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by edgeless View Post
My point is that it seems the preferred approach in many cases rather than to try and identify which file(s)/code sections aren't working properly. Ok, granted, it makes sense in that uploading all of the files can be the shortest path to resolving a corrupted system and thus save a significant amount of time. I guess I'm just saying that it's an extremely common recommendation from vB support staff and that it's kind of reminiscent of OS support techs telling folks with OS issues they're not able to resolve to reformat and reinstall.
It's absolutely nothing like telling people to reformat and reinstall their Operating System!

It's asking people to dowbnload a fresh copy of the files, and upload them to the server. It doesn't wipe out the forum and start it from scratch, it merely replaces the existing files with new copies.

It's more similar to asking a computer user to reboot their computer and see if the problem continues.

If we were to site down and analyze every single file to establish if any of them were corrupt, this would be hours if not days of work. Would you be willing to be many thousands of pounds for your license in order that sufficient support staff could be recruited and trained in order to make this feasible while retaining realistic response times? Or would it be better to carry on saying "you may have a corrupt file, please donwload a fresh copy of the files from the members area and upload them to the server"?

Just because a solution is suggested a lot, doesn't make it an invalid solution. It's suggested a lot because it often works.

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

Quote:
Originally Posted by edgeless View Post
Well, I know that it disables warnings. Are you telling me that it doesn't? Disable, conceal, hide... same difference, really.
You're now saying "warnings" when previously you said "errors". The very fact that you're interchanging two entirely unrelated terms proves that you don't really understand what that line of code does, or why we use it. I don't mean that nastily, I'm just stating facts.

A php ERROR will, in most cases, stop execution of the code. Meaning, the page won't load, you'll usually either see just a white screen, or else you'll see a white screen with the actual error in black text, and usually little else. An error means there is an actual error in the code, of some sort, could be a syntax error, or calling an undefined function, or any number of different programming errors in the code.

A php WARNING is telling you something, but it does not normally stop the execution of the code (though if displayed on screen it may cause some functions to break or not operate correctly). The "something" it is telling you, is commonly that the function being used is "deprecated" - it will still work, but it may be removed in a future version of php. It os absolutely NOT an error, it's not rmeotely related to an error. A production server should, if it is set up correctly, be configured NOT to display these. However, many servers are not set up correctly, and thus display them. Ever since it started, vBulletin used to add code that supressed these php warnings in the event that the server was not configured to suppress them itself. In vBulletin 4.2.2, we stopped doing this. All that the line of code mentioned (SKIP_DS_ERRORS) does, is restore the previous behaviour.

The only confusing thing is that the word "ERRORS" is used in SKIP_DS_ERRORS, really it ought to be SKIP_DS_WARNINGS and then we wouldn't have this discussion coming up endelssly.

Short version: They aren't errors, and nobody's hiding any errors, there is nothing to "fix rather than hide", it's all perfectly legitimate.
Reply With Quote
  #20  
Old 02-10-2015, 03:39 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B View Post
You're now saying "warnings" when previously you said "errors". The very fact that you're interchanging two entirely unrelated terms proves that you don't really understand what that line of code does, or why we use it. I don't mean that nastily, I'm just stating facts.
The description by a number of your colleagues for the function of the SKIP_DS_ERRORS code string, including that from certain vB developers, has been that it "turns off the extra error reporting in php 5.3 & 5.4 (for strict & deprecated warnings)". The frequent use of this description -or others like it- demonstrates a common interchangeability of the two terms during discussion of said code string's function and purpose. Since even developers refer to the purpose of said code string as it "turns off the extra error reporting", I'm inclined to consider my reference to "hiding errors" as a completely appropriate statement. But even in view of this, I initially intended to type the word "warnings" instead of "errors"... I really did! And that's precisely why I used the term "warnings" instead of "errors" in my following reply. I think the mere fact that those two terms are interchanged on a frequent basis, even by software developers, tends to inspire some inadvertent interchangeability from many of us on occasion. And by the way, I've noticed that some developers even refer to said warnings as "less important errors". So in my opinion your focus on my semantical tendencies in order to try and belittle my qualification to comment has been uncalled for (at best).

As for the blanket file replacement troubleshooting measure, you've made your point. It makes sense and I agree with the reasons involved. Hence, I apologize for voicing my impulsive thought concerning the many times this step is suggested by vBulletin support folks. After all, as I've said, and as you've elaborated upon, it's not practical or time/cost efficient to identify corrupt files or code sections within a system when a direct blanket replacement of files is often able to solve the problems.
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 03:48 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.04782 seconds
  • Memory Usage 2,285KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_php
  • (13)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
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete