Jump to content
  • Pages app gives template error on display.


    I install Beta6 on a copy of my live website. When I try to display a Pages App article, the web page is blank, which causes these two errors. Do you have any idea if the issue is a bug?

    [[Template core/front/global/widgetArea is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

     

    Quote

    Error: Call to undefined method IPS\cms\Records1::canUnfeature() in /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Theme/Theme.php(612) : eval()'d code:2588

    Stack trace:

    #0 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/modules/front/database/record.php(403): IPS\Theme\class_cms_database_Tutorials_RecordDisplay->record(Object(IPS\cms\Records1), '\n<div data-cont...', NULL, NULL)

    #1 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\database\record->manage()

    #2 /Users/beats23/Sites/www.My-WebSite.com/system/Content/Controller.php(125): IPS\Dispatcher\Controller->execute()

    #3 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Databases/Dispatcher.php(372): IPS\Content\Controller->execute()

    #4 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/widgets/Database.php(153): IPS\cms\Databases\Dispatcher->run()

    #5 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Widget.php(1753): IPS\cms\widgets\Database->render()

    #6 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(914): IPS\Widget::createWidgetFromStoredData(Array)

    #7 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(883): IPS\Widget\Area->getWidgetContent()

    #8 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(891): IPS\Widget\Area->totalVisibleWidgets()

    #9 /Users/beats23/Sites/www.My-WebSite.com/static/templates/core_front_global.php(23190): IPS\Widget\Area->totalVisibleWidgets()

    #10 /Users/beats23/Sites/www.My-WebSite.com/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetArea(Object(IPS\Widget\Area))

    #11 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(273): IPS\Theme\SandboxedTemplate->__call('widgetArea', Array)

    #12 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Pages/Page.php(2168): IPS\Widget\Area->__toString()

    #13 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Pages/Page.php(2068): IPS\cms\Pages\Page->getPageContent()

    #14 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/modules/front/pages/page.php(122): IPS\cms\Pages\Page->output()

    #15 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/modules/front/pages/page.php(49): IPS\cms\modules\front\pages\page->view()

    #16 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\pages\page->manage()

    #17 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()

    #18 /Users/beats23/Sites/www.My-WebSite.com/index.php(16): IPS\Dispatcher->run()

    #19 {main}

     

     

    Backtrace

    #0 /Users/beats23/Sites/www.My-WebSite.com/system/Theme/SandboxedTemplate.php(78): IPS\Log::log('Error: Call to ...', 'template_error')

    #1 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(273): IPS\Theme\SandboxedTemplate->__call('widgetArea', Array)

    #2 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Pages/Page.php(2168): IPS\Widget\Area->__toString()

    #3 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Pages/Page.php(2068): IPS\cms\Pages\Page->getPageContent()

    #4 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/modules/front/pages/page.php(122): IPS\cms\Pages\Page->output()

    #5 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/modules/front/pages/page.php(49): IPS\cms\modules\front\pages\page->view()

    #6 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\pages\page->manage()

    #7 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()

    #8 /Users/beats23/Sites/www.My-WebSite.com/index.php(16): IPS\Dispatcher->run()

    #9 {main}

    ————————————————————————————————————

     

     

    SELECT * FROM `cmlo_core_theme_editor_settings` AS `core_theme_editor_settings` IPS\Db\Exception: Table 'My-WebSite.cmlo_core_theme_editor_settings' doesn't exist (1146) #0 /Users/beats23/Sites/www.My-WebSite.com/system/Db/Select.php(402): IPS\Db->preparedQuery('/*My-WebSite_r...', Array, true) #1 /Users/beats23/Sites/www.My-WebSite.com/system/Db/Select.php(460): IPS\Db\Select->runQuery() #2 [internal function]: IPS\Db\Select->rewind() #3 /Users/beats23/Sites/www.My-WebSite.com/system/Theme/Editor/Setting.php(205): IteratorIterator->rewind() #4 /Users/beats23/Sites/www.My-WebSite.com/system/Theme/Theme.php(490): IPS\Theme\Editor\Setting::loadAllKeys() #5 /Users/beats23/Sites/www.My-WebSite.com/system/Theme/Theme.php(367): IPS\Theme::themes() #6 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Standard.php(82): IPS\Theme::i() #7 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Front.php(902): IPS\Dispatcher\Standard::baseCss() #8 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Front.php(143): IPS\Dispatcher\Front::baseCss() #9 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Dispatcher.php(126): IPS\Dispatcher\Front->init() #10 /Users/beats23/Sites/www.My-WebSite.com/index.php(16): IPS\Dispatcher::i() #11 {main}

     

     

    Error: Call to undefined method IPS\cms\Records1::canUnfeature() in /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Theme/Theme.php(612) : eval()'d code:2713 Stack trace: #0 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/modules/front/database/record.php(403): IPS\Theme\class_cms_database_Tutorials_RecordDisplay->record(Object(IPS\cms\Records1), '\n<div data-cont...', NULL, true) #1 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\database\record->manage() #2 /Users/beats23/Sites/www.My-WebSite.com/system/Content/Controller.php(125): IPS\Dispatcher\Controller->execute() #3 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Databases/Dispatcher.php(372): IPS\Content\Controller->execute() #4 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/widgets/Database.php(153): IPS\cms\Databases\Dispatcher->run() #5 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Widget.php(1753): IPS\cms\widgets\Database->render() #6 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(914): IPS\Widget::createWidgetFromStoredData(Array) #7 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(883): IPS\Widget\Area->getWidgetContent() #8 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(891): IPS\Widget\Area->totalVisibleWidgets() #9 /Users/beats23/Sites/www.My-WebSite.com/static/templates/core_front_global.php(23190): IPS\Widget\Area->totalVisibleWidgets() #10 /Users/beats23/Sites/www.My-WebSite.com/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetArea(Object(IPS\Widget\Area)) #11 /Users/beats23/Sites/www.My-WebSite.com/system/Widget/Area.php(273): IPS\Theme\SandboxedTemplate->__call('widgetArea', Array) #12 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Pages/Page.php(2168): IPS\Widget\Area->__toString() #13 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/sources/Pages/Page.php(2068): IPS\cms\Pages\Page->getPageContent() #14 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/modules/front/pages/page.php(122): IPS\cms\Pages\Page->output() #15 /Users/beats23/Sites/www.My-WebSite.com/applications/cms/modules/front/pages/page.php(49): IPS\cms\modules\front\pages\page->view() #16 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\pages\page->manage() #17 /Users/beats23/Sites/www.My-WebSite.com/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute() #18 /Users/beats23/Sites/www.My-WebSite.com/index.php(16): IPS\Dispatcher->run() #19 {main}

     

     


    User Feedback

    Recommended Comments

    beats23

    Posted

    15 minutes ago, Adriano Faria said:

    You probably need to remove the …->canUnfeature() from your custom templates.

    That worked. Thanks 🙏.

    beats23

    Posted

    The error went with your fix, but now I have a new one. Can you see the issue?

    Quote

    Error: Call to undefined method IPS\forums\Topic\Post::canPromoteToSocialMedia() in /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Theme/Theme.php(612) : eval()'d code:408

    Stack trace:

    #0 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Theme/Theme.php(612) : eval()'d code(1401): IPS\Theme\class_cms_database_supergrid_recorddisplay->comment(Object(IPS\forums\Topic), Object(IPS\forums\Topic\Post), 'topic_comment', 'forums', 'forums', 'forums_Topic')

    #1 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Records/CommentTopicSync.php(169): IPS\Theme\class_cms_database_supergrid_recorddisplay->commentContainer(Object(IPS\forums\Topic), Object(IPS\forums\Topic\Post))

    #2 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Theme/Theme.php(612) : eval()'d code(1529): IPS\cms\Records\CommentTopicSync->html()

    #3 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Records/Records.php(2450): IPS\Theme\class_cms_database_supergrid_recorddisplay->comments(Object(IPS\cms\Records1))

    #4 /Users/beats23/Sites/www.My-Site.com/applications/cms/modules/front/database/record.php(114): IPS\cms\Records->commentReviews('comments')

    #5 /Users/beats23/Sites/www.My-Site.com/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\database\record->manage()

    #6 /Users/beats23/Sites/www.My-Site.com/system/Content/Controller.php(125): IPS\Dispatcher\Controller->execute()

    #7 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Databases/Dispatcher.php(372): IPS\Content\Controller->execute()

    #8 /Users/beats23/Sites/www.My-Site.com/applications/cms/widgets/Database.php(153): IPS\cms\Databases\Dispatcher->run()

    #9 /Users/beats23/Sites/www.My-Site.com/system/Widget/Widget.php(1753): IPS\cms\widgets\Database->render()

    #10 /Users/beats23/Sites/www.My-Site.com/system/Widget/Area.php(914): IPS\Widget::createWidgetFromStoredData(Array)

    #11 /Users/beats23/Sites/www.My-Site.com/system/Widget/Area.php(883): IPS\Widget\Area->getWidgetContent()

    #12 /Users/beats23/Sites/www.My-Site.com/system/Widget/Area.php(891): IPS\Widget\Area->totalVisibleWidgets()

    #13 /Users/beats23/Sites/www.My-Site.com/static/templates/core_front_global.php(23190): IPS\Widget\Area->totalVisibleWidgets()

    #14 /Users/beats23/Sites/www.My-Site.com/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetArea(Object(IPS\Widget\Area))

    #15 /Users/beats23/Sites/www.My-Site.com/system/Widget/Area.php(273): IPS\Theme\SandboxedTemplate->__call('widgetArea', Array)

    #16 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Pages/Page.php(2168): IPS\Widget\Area->__toString()

    #17 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Pages/Page.php(2068): IPS\cms\Pages\Page->getPageContent()

    #18 /Users/beats23/Sites/www.My-Site.com/applications/cms/modules/front/pages/page.php(122): IPS\cms\Pages\Page->output()

    #19 /Users/beats23/Sites/www.My-Site.com/applications/cms/modules/front/pages/page.php(49): IPS\cms\modules\front\pages\page->view()

    #20 /Users/beats23/Sites/www.My-Site.com/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\pages\page->manage()

    #21 /Users/beats23/Sites/www.My-Site.com/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()

    #22 /Users/beats23/Sites/www.My-Site.com/index.php(16): IPS\Dispatcher->run()

    #23 {main}

     

     

    Backtrace

     

    #0 /Users/beats23/Sites/www.My-Site.com/system/Theme/SandboxedTemplate.php(78): IPS\Log::log('Error: Call to ...', 'template_error')

    #1 /Users/beats23/Sites/www.My-Site.com/system/Widget/Area.php(273): IPS\Theme\SandboxedTemplate->__call('widgetArea', Array)

    #2 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Pages/Page.php(2168): IPS\Widget\Area->__toString()

    #3 /Users/beats23/Sites/www.My-Site.com/applications/cms/sources/Pages/Page.php(2068): IPS\cms\Pages\Page->getPageContent()

    #4 /Users/beats23/Sites/www.My-Site.com/applications/cms/modules/front/pages/page.php(122): IPS\cms\Pages\Page->output()

    #5 /Users/beats23/Sites/www.My-Site.com/applications/cms/modules/front/pages/page.php(49): IPS\cms\modules\front\pages\page->view()

    #6 /Users/beats23/Sites/www.My-Site.com/system/Dispatcher/Controller.php(139): IPS\cms\modules\front\pages\page->manage()

    #7 /Users/beats23/Sites/www.My-Site.com/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()

    #8 /Users/beats23/Sites/www.My-Site.com/index.php(16): IPS\Dispatcher->run()

    #9 {main}

     

    Adriano Faria

    Posted

    Same from the other. Probably the template supergrid_recorddisplay is calling a method removed on IPS5: canPromoteToSocialMedia.

    So removing it may work fine.

    Marc

    Posted

    Changed Status to Not a bug

    Updated this as not being a bug. As mentioned above, your issues appear to be coming from custom templates


×
×
  • Create New...