• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • Search error after upgrade Sphinx Plugin of Digital Points (vaultarticle unknown)

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Search error after upgrade Sphinx Plugin of Digital Points (vaultarticle unknown)

    • Issue Tools
      • View Changes
    1. issueid=2295 May 14, 2011 5:18 AM
      dihuta dihuta is offline
      New Member
      Search error after upgrade Sphinx Plugin of Digital Points (vaultarticle unknown)

      Hello,

      After I upgrade Sphinx Search Mod of Digital Points to the lasted version (http://products.digitalpoint.com/vbu...inx-search.php) to support more content types, we receicve this error anytime we do a search:

      unknown local index 'vaultarticle' in search request
      What should I do?
      Thank you.
    Issue Details
    Issue Number 2295
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Searching
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 3.0.11
    Fixed Version 3.0.12
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. May 14, 2011 4:42 PM
      pegasus pegasus is offline
      VaultWiki Team
      I'm not familiar with Digital Point's Sphinx Search mod. It might be better to ask him, but it sounds like you need to generate the search index for the wiki.
      Reply Reply  
    2. May 14, 2011 5:08 PM
      pegasus pegasus is offline
      VaultWiki Team
      I have contacted DigitalPoint directly to see what I need to do to get VaultWiki to work with his mod. I will let you know once I have something.
      Reply Reply  
    3. May 17, 2011 1:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      I installed Sphinx and the mod on a test site. This only occurs when using the navbar search field and pressing enter. If you use the Advanced Search form it will perform the search correctly. I am now looking into why the navbar field is acting weird.
      Reply Reply  
    4. May 17, 2011 1:11 PM
      dihuta dihuta is offline
      New Member
      Hi pegaus,

      I also had issue with Advanced Search form.
      The Digital Point told me I should turn off "can search" value of vault article content type in ContentType table temporarily.

      In order to make a non-standard content type searchable with Sphinx, you (or the developers) would need to define the Sphinx indexes for that content type. Once you do that, you can name that custom file sphinx.conf.inc and the primary config file will include it.

      Since it's a third party content type, I probably can't be of a lot of help though since I know nothing about it.
      Reply Reply  
    5. May 17, 2011 1:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      Yes, it returns the error on Advanced Search only if you select "Wiki Content Pages" AND another default type or "All Types". If you use the "Search Single Content Type" tab or only pick "Wiki Content Pages" it searches normally. I'm thinking I have to create a dummy index since there is actually no vaultarticle content type, it's just a label for posts in the wiki forums.
      Reply Reply  
    6. May 17, 2011 1:28 PM
      dihuta dihuta is offline
      New Member
      Thank you.
      Let's me know when it was fixed.

      Regards,
      Reply Reply  
    7. May 17, 2011 5:10 PM
      pegasus pegasus is offline
      VaultWiki Team
      Okay, no additional indexing required. Fixed by modifying some VaultWiki plugin code.

      In vault/plugins/search.php, find:
      Code:
      function special_search_process_start()
      {
      	special_search_goto_article();
      }
      Replace with:
      Code:
      function special_search_process_start()
      {
      	global $vbulletin;
      
      	if (!VAULT_40X_COMPAT)
      	{
      		special_search_goto_article();
      	}
      
      	if (is_array($vbulletin->GPC['contenttypeid']))
      	{
      		// are we including wiki content pages
      		$i = vB_Types::instance();
      		$wikitypeid = $i->getContentTypeId("VaultWiki_VaultArticle");
      		$posttypeid = $i->getContentTypeId("vBForum_Post");
      
      		$key = array_search($wikitypeid, $vbulletin->GPC['contenttypeid']);
      
      		if (!in_array($posttypeid, $vbulletin->GPC['contenttypeid']) AND $key !== false)
      		{
      			$vbulletin->GPC['contenttypeid'][] = $posttypeid;
      
      			// but only search wiki forums!
      			require_once(DIR . '/vault/functions/data.php');
      			$_REQUEST['include'] .= (!empty($_REQUEST['include']) ? ',' : '') . implode(',', array_values(special_fetch_wiki_forumids()));
      		}
      
      		if ($key !== false)
      		{
      			unset($vbulletin->GPC['contenttypeid']["$key"]);
      		}
      		unset($i);
      	}
      	else if (!$vbulletin->GPC['contenttypeid'] AND class_exists('DPSphinxSearch_CoreSearchController'))
      	{
      		// re-enable wiki searching from just before
      		$vbulletin->db->query_write("
      			UPDATE " . TABLE_PREFIX . "contenttype
      			SET cansearch = 1
      			WHERE class = 'VaultArticle'
      		");
      		unset($i);
      	}
      }
      Then in Plugin Manager, find the VaultWiki plugin for hook "search_before_process". Edit and Add the following to the bottom of the code:
      Code:
      if ($_POST['do'] == 'process')
      {
      	require_once(DIR . '/vault/plugins/search.php');
      	special_search_process_start();
      }
      Again in Plugin Manager, find the plugin for hook "global_setup_complete". Edit and Add the following to the bottom:
      Code:
      if (
      	THIS_SCRIPT == 'search' AND
      	$_POST['do'] == 'process' AND
      	$vbulletin->options['searchimplementation'] == 'DPSphinxSearch_Core' AND
      	!$_POST['contenttypeid']
      )
      {
      	// trick sphinx into thinking articles are unsearchable
      	$db->query_write("
      		UPDATE " . TABLE_PREFIX . "contenttype
      		SET cansearch = 0
      		WHERE class = 'VaultArticle'
      	");
      }
      This also fixes a bug where searching for say "Blog Comments" and "Wiki Content Pages" won't return any wiki results unless you also check "Forum Posts".
      Reply Reply  
    8. May 17, 2011 8:13 PM
      dihuta dihuta is offline
      New Member
      Thank you.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 1:07 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.