vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Project Tools (https://vborg.vbsupport.ru/forumdisplay.php?f=266)
-   -   Bug Report and Fix (broken search) (https://vborg.vbsupport.ru/showthread.php?t=243115)

Ideal Web Tech 05-22-2010 06:23 PM

Bug Report and Fix (broken search)
 
Well as of the new vb4 template version you broke the search system. If you use quick search or try to search without explicitly applying filters you wont get a result because the search term itself gets lost.

After reviewing the code for some reason you updated a few of the search term related fields to GPC query instead of text.

projectsearch.php line 346 in 2.1.0
PHP Code:

        'query'      => TYPE_STR

fixed code
PHP Code:

        'text'      => TYPE_STR

class_pt_issuesearch.php line 447 in 2.1.0
PHP Code:

        'query'        => 'add_text',        // string - fulltext search 

fixed code
PHP Code:

        'text'        => 'add_text',        // string - fulltext search 

With these changes you are now able to search for items correctly. We am really not sure why this was changed between 2.1.0a1 and 2.1.0 as if you check the 2.1.0a1 files things are validated using the correct name and we were unable to locate any other search related changes for the field name to point to it was an intended change.

Ideal Web Tech 05-22-2010 06:56 PM

Disregard as I noticed it was reported in the bug tracker on vbulletin.com


All times are GMT. The time now is 05:55 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.01175 seconds
  • Memory Usage 1,711KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete