XF 1.5 Error - XenForo_Template_Helper_Core::helperIsMemberOf()

acetotal

Member
My site: http://arcticelite.com/index.php

I need help with getting the main page to work again.

The error:

An exception occurred: Too few arguments to function XenForo_Template_Helper_Core::helperIsMemberOf(), 1 passed in /var/www/vhosts/arcticelite.com/domains/arcticelite.com/public_html/library/XenForo/Template/Helper/Core.php on line 853 and at least 2 expected in /var/www/vhosts/arcticelite.com/domains/arcticelite.com/public_html/library/XenForo/Template/Helper/Core.php on line 1344

  1. XenForo_Template_Helper_Core::helperIsMemberOf() in XenForo/Template/Helper/Core.php at line 853
  2. XenForo_Template_Helper_Core::callHelper() in XenForo/Template/Abstract.php(265) : eval()'d code at line 11725
  3. eval() in XenForo/Template/Abstract.php at line 265
  4. XenForo_Template_Abstract->_renderInternal() in XenForo/Template/Abstract.php at line 191
  5. XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
  6. XenForo_Template_Public->render() in XenForo/ViewRenderer/HtmlPublic.php at line 139
  7. XenForo_ViewRenderer_HtmlPublic->renderContainer() in XenForo/FrontController.php at line 633
  8. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
  9. XenForo_FrontController->run() in /var/www/vhosts/arcticelite.com/domains/arcticelite.com/public_html/index.php at line 13


Skjermbilde-p-2019-01-22-19-56-02.png
 
If you find when these errors started happening, that may point you to what change you made that triggered it.

I'd guess it's a bad template customization. It looks like it's probably in the PAGE_CONTAINER template, though it could be in one of the included templates from there. You'll be looking for a ismemberof call.
 
My Web Hosting had an upgrade and moved everything to better hardware. I haven't made any changes that caused this.

HTML:
<!DOCTYPE html><xen:set var="$isResponsive" value="{xen:if '@enableResponsive AND !{$noResponsive}', 1, 0}" />
<html id="XenForo" lang="{$visitorLanguage.language_code}" dir="{$visitorLanguage.text_direction}" class="Public NoJs XenBase {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'} {xen:if @xb_leftSidebar, 'LeftSidebar', 'RightSidebar'} {xen:if $hasAutoDeferred, RunDeferred} {xen:if $isResponsive, Responsive, NoResponsive}" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<xen:hook name="page_container_head">
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    <xen:if is="{$isResponsive}">
        <meta name="viewport" content="width=device-width, initial-scale=1" />
    </xen:if>
    <xen:if is="{$requestPaths.fullBasePath}">
        <base href="{$requestPaths.fullBasePath}" />
        <script><xen:comment>/* Chrome bug and for Google cache */</xen:comment>
            var _b = document.getElementsByTagName('base')[0], _bH = "{xen:jsescape $requestPaths.fullBasePath}";
            if (_b && _b.href != _bH) _b.href = _bH;
        </script>
    </xen:if>

    <title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>
    
    
    <noscript><style>.JsOnly, .jsOnly { display: none !important; }</style></noscript>
    <link rel="stylesheet" href="css.php?css=xenforo,form,public&amp;style={xen:urlencode $_styleId}&amp;dir={$visitorLanguage.text_direction}&amp;d={$visitorStyle.last_modified_date}" />
    <!--XenForo_Require:CSS-->

    <xen:require css="xb.css" />
    <xen:if is="@xb_web_font">
        @xb_web_font_link
    </xen:if>
    <xen:if is="@xb_fontAwesome">
        <link rel="stylesheet" href="{$requestPaths.fullBasePath}@xb_fontAwesomeLink">
    </xen:if>
    <xen:if is="@xb_fontAwesome_useCDN">
        @xb_fontAwesome_CDN
    </xen:if>
    
    {xen:helper ignoredCss, {$visitor.ignoredUsers}}
    
    <xen:include template="google_analytics" />
    <xen:include template="page_container_js_head" />
    <xen:include template="xb_head" />
    <xen:if is="@xb_addthis_integration">
    @xb_addthis_code
    </xen:if>
    
    <link rel="apple-touch-icon" href="{xen:helper fullurl, @ogLogoPath, 1}" />
    <link rel="alternate" type="application/rss+xml" title="{xen:phrase rss_feed_for_x, 'title={$xenOptions.boardTitle}'}" href="{xen:link forums/-/index.rss}" />
    <xen:if is="{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}"><meta name="description" content="{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}" /></xen:if>
    <xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if>
</xen:hook>
</head>

<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
<xen:hook name="body">
<xen:if is="@xb_offcanvas_menu">
<div class="xbOffCanvasContainer">
<div class="xbOffCanvasContent xbOffCanvasMask"></div>
</xen:if>

<xen:if is="@xb_user_bar AND !@xb_user_panel_header">
    <xen:if is="{$visitor.user_id}">
        <xen:include template="moderator_bar" />
    <xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
        <xen:include template="login_bar" />
    </xen:if>
    <xen:else />
    <xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
        <xen:include template="moderator_bar" />
    <xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
        <xen:include template="login_bar" />
    </xen:if>
</xen:if>

<xen:if is="@xb_top_bar_enable"><xen:include template="xb_top_bar" /></xen:if>

<xen:if is="@xb_boxed_layout"><div class="xbBoxed"></xen:if>
<div id="headerMover">

<xen:if is="@xb_remove_headerproxy">
<header>
    <xen:include template="header" />
    <xen:edithint template="navigation" />
    <xen:edithint template="search_bar" />
</header>
</xen:if>

<xen:if is="@xb_body_helper"><div class="xbBodyhelper"></div></xen:if>
    <xen:if is="!@xb_remove_headerproxy"><div id="headerProxy"></div></xen:if>

<div id="content" class="{$contentTemplate}">
    <div class="<xen:if is="@xb_widen">pageContent<xen:else />pageWidth</xen:if>">
        <div class="<xen:if is="@xb_widen">pageWidth<xen:else />pageContent</xen:if>">
            <xen:if is="@xb_content_helper"><div class="xbContenthelper"></div></xen:if>
            
            <xen:include template="ad_top_content" />
            
            <!-- main content area -->
            
            <xen:if is="@xb_bcmoveout">   
            <div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
            <xen:if is="{$topctrl} AND !@xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
            <xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
            </div>
            </xen:if>

            <xen:hook name="page_container_content_top" />
            <xen:if is="{$sidebar}">
                <div class="mainContainer">
                    <div class="mainContent"></xen:if>
                        
                        <xen:include template="ad_above_top_breadcrumb" />
                        
                        <xen:hook name="page_container_breadcrumb_top">
                        <xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
                        <xen:else />
                        <xen:if is="!@xb_bcmoveout">   
                        <div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
                            <xen:if is="{$topctrl} AND !@xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
                            <xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
                        </div>
                        </xen:if>
                        </xen:if>
                        </xen:hook>
                        
                        <xen:include template="ad_below_top_breadcrumb" />
                    
                        <!--[if lt IE 8]>
                            <p class="importantMessage">{xen:phrase you_are_using_out_of_date_browser_upgrade}</p>
                        <![endif]-->

                        <xen:hook name="page_container_notices">
                        <xen:include template="notices" />                       
                        </xen:hook>
                        
                        <xen:hook name="page_container_content_title_bar">
                        <xen:if is="@xb_noH1 && {$contentTemplate} == 'forum_list'">
                        <xen:else />
                        <xen:if is="!{$noH1}">                       
                            <!-- h1 title, description -->
                            <div class="titleBar">
                                {xen:raw $beforeH1}
                                <h1><xen:if
                                    is="{$h1}">{xen:raw $h1}<xen:elseif
                                    is="{$title}" />{xen:raw $title}<xen:else
                                    />{$xenOptions.boardTitle}</xen:if>
                                    <xen:if is="{$topctrl} AND @xb_calltoaction"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
                                    </h1>
                                
                                <xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
                            </div>
                        </xen:if>
                        </xen:if>
                        </xen:hook>
                        
                        <xen:include template="ad_above_content" />
                        
                        <!-- main template -->
                        {xen:raw $contents}
                        
                        <xen:include template="ad_below_content" />
                        
                        <xen:if is="!{$visitor.user_id} && !{$hideLoginBar}">
                            <!-- login form, to be moved to the upper drop-down -->
                            <xen:include template="login_bar_form" />
                        </xen:if>
                        
                    <xen:if is="{$sidebar}"></div>
                    
                </div>
                
                <!-- sidebar -->
                <aside>
                    <div class="sidebar">
                        <xen:hook name="page_container_sidebar">
                        <xen:include template="ad_sidebar_top" />
                        <xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
                        {xen:raw $sidebar}
                        <xen:include template="ad_sidebar_bottom" />
                        </xen:hook>
                    </div>
                </aside>
            </xen:if>
            
            <xen:hook name="page_container_breadcrumb_bottom">
            <xen:if is="@xb_noBreadcrumb && {$contentTemplate} == 'forum_list'">
            <xen:else />           
            <div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
            </xen:if>
            </xen:hook>
            
            <xen:if is="@xb_scroll_buttons OR @xb_scroll_down_on">
                <xen:include template="xb_scroll_buttons" />
            </xen:if>
            
            <xen:include template="ad_below_bottom_breadcrumb" />
        </div>
    </div>
    <xen:if is="@xb_welcome_bar AND !{$visitor.user_id}">
        <xen:include template="xb_welcome_bar" />
    </xen:if>
</div>

<xen:if is="!@xb_remove_headerproxy">
<header>
    <xen:include template="header" />
    <xen:edithint template="navigation" />
    <xen:edithint template="search_bar" />
</header>
</xen:if>

</div>

<footer>
    <xen:include template="footer" />
</footer>

<xen:if is="@xb_boxed_layout"></div></xen:if>

<xen:if is="@xb_offcanvas_menu">
<!-- Off-Canvas Menu -->
</div>
</xen:if>

<xen:include template="page_container_js_body" />

<!--XenBase Current Version : @xb_parent_version -->
<!--Style Version : @xb_style_version -->

<xen:if is="{$isIndexPage} AND {$canSearch}">
<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "WebSite",
    "url": "{xen:jsescape {xen:link canonical:index}}",
    "potentialAction": {
        "@type": "SearchAction",
        "target": "{xen:jsescape {xen:link canonical:search/search}}{xen:if $xenOptions.useFriendlyUrls, '?', '&'}keywords={search_keywords}",
        "query-input": "required name=search_keywords"
    }
}
</script>
</xen:if>

</xen:hook>
</body>
</html>
 
Good tip, but I got this after rebuilding:

Server Error
Server Error
The each() function is deprecated. This message will be suppressed on further calls
  1. XenForo_Application::handlePhpError()
  2. each() in XenForo/Template/Compiler.php at line 869
  3. XenForo_Template_Compiler->compileNamedParams() in XenForo/Template/Compiler.php at line 932
  4. XenForo_Template_Compiler->getNamedParamsAsPhpCode() in XenForo/Template/Compiler/Tag/Avatar.php at line 49
  5. XenForo_Template_Compiler_Tag_Avatar->compile() in XenForo/Template/Compiler.php at line 641
  6. XenForo_Template_Compiler->compileTag() in XenForo/Template/Compiler.php at line 569
  7. XenForo_Template_Compiler->compileSegment() in XenForo/Template/Compiler.php at line 509
  8. XenForo_Template_Compiler->compileSegments() in XenForo/Template/Compiler/Tag/Foreach.php at line 29
  9. XenForo_Template_Compiler_Tag_Foreach->compile() in XenForo/Template/Compiler.php at line 641
  10. XenForo_Template_Compiler->compileTag() in XenForo/Template/Compiler.php at line 569
  11. XenForo_Template_Compiler->compileSegment() in XenForo/Template/Compiler.php at line 509
  12. XenForo_Template_Compiler->compileSegments() in XenForo/Template/Compiler/Tag/Foreach.php at line 29
  13. XenForo_Template_Compiler_Tag_Foreach->compile() in XenForo/Template/Compiler.php at line 641
  14. XenForo_Template_Compiler->compileTag() in XenForo/Template/Compiler.php at line 569
  15. XenForo_Template_Compiler->compileSegment() in XenForo/Template/Compiler.php at line 509
  16. XenForo_Template_Compiler->compileSegments() in XenForo/Template/Compiler/Tag/If.php at line 112
  17. XenForo_Template_Compiler_Tag_If->compile() in XenForo/Template/Compiler.php at line 641
  18. XenForo_Template_Compiler->compileTag() in XenForo/Template/Compiler.php at line 569
  19. XenForo_Template_Compiler->compileSegment() in XenForo/Template/Compiler.php at line 509
  20. XenForo_Template_Compiler->compileSegments() in XenForo/Template/Compiler.php at line 372
  21. XenForo_Template_Compiler->compileParsed() in XenForo/Model/Template.php at line 1611
  22. XenForo_Model_Template->compileAndInsertParsedTemplate() in XenForo/Model/Template.php at line 1377
  23. XenForo_Model_Template->compileTemplateInStyleTree() in XenForo/Model/Template.php at line 1328
  24. XenForo_Model_Template->compileNamedTemplateInStyleTree() in XenForo/Model/Template.php at line 1267
  25. XenForo_Model_Template->compileAllTemplates() in XenForo/Deferred/Template.php at line 36
  26. XenForo_Deferred_Template->execute() in XenForo/Deferred/Atomic.php at line 66
  27. XenForo_Deferred_Atomic->execute() in XenForo/Model/Deferred.php at line 295
  28. XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
  29. XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 355
  30. XenForo_Model_Deferred->runByUniqueKey() in XenForo/Install/Controller/Abstract.php at line 34
  31. XenForo_Install_Controller_Abstract->_manualDeferredRunner() in XenForo/Install/Controller/Upgrade.php at line 221
  32. XenForo_Install_Controller_Upgrade->actionRunDeferred() in XenForo/FrontController.php at line 347
  33. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  34. XenForo_FrontController->run() in /var/www/vhosts/arcticelite.com/domains/arcticelite.com/public_html/install/index.php at line 18
 
Back
Top Bottom