• 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
    • Could not find phrase 'else_not_child_of_if'

    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: Could not find phrase 'else_not_child_of_if'

    • Issue Tools
      • View Changes
    1. issueid=2196 January 19, 2011 10:48 AM
      seite7 seite7 is offline
      New Member
      Could not find phrase 'else_not_child_of_if'
      can't edit vault_article_main

      When I try to edit vault_article_main I always get:
      Could not find phrase 'else_not_child_of_if'.


      Code:
      {vb:stylevar htmldoctype}
      <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
      <head>
      	<vb:if condition="$threadinfo['keywords']"><meta name="keywords" content="{vb:raw threadinfo.keywords}" /></vb:if>
      	<vb:if condition="$thread['meta_description']"><meta name="description" content="{vb:raw thread.meta_description}" /></vb:if>
      	{vb:raw headinclude}
      	<vb:if condition="$show['special_rss']">
      	<link rel="alternate" type="application/rss+xml" title="{vb:raw vboptions.bbtitle} - {vb:raw threadinfo.displaytitle} - {vb:rawphrase rss_feed}" href="{vb:raw vboptions.bburl}/external.php?do=wiki&amp;type=RSS2{vb:raw threadinfo.special_rss}" />
      	</vb:if>
      	<vb:if condition="$show['meta_robots']"><meta name="ROBOTS" content="<vb:if condition="$show['meta_noindex']">NOINDEX<vb:if condition="$show['meta_nofollow']">,</vb:if></vb:if><vb:if condition="$show['meta_nofollow']">NOFOLLOW</vb:if>" /></vb:if>
      	<title><vb:if condition="$thread['displaytitle']">{vb:raw thread.displaytitle}<vb:else />{vb:raw thread.title}</vb:if><vb:if condition="$tabtitle"> - {vb:raw tabtitle}<vb:if condition="$pagenumber > 1"> {vb:rawphrase page_x, {vb:raw pagenumber}}</vb:if></vb:if> - {vb:raw vboptions.bbtitle}</title>
      	<vb:if condition="$show['reputation']">
      	<script type="text/javascript" src="clientscript/vbulletin-ajax-reputation.js?v={vb:raw vboptions.simpleversion}"></script>
      	</vb:if>
      	<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v={vb:raw vboptions.simpleversion}"></script>
      	<vb:if condition="$show['threadrating']">
      	<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v={vb:raw vboptions.simpleversion}"></script>
      	</vb:if>
      	<vb:if condition="$show['multiquote_global']">
      	<script type="text/javascript" src="clientscript/vbulletin_multi_quote.js?v={vb:raw vboptions.simpleversion}"></script>
      	</vb:if>
      	<vb:if condition="$show['edit_tab'] OR $show['discussion_tab']">
      	<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
      	</vb:if>
      	<vb:if condition="$show['discussion_tab'] AND $show['quickedit']">
      	<script type="text/javascript" src="clientscript/vbulletin_quick_edit.js?v={vb:raw vboptions.simpleversion}"></script>
      	</vb:if>
      	<vb:if condition="$show['quickreply']">
      	<script type="text/javascript" src="clientscript/vbulletin_quick_reply.js?v={vb:raw vboptions.simpleversion}"></script>
      	</vb:if>
      	<vb:if condition="$show['manage_tag']">
      	<script type="text/javascript" src="clientscript/vbulletin_ajax_taglist.js?v={vb:raw vboptions.simpleversion}"></script>
      	<script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>
      	</vb:if>
      	<vb:if condition="$show['lightbox']">
      	<script type="text/javascript" src="clientscript/vbulletin_lightbox.js?v={vb:raw vboptions.simpleversion}"></script>
      	</vb:if>
              <vb:if condition="$vboptions['storecssasfile']">
      	    <vb:if condition="VAULT_404_COMPAT">
              	{vb:cssfile showthread-rollup.css,postbit-rollup.css,vaultwiki-rollup.css}
                      <vb:if condition="$show['forum_header']">
                          {vb:cssfile vw-header-thread-rollup.css}
              	</vb:if>
                      <vb:if condition="$show['threadlistcss']">
                          {vb:cssfile vw-threadlist-rollup.css}
                      </vb:if>
      	    <vb:else />
              	<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}showthread-rollup.css" />
              	<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}postbit-rollup.css" />
      	        <vb:if condition="VAULT_402_COMPAT">
                  	    <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vaultwiki-rollup.css" />
                          <vb:if condition="$show['forum_header']">
                      	<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-header-thread-rollup.css" />
                          </vb:if>
                          <vb:if condition="$show['threadlistcss']">
                      	<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-threadlist-rollup.css" />
                          </vb:if>
              	<vb:else />
                          <link rel="stylesheet" type="text/css" href="{vb:raw vwmisc.vbcsspath}vaultwiki.css<vb:if condition="$show['forum_header']">,vw-header-thread.css</vb:if><vb:if condition="$show['threadlistcss']">,vw-threadlist.css</vb:if>" />
      	        </vb:if>
      	    </vb:if>
      	<vb:else />
      	    <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vbulletin-formcontrols.css,editor.css,bbcode.css,showthread.css,postbit.css<vb:if condition="$show['lightbox']">,lightbox.css</vb:if><vb:if condition="$show['discussion_tab']">,postlist.css</vb:if><vb:if condition="$threadinfo['pollid'] AND $threadinfo['open'] != 10">,poll.css</vb:if>,vaultwiki.css<vb:if condition="$show['forum_header']">,vw-header-thread.css</vb:if><vb:if condition="$show['threadlistcss']">,vw-threadlist.css</vb:if>" />
      	</vb:if>
      	<!--[if lt IE 8]>
      	<vb:if condition="$vboptions['storecssasfile']">
      	    <vb:if condition="VAULT_404_COMPAT">
      	        {vb:cssfile vw-ie7-rollup.css}
      	    <vb:elseif condition="VAULT_402_COMPAT">
      	        <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-ie7-rollup.css" />
      	    <vb:else />
      	        <link rel="stylesheet" type="text/css" href="{vb:raw vwmisc.vbcsspath}vw-tabbed-ie7.css<vb:if condition="$show['threadlistcss']">,threadlist-ie.css</vb:if>,vw-general-ie7.css" />
      	    </vb:elseif>
      	    </vb:if>
      	<vb:else />
      	    <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-tabbed-ie7.css<vb:if condition="$show['threadlistcss']">,threadlist-ie.css</vb:if>,vw-general-ie7.css" />
      	</vb:if>
      	<![endif]-->
      	<!--[if lt IE 7]>
      	<vb:if condition="$vboptions['storecssasfile']">
      	    <vb:if condition="VAULT_404_COMPAT">
      	        {vb:cssfile vw-ie6-rollup.css}
      	    <vb:elseif condition="VAULT_402_COMPAT">
      	        <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-ie6-rollup.css" />
      	    <vb:else />
      	        <link rel="stylesheet" type="text/css" href="{vb:raw vwmisc.vbcsspath}vw-tabbed-ie6.css,vw-general-ie6.css" />
      	    </vb:elseif>
      	    </vb:if>
      	<vb:else />
      	    <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-tabbed-ie6.css,vw-general-ie6.css" />
      	</vb:if>
      	<![endif]-->
      	<vb:if condition="$show['popups']">
      	    <vb:if condition="$show['wiki_tabs']"><script type="text/javascript" src="clientscript/vault/tabs.js?v={vb:raw vwmisc.simpleversion}"></script></vb:if>
      	    <vb:if condition="$show['book_marking_ajax']"><script type="text/javascript" src="clientscript/vault/markread.js?v={vb:raw vwmisc.simpleversion}"></script></vb:if>
      	    <vb:if condition="$show['special_css'] OR $show['vault_sections']"><script type="text/javascript" src="clientscript/vault/section.js?v={vb:raw vwmisc.simpleversion}"></script></vb:if>
      	    <vb:if condition="$show['quickedit'] OR $show['quickreply']"><script type="text/javascript" src="clientscript/vbulletin_textedit.js?v={vb:raw vboptions.simpleversion}"></script></vb:if>
      	    <vb:if condition="$show['quickedit']"><script type="text/javascript" src="clientscript/vault/quickedit.js?v={vb:raw vwmisc.simpleversion}"></script></vb:if>
      	    <script type="text/javascript">
      	    <!--
      	    var tab_container = "vault_tabs";
      	    <vb:if condition="$show['wiki_tabs'] OR $show['quickedit']">
      	    var nojs_tabs = [ 'edit', 'index' ];
      	    var ajax_load_url = [];
      	    ajax_load_url[tab_container] = "{vb:raw threadinfo.url_js}do={1:tabid}";
      	    </vb:if>
      	    var VAULT_40X_COMPAT = <vb:if condition="VAULT_40X_COMPAT">true<vb:else />false</vb:if>;
      	    var VAULT_IMGDIR = "{vb:stylevar imgdir_vault}";
      	    var VAULT_INWIKI = true;
      	    //-->
      	    </script>
      	</vb:if>
      	<vb:if condition="$show['wiki_tabs'] OR $vboptions['quickedit'] OR $_REQUEST['do'] == 'edit' OR $_REQUEST['do'] == 'comments'"><script type="text/javascript" src="clientscript/vault/reset.js?v={vb:raw vwmisc.simpleversion}"></script></vb:if>
      	<link rel="canonical" href="<vb:if condition="$pagenumber > 1">{vb:raw threadinfo.url_d}do=comments&amp;page={vb:raw pagenumber}<vb:else />{vb:raw threadinfo.url}</vb:if>" />
      	{vb:raw headinclude_bottom}
      </head>
      <body<vb:if condition="$onload"> onload="{vb:raw onload}"</vb:if>>
      {vb:raw header}
      {vb:raw navbar}
      
      <vb:if condition="$forum_header">
      {vb:raw forum_header}
      </vb:if>
      
      <vb:if condition="isset($pollinfo) AND $pollinfo['position'] == 0">
      <div id="collapseobj_ca-poll"<vb:if condition="$forum_header"> style="margin-top: 1em"</vb:if>>
      	{vb:raw poll}
      </div>
      </vb:if>
      
      <div id="vault_tabs" class="floatcontainer">
      	{vb:raw vwblocks.tabs}
      </div>
      
      {vb:raw template_hook.article_below_tabs}
      
      <vb:if condition="$pollinfo['position'] == 1">
      <br />
      <div id="collapseobj_ca-poll">
      	{vb:raw poll}
      </div>
      </vb:if>
      
      <br />
      <div id="thread_info" class="thread_info">
      	<vb:if condition="$show['tag_box'] AND $threadinfo['threadid'] != 'error'">
      	<h4 class="threadinfohead"><span class="optiontitle">{vb:rawphrase tags_for_this_thread}</span></h4>
      	<div id="thread_tags_list" class="thread_info_block">
      		<div class="inner_block">
      			<vb:if condition="$show['manage_tag']">
      			<a id="tag_edit_link" href="threadtag.php?{vb:raw session.sessionurl}t={vb:raw thread.threadid}" class="textcontrol" style="float:right; font-size:11px; margin:10px;">{vb:rawphrase edit_tags}</a>
      			</vb:if>
      			<div id='tag_list_cell'>
      				{vb:raw tag_list}
      			</div>
      			<p>
      				<a href="tags.php{vb:raw session.sessionurl_q}">{vb:rawphrase view_tag_cloud}</a>
      			</p>
      		</div>
      	</div>
      	</vb:if>
      	{vb:raw similararticles}
      	<vb:if condition="$show['activeusers'] AND $show['wikitabs']">
      	<h4 class="threadinfohead"><span class="optiontitle">{vb:rawphrase thread_information}</span></h4>
      	<div id="thread_onlineusers" class="thread_info_block">
      		<div class="inner_block">
      			<h5>{vb:rawphrase users_browsing_this_thread}</h5>
      			<div>
      				<p>{vb:rawphrase users_currently_browsing_x_y_z, {vb:raw totalonline}, {vb:raw numberregistered}, {vb:raw numberguest}}</p>
      				<ol class="commalist">
      					{vb:raw activeusers}
      				</ol>
      			</div>
      		</div>
      	</div>
      	</vb:if>
      	{vb:raw template_hook.showthread_after_activeusers}
      	<vb:if condition="$threadinfo['namespaceid'] != SPECIAL_SPACE">
      	<div class="options_block_container">
      		<vb:if condition="$bookmarksites AND $threadinfo['threadid'] != 'error'">
      		<div class="options_block">
      			<h4 class="threadinfohead_type2"><span class="optiontitle">{vb:rawphrase bookmarks}</span></h4>
      			<div id="social_bookmarks_list" class="thread_info_block">
      				<h5 class="blocksubhead">{vb:rawphrase bookmarks}</h5>
      				
      				<ul class="blockrow floatcontainer">{vb:raw bookmarksites}</ul>
      			</div>
      		</div>
      		</vb:if>
      		
      
      
      
      
      
      
      	</div>
      	</vb:if>
      </div>
      
      <vb:if condition="$show['popups'] AND $show['wiki_tabs']">
      <script type="text/javascript">
      <!--{vb:raw vwpostbit.custom_nojs}
      vBulletin.register_control("vB_WikiTabs", tab_container, "{vb:raw vwpostbit.selected_tab}", "{vb:rawphrase ces_more}");
      //-->
      </script>
      </vb:if>
      
      {vb:raw footer}
      
      </body>
      </html>
    Issue Details
    Issue Number 2196
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Unknown
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 3.0.9
    Fixed Version 3.0.10
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 19, 2011 12:10 PM
      pegasus pegasus is offline
      VaultWiki Team
      Be careful that you aren't removing any &lt;vb:if&gt; tags that contain &lt;vb:else /&gt; tags that you didn't remove. However, I tested the code you posted above and am not having a problem saving the template. If you are using the mod Template Modification System and entered edits for this template, review them to make sure they don't mess up the tags I mentioned above.

      Otherwise the vague and broken nature of this error is an old vBulletin bug they have ignored for a year: http://tracker.vbulletin.com/browse/VBIV-4606
      Reply Reply  
    2. January 19, 2011 12:49 PM
      seite7 seite7 is offline
      New Member
      How can I get the latest "official" version of that template?
      I am getting this error for all saved templates of this file, even for those which I thought are your original versions.
      Like "Original 3.0.8 23.12.10 01:32 / pegasus"
      Reply Reply  
    3. January 19, 2011 1:07 PM
      pegasus pegasus is offline
      VaultWiki Team
      You can run /vault/install/finalupgrade.php?step=5 to re-import the default wiki style.
      Reply Reply  
    4. January 21, 2011 2:17 PM
      seite7 seite7 is offline
      New Member
      I nailed it down to this block of code, which I certainly didn't touch:

      Code:
      <!--[if lt IE 8]>
      	<vb:if condition="$vboptions['storecssasfile']">
      	    <vb:if condition="VAULT_404_COMPAT">
      	        {vb:cssfile vw-ie7-rollup.css}
      	    <vb:elseif condition="VAULT_402_COMPAT">
      	        <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-ie7-rollup.css" />
      	    <vb:else />
      	        <link rel="stylesheet" type="text/css" href="{vb:raw vwmisc.vbcsspath}vw-tabbed-ie7.css<vb:if condition="$show['threadlistcss']">,threadlist-ie.css</vb:if>,vw-general-ie7.css" />
      	    </vb:elseif>
      	    </vb:if>
      	<vb:else />
      	    <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-tabbed-ie7.css<vb:if condition="$show['threadlistcss']">,threadlist-ie.css</vb:if>,vw-general-ie7.css" />
      	</vb:if>
      	<![endif]-->
      	<!--[if lt IE 7]>
      	<vb:if condition="$vboptions['storecssasfile']">
      	    <vb:if condition="VAULT_404_COMPAT">
      	        {vb:cssfile vw-ie6-rollup.css}
      	    <vb:elseif condition="VAULT_402_COMPAT">
      	        <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-ie6-rollup.css" />
      	    <vb:else />
      	        <link rel="stylesheet" type="text/css" href="{vb:raw vwmisc.vbcsspath}vw-tabbed-ie6.css,vw-general-ie6.css" />
      	    </vb:elseif>
      	    </vb:if>
      	<vb:else />
      	    <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}vw-tabbed-ie6.css,vw-general-ie6.css" />
      	</vb:if>
      	<![endif]—>
      After removing it, I could safe the template again. But I guess I need that part for IE ...
      Maybe there are any if-else-problems in this code?
      Reply Reply  
    5. January 21, 2011 2:45 PM
      pegasus pegasus is offline
      VaultWiki Team
      Apparently vBulletin doesn't like the:
      Code:
      &lt;vb:elseif&gt;
      ...
      &lt;vb:else /&gt;
      ...
      &lt;/vb:elseif&gt;
      construction anymore. I've gone ahead and replaced the elseifs with self-closing tags for the next release. This is probably going to cause problems in vB < 4.1.1 since self-closing elseifs have not always been supported. However, since upgrades within vB4 are free there is really no excuse not to upgrade to 4.1.1...
      Reply Reply  
    6. January 22, 2011 3:34 AM
      seite7 seite7 is offline
      New Member
      Thanks!
      Do you mind posting the corrected code here?
      Reply Reply  
    7. January 22, 2011 1:30 PM
      pegasus pegasus is offline
      VaultWiki Team
      For all:
      Code:
      &lt;vb:elseif condition="..."&gt;
      Replace with:
      Code:
      &lt;vb:elseif condition="..." /&gt;
      Remove all:
      Code:
      &lt;/vb:elseif&gt;
      Reply Reply  
    8. January 22, 2011 1:51 PM
      seite7 seite7 is offline
      New Member
      Thanks!
      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 12:29 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.