Search Stopped Working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jakobi
    New Member
    • Aug 2006
    • 22

    [Forum] Search Stopped Working

    Hello,

    I noticed that the search function has stopped working. Anyone have any ideas? It shows the results but not the actual posts.

    Click image for larger version

Name:	529201270529pm.jpg
Views:	1
Size:	24.4 KB
ID:	3723434

    I have tried to figure it out, but I am stuck. Thanks!
  • Amaury
    Senior Member
    • Mar 2012
    • 1807
    • 4.2.X

    #2
    Have you tried rebuilding the search index?
    Former vBulletin user

    Comment

    • Jakobi
      New Member
      • Aug 2006
      • 22

      #3
      Hmmm...it was the Google Search I installed.

      Mini Mods - Use Google Custom Search In Navbar - Step By Step vBulletin 4.x Template Modifications


      I reverted the template and it works. I will have to look at why that was not working.

      - - - Updated - - -

      Well here is my modified navbar...any Guru notice something that would cause the Vbulletin Search to not work?

      Code:
      <div id="navbar" class="navbar">
          <ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
              {vb:raw template_hook.navtab_start}
              {vb:raw navigation}
              {vb:raw template_hook.navtab_end}
          </ul>
          <vb:if condition="$vboptions['enablesearches']">
              <div id="globalsearch" class="globalsearch">
      <script type="text/javascript" src="http://www.google.com/jsapi"></script>
      <script type="text/javascript">
        google.load('search', '1');
        google.setOnLoadCallback(function() {
          google.search.CustomSearchControl.attachAutoCompletion(
            'partner-pub-6264852506603834:5075846713',
            document.getElementById('q'),
            'cse-search-box');
        });
      </script>
      <form action="http://www.xxx.com/forum/google.php" id="cse-search-box">
        <div>
          <input type="hidden" name="cx" value="partner-pub-6264852506603834:5075846713" />
          <input type="hidden" name="cof" value="FORID:10" />
          <input type="hidden" name="ie" value="UTF-8" />
          <span class="textboxcontainer"><span><input type="text" name="q" id="q" autocomplete="off" class="textbox" /></span></span>
          <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="sa" onclick="document.getElementById('navbar_search').submit;" />  </span></span>
        </div>
      </form>
      <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
              </div>
          </vb:if>
      </div>
      </div><!-- closing div for above_body -->
      
      
      <div class="body_wrapper">
      <div id="breadcrumb" class="breadcrumb">
          <ul class="floatcontainer">
              <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
              {vb:raw navbits.breadcrumb}
              {vb:raw navbits.lastelement}
          </ul>
          <hr />
      </div>
      
      
      {vb:raw ad_location.ad_navbar_below}
      {vb:raw ad_location.global_below_navbar}
      
      
      <vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
          <form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
              <input type="hidden" name="do" value="dismissnotice" />
              <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
              <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
              <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
              <input type="hidden" name="url" value="{vb:raw return_link}" />
              <ol>
                  {vb:raw notices}
              </ol>
          </form>
      </vb:if>

      Comment

      • Jakobi
        New Member
        • Aug 2006
        • 22

        #4
        Ok I thought it was the above, but it is not. It is doing it still.

        What templates does the search rely on? The default theme works fine, but my custom theme does not. Any ideas?

        - - - Updated - - -

        Ok all my search templates are not the original...some are old, should I revert all of these?

        Click image for larger version

Name:	5-30-2012 5-36-40 PM.jpg
Views:	1
Size:	65.8 KB
ID:	3687423

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73981

          #5
          Yes.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • Jakobi
            New Member
            • Aug 2006
            • 22

            #6
            Thank you. I noticed this:

            A lot of them say they are not the original, but when comparing the files in Winmerge...they are. Some say last edited by "System" and some say "vBulletin Solutions", and some say my name obviously. Is that normal? I am going to revert all the ones by "System" and "vBulletin Solutions" to see if that makes a difference.

            Comment

            • Amaury
              Senior Member
              • Mar 2012
              • 1807
              • 4.2.X

              #7
              Originally posted by Jakobi
              Thank you. I noticed this:

              A lot of them say they are not the original, but when comparing the files in Winmerge...they are. Some say last edited by "System" and some say "vBulletin Solutions", and some say my name obviously. Is that normal? I am going to revert all the ones by "System" and "vBulletin Solutions" to see if that makes a difference.
              vBulletin Solutions and System are the default ones. You'd want to revert the ones with your name.
              Former vBulletin user

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 73981

                #8
                Originally posted by Jakobi
                Thank you. I noticed this:

                A lot of them say they are not the original, but when comparing the files in Winmerge...they are. Some say last edited by "System" and some say "vBulletin Solutions", and some say my name obviously. Is that normal? I am going to revert all the ones by "System" and "vBulletin Solutions" to see if that makes a difference.
                Templates are not stored in files and cannot be compared using WinMerge. Templates are stored as database entries.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • Jakobi
                  New Member
                  • Aug 2006
                  • 22

                  #9
                  Ok. Reverted all the templates and still not working. I even took the default theme and started to apply style variables to rebuild the theme...and it still does it. Any ideas of where I should look? Thank you.

                  Comment

                  • Wayne Luke
                    vBulletin Technical Support Lead
                    • Aug 2000
                    • 73981

                    #10
                    To troubleshoot this, first download a fresh copy of the vBulletin ZIP file from the Members Area then reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

                    Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

                    [Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

                    Next, disable all plugins.

                    Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

                    define('DISABLE_HOOKS', true);

                    Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it.

                    Do you have the same problem?
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API

                    Comment

                    • geosharing
                      New Member
                      • Jul 2015
                      • 22
                      • 4.2.x

                      #11
                      not working with me vbulletin 4.2.2
                      im using this http://www.vbulletin.org/forum/showt...=263440&page=6

                      Comment

                      • Wayne Luke
                        vBulletin Technical Support Lead
                        • Aug 2000
                        • 73981

                        #12
                        Originally posted by geosharing
                        not working with me vbulletin 4.2.2
                        im using this http://www.vbulletin.org/forum/showt...=263440&page=6
                        We can't provide any support for that addon.
                        Translations provided by Google.

                        Wayne Luke
                        The Rabid Badger - a vBulletin Cloud demonstration site.
                        vBulletin 5 API

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...