What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Help Expression Causes Errors In Xenforo

Discussion in 'XenGallery' started by moshbit, Dec 5, 2013.

  1. moshbit

    moshbit Authorized Member Authorized

    hi, i'm using the expression:

    Code:
    $contentTemplate != 'sonnb_xengallery_collection_index' 
    to hide certain modules from the gallery index page, but when i do, my xenforo error log gets flooded with thousands of these errors:

    Code:
    Error Info
    ErrorException: Undefined variable: contentTemplate - library/WidgetFramework/WidgetRenderer.php(483) : runtime-created function:1
    Generated By: Matt Derrick, 6 minutes ago
    Stack Trace
    
    #0 /srv/www/squattheplanet.com/public_html/library/WidgetFramework/WidgetRenderer.php(483) : runtime-created function(1): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/srv/www/squatt...', 1, Array)
    #1 [internal function]: __lambda_func(Array)
    #2 /srv/www/squattheplanet.com/public_html/library/WidgetFramework/WidgetRenderer.php(487): call_user_func('?lambda_58', Array)
    #3 /srv/www/squattheplanet.com/public_html/library/WidgetFramework/WidgetRenderer.php(573): WidgetFramework_WidgetRenderer->_executeExpression('$contentTemplat...', Array)
    #4 /srv/www/squattheplanet.com/public_html/library/WidgetFramework/Core.php(352): WidgetFramework_WidgetRenderer->render(Array, 'forum_list', Array, Object(XenForo_Template_Public), '???????????<!--...')
    #5 /srv/www/squattheplanet.com/public_html/library/WidgetFramework/Core.php(264): WidgetFramework_Core->_renderWidgetsFor('forum_list', Array, Object(XenForo_Template_Public), '???????????<!--...')
    #6 /srv/www/squattheplanet.com/public_html/library/WidgetFramework/Listener.php(87): WidgetFramework_Core->renderWidgetsFor('forum_list', Array, Object(XenForo_Template_Public), Array)
    #7 [internal function]: WidgetFramework_Listener::template_post_render('forum_list', '????????????<ol...', Array, Object(XenForo_Template_Public))
    #8 /srv/www/squattheplanet.com/public_html/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
    #9 /srv/www/squattheplanet.com/public_html/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'forum_list')
    #10 /srv/www/squattheplanet.com/public_html/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
    #11 /srv/www/squattheplanet.com/public_html/library/XenForo/ViewRenderer/HtmlPublic.php(119): XenForo_Template_Public->render()
    #12 /srv/www/squattheplanet.com/public_html/library/XenForo/FrontController.php(604): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
    #13 /srv/www/squattheplanet.com/public_html/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
    #14 /srv/www/squattheplanet.com/public_html/index.php(13): XenForo_FrontController->run()
    #15 {main}
    
    Request State
    
    array(3) {
      ["url"] => string(26) "http://squattheplanet.com/"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
    }
    
    am i not using the expression correctly, or is this a bug? thanks!
     
  2. moshbit

    moshbit Authorized Member Authorized

    oh, just wanted to point out that i found out it was this expression through a process of elimination, disabling each widget until the errors stopped happening.
     
  3. moshbit

    moshbit Authorized Member Authorized

    apologies, this is a mistake i made in positioning the widget. it had nothing to do with xengallery *blush*
     
  4. sonnb

    sonnb Administrator Staff Member

    I am happy because you can fix it yourself before I see your message.
     

Share This Page