Jump to content
  • B6 - Sidebar in some pages


    TypeError: count(): Argument #1 ($value) must be of type Countable|array, IPS\Widget\Area given in /home/sosinvisioncom/public_html/system/Output/Output.php:1599
    Stack trace:
    #0 /home/sosinvisioncom/public_html/static/templates/core_front_global.php(19959): IPS\Output->sidebarHasContent()
    #1 /home/sosinvisioncom/public_html/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->sidebar()
    #2 /home/sosinvisioncom/public_html/static/templates/core_front_global.php(8139): IPS\Theme\SandboxedTemplate->__call()
    #3 /home/sosinvisioncom/public_html/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #4 /home/sosinvisioncom/public_html/system/Dispatcher/Dispatcher.php(192): IPS\Theme\SandboxedTemplate->__call()
    #5 /home/sosinvisioncom/public_html/applications/cms/sources/Databases/Dispatcher.php(449): IPS\Dispatcher->finish()
    #6 /home/sosinvisioncom/public_html/applications/cms/sources/Databases/Dispatcher.php(410): IPS\cms\Databases\Dispatcher->finish()
    #7 /home/sosinvisioncom/public_html/applications/cms/widgets/Database.php(153): IPS\cms\Databases\Dispatcher->run()
    #8 /home/sosinvisioncom/public_html/system/Widget/Widget.php(1753): IPS\cms\widgets\Database->render()
    #9 /home/sosinvisioncom/public_html/system/Widget/Area.php(914): IPS\Widget::createWidgetFromStoredData()
    #10 /home/sosinvisioncom/public_html/system/Widget/Area.php(883): IPS\Widget\Area->getWidgetContent()
    #11 /home/sosinvisioncom/public_html/system/Widget/Area.php(891): IPS\Widget\Area->totalVisibleWidgets()
    #12 /home/sosinvisioncom/public_html/static/templates/core_front_global.php(23190): IPS\Widget\Area->totalVisibleWidgets()
    #13 /home/sosinvisioncom/public_html/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetArea()
    #14 /home/sosinvisioncom/public_html/system/Widget/Area.php(273): IPS\Theme\SandboxedTemplate->__call()
    #15 /home/sosinvisioncom/public_html/applications/cms/sources/Pages/Page.php(2168): IPS\Widget\Area->__toString()
    #16 /home/sosinvisioncom/public_html/applications/cms/sources/Pages/Page.php(2068): IPS\cms\Pages\Page->getPageContent()
    #17 /home/sosinvisioncom/public_html/applications/cms/modules/front/pages/page.php(122): IPS\cms\Pages\Page->output()
    #18 /home/sosinvisioncom/public_html/applications/cms/modules/front/pages/page.php(49): IPS\cms\modules\front\pages\page->view()
    #19 /home/sosinvisioncom/public_html/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\pages\page->manage()
    #20 /home/sosinvisioncom/public_html/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()
    #21 /home/sosinvisioncom/public_html/index.php(16): IPS\Dispatcher->run()
    #22 {main}

     

    #0 /home/sosinvisioncom/public_html/system/Theme/SandboxedTemplate.php(78): IPS\Log::log()
    #1 /home/sosinvisioncom/public_html/static/templates/core_front_global.php(8139): IPS\Theme\SandboxedTemplate->__call()
    #2 /home/sosinvisioncom/public_html/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #3 /home/sosinvisioncom/public_html/system/Dispatcher/Dispatcher.php(192): IPS\Theme\SandboxedTemplate->__call()
    #4 /home/sosinvisioncom/public_html/applications/cms/sources/Databases/Dispatcher.php(449): IPS\Dispatcher->finish()
    #5 /home/sosinvisioncom/public_html/applications/cms/sources/Databases/Dispatcher.php(410): IPS\cms\Databases\Dispatcher->finish()
    #6 /home/sosinvisioncom/public_html/applications/cms/widgets/Database.php(153): IPS\cms\Databases\Dispatcher->run()
    #7 /home/sosinvisioncom/public_html/system/Widget/Widget.php(1753): IPS\cms\widgets\Database->render()
    #8 /home/sosinvisioncom/public_html/system/Widget/Area.php(914): IPS\Widget::createWidgetFromStoredData()
    #9 /home/sosinvisioncom/public_html/system/Widget/Area.php(883): IPS\Widget\Area->getWidgetContent()
    #10 /home/sosinvisioncom/public_html/system/Widget/Area.php(891): IPS\Widget\Area->totalVisibleWidgets()
    #11 /home/sosinvisioncom/public_html/static/templates/core_front_global.php(23190): IPS\Widget\Area->totalVisibleWidgets()
    #12 /home/sosinvisioncom/public_html/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetArea()
    #13 /home/sosinvisioncom/public_html/system/Widget/Area.php(273): IPS\Theme\SandboxedTemplate->__call()
    #14 /home/sosinvisioncom/public_html/applications/cms/sources/Pages/Page.php(2168): IPS\Widget\Area->__toString()
    #15 /home/sosinvisioncom/public_html/applications/cms/sources/Pages/Page.php(2068): IPS\cms\Pages\Page->getPageContent()
    #16 /home/sosinvisioncom/public_html/applications/cms/modules/front/pages/page.php(122): IPS\cms\Pages\Page->output()
    #17 /home/sosinvisioncom/public_html/applications/cms/modules/front/pages/page.php(49): IPS\cms\modules\front\pages\page->view()
    #18 /home/sosinvisioncom/public_html/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\pages\page->manage()
    #19 /home/sosinvisioncom/public_html/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()
    #20 /home/sosinvisioncom/public_html/index.php(16): IPS\Dispatcher->run()
    #21 {main}

     

    image.thumb.png.9385cbe320a56b3e464f038747871213.png


    User Feedback

    Recommended Comments

    Mike G.

    Posted

    I’m receiving this error as well. Oddly, it’s only showing while logged out / to guests.

    Esther E.

    Posted

    Changed Status to Duplicate

    Ugh, I got confused. Wrong bug. Not enough coffee. 

    Adriano Faria

    Posted

    7 minutes ago, Esther E. said:

    I just fixed this one yesterday, it was already reported. Thanks! 

    Any patch or manual fix? 

    EliasM

    Posted

    7 hours ago, Esther E. said:

    I just fixed this one yesterday, it was already reported. Thanks! 

    Can you give an urgent patch without waiting for a beta update?

    Adriano Faria

    Posted

    16 hours ago, EliasM said:

    Can you give an urgent patch without waiting for a beta update?

    If you are self-hosted and can use FTP, you can change the file ...system / Output / Output.php, line 1599 from:

    		if( isset( $this->sidebar['widgetareas']['sidebar'] ) and count( $this->sidebar['widgetareas']['sidebar'] ) )

    to:

    		if( isset( $this->sidebar['widgetareas']['sidebar'] ) /*and count( $this->sidebar['widgetareas']['sidebar'] )*/ )

    It's running on my board since yesterday; I haven't noticed any problem since then. It's a temporary fix while I wait for the official.


×
×
  • Create New...