Jump to content
  • Beta 1 - Articles Page gets 500 error


    I have a revival project, so I decided to be a guinea pig for upgrading a production site. 

    The articles page, as well as all articles are giving a 500 error. I tried deleted old template files as well as creating a new page, but each is triggering an error.

    Articles Page - 500 Error

    I'll share a few logs below. If you need me to give back-end access, just say the word. I knew what I signed up for 😉 

    System Log

    TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /static/templates/core_front_global.php:16685
    Stack trace:
    #0 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->reactionOverview()
    #1 /static/templates/core_front_global.php(5882): IPS\Theme\SandboxedTemplate->__call()
    #2 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->featuredComment()
    #3 /static/templates/core_front_global.php(5956): IPS\Theme\SandboxedTemplate->__call()
    #4 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->featuredComments()
    #5 /static/templates/forums_front_topics.php(3946): IPS\Theme\SandboxedTemplate->__call()
    #6 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_forums_front_topics->topic()
    #7 /applications/forums/modules/front/forums/topic.php(713): IPS\Theme\SandboxedTemplate->__call()
    #8 /system/Dispatcher/Controller.php(139): IPS\forums\modules\front\forums\topic->manage()
    #9 /system/Content/Controller.php(122): IPS\Dispatcher\Controller->execute()
    #10 /applications/forums/modules/front/forums/topic.php(82): IPS\Content\Controller->execute()
    #11 /system/Dispatcher/Dispatcher.php(169): IPS\forums\modules\front\forums\topic->execute()
    #12 /index.php(16): IPS\Dispatcher->run()
    #13 {main}

    Backtrace

    #0 /system/Theme/SandboxedTemplate.php(78): IPS\Log::log()
    #1 /static/templates/core_front_global.php(5882): IPS\Theme\SandboxedTemplate->__call()
    #2 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->featuredComment()
    #3 /static/templates/core_front_global.php(5956): IPS\Theme\SandboxedTemplate->__call()
    #4 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->featuredComments()
    #5 /static/templates/forums_front_topics.php(3946): IPS\Theme\SandboxedTemplate->__call()
    #6 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_forums_front_topics->topic()
    #7 /applications/forums/modules/front/forums/topic.php(713): IPS\Theme\SandboxedTemplate->__call()
    #8 /system/Dispatcher/Controller.php(139): IPS\forums\modules\front\forums\topic->manage()
    #9 /system/Content/Controller.php(122): IPS\Dispatcher\Controller->execute()
    #10 /applications/forums/modules/front/forums/topic.php(82): IPS\Content\Controller->execute()
    #11 /system/Dispatcher/Dispatcher.php(169): IPS\forums\modules\front\forums\topic->execute()
    #12 /index.php(16): IPS\Dispatcher->run()
    #13 {main}

    Error creating new page

    EX0 Something went wrong. Please try again.

    Error: Call to undefined method IPS\cms\Pages\PageItem::tags() (0)
    #0 /system/Content/Search/Elastic/Index.php(186): IPS\Content\Search\Elastic\Index->metaData()
    #1 /system/Content/Search/Elastic/Index.php(207): IPS\Content\Search\Elastic\Index->indexData()
    #2 /applications/cms/sources/Pages/Page.php(1676): IPS\Content\Search\Elastic\Index->index()
    #3 /system/Node/Model.php(3675): IPS\cms\Pages\Page->postSaveForm()
    #4 /system/Node/Controller.php(472): IPS\Node\Model->saveForm()
    #5 /applications/cms/modules/admin/pages/pages.php(234): IPS\Node\Controller->form()
    #6 /system/Dispatcher/Controller.php(128): IPS\cms\modules\admin\pages\pages->form()
    #7 /system/Node/Controller.php(117): IPS\Dispatcher\Controller->execute()
    #8 /applications/cms/modules/admin/pages/pages.php(79): IPS\Node\Controller->execute()
    #9 /system/Dispatcher/Dispatcher.php(169): IPS\cms\modules\admin\pages\pages->execute()
    #10 /admin/index.php(15): IPS\Dispatcher->run()
    #11 {main}


    User Feedback

    Recommended Comments

    Marc

    Posted

    While I appreciate your enthusiam, it would be worth having a read of the original post on the beta here 🙂 

     

    I can take a look and see if its anything obvious that can be resolved for you, however your access details are not correct at the moment. If you need it back quickly, you would need to revert to your backup

    Mike G.

    Posted

    On 10/11/2024 at 4:21 AM, Marc said:

    While I appreciate your enthusiam, it would be worth having a read of the original post on the beta here 🙂 

     

    I can take a look and see if its anything obvious that can be resolved for you, however your access details are not correct at the moment. If you need it back quickly, you would need to revert to your backup

    Hey Marc, I updated the access details, so admin access should work now if it's needed or helpful.

    I expected bugs and issues with the beta, so I don't mind being one of the guinea pigs for the upgrade process on my less active site if it can help the dev process. I'm holding off upgrading my more active community until things are more stable.

    Thanks for the help!

    Marc

    Posted

    Those access details appear to be incorrect unfortunately

    Mike G.

    Posted (edited)

    7 hours ago, Marc said:

    Those access details appear to be incorrect unfortunately

    This is for the domain fanclubs.org. I just regenerated the password and logged in without issue, but please let me know if you're still having issues. Thanks, Marc.

    Edited by Mike G.
    Marc

    Posted

    18 hours ago, Mike G. said:

    This is for the domain fanclubs.org. I just regenerated the password and logged in without issue, but please let me know if you're still having issues. Thanks, Marc.

    Just noted Matt got it anyway, so will be fixed in the next beta

    Mike G.

    Posted

    Is this still being worked on? I upgraded to the beta 2, but the articles page is still not loading (HTTP ERROR 500). The credentials are working if you need to access the AdminCP, but please let me know if there's anything else you need.

    Thanks squad!

    Esther E.

    Posted

    2 hours ago, Mike G. said:

    Is this still being worked on? I upgraded to the beta 2, but the articles page is still not loading (HTTP ERROR 500). The credentials are working if you need to access the AdminCP, but please let me know if there's anything else you need.

    Thanks squad!

    Anything new in your system logs?

    Mike G.

    Posted

    On 10/23/2024 at 3:26 PM, Esther E. said:

    Anything new in your system logs?

    There are a few in there. Hope this helps!

    template_error

    TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /static/templates/core_front_global.php:16685
    Stack trace:
    #0 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->reactionOverview()
    #1 /static/templates/core_front_global.php(5882): IPS\Theme\SandboxedTemplate->__call()
    #2 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->featuredComment()
    #3 /static/templates/core_front_global.php(5956): IPS\Theme\SandboxedTemplate->__call()
    #4 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->featuredComments()
    #5 /static/templates/forums_front_topics.php(3946): IPS\Theme\SandboxedTemplate->__call()
    #6 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_forums_front_topics->topic()
    #7 /applications/forums/modules/front/forums/topic.php(713): IPS\Theme\SandboxedTemplate->__call()
    #8 /system/Dispatcher/Controller.php(139): IPS\forums\modules\front\forums\topic->manage()
    #9 /system/Content/Controller.php(122): IPS\Dispatcher\Controller->execute()
    #10 /applications/forums/modules/front/forums/topic.php(82): IPS\Content\Controller->execute()
    #11 /system/Dispatcher/Dispatcher.php(169): IPS\forums\modules\front\forums\topic->execute()
    #12 /index.php(16): IPS\Dispatcher->run()
    #13 {main}
    
    BACKTRACE
    
    #0 /system/Theme/SandboxedTemplate.php(78): IPS\Log::log()
    #1 /static/templates/core_front_global.php(5882): IPS\Theme\SandboxedTemplate->__call()
    #2 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->featuredComment()
    #3 /static/templates/core_front_global.php(5956): IPS\Theme\SandboxedTemplate->__call()
    #4 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->featuredComments()
    #5 /static/templates/forums_front_topics.php(3946): IPS\Theme\SandboxedTemplate->__call()
    #6 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_forums_front_topics->topic()
    #7 /applications/forums/modules/front/forums/topic.php(713): IPS\Theme\SandboxedTemplate->__call()
    #8 /system/Dispatcher/Controller.php(139): IPS\forums\modules\front\forums\topic->manage()
    #9 /system/Content/Controller.php(122): IPS\Dispatcher\Controller->execute()
    #10 /applications/forums/modules/front/forums/topic.php(82): IPS\Content\Controller->execute()
    #11 /system/Dispatcher/Dispatcher.php(169): IPS\forums\modules\front\forums\topic->execute()
    #12 /index.php(16): IPS\Dispatcher->run()
    #13 {main}

    uncaught_exception

    TypeError: Cannot assign string to property IPS\Content\Search\Elastic\Query::$moreLikeThis of type ?array (0)
    #0 /system/Content/Controller.php(4209): IPS\Content\Search\Elastic\Query->filterByMoreLikeThis()
    #1 /applications/core/widgets/relatedContent.php(137): IPS\Content\Controller->getSimilarContent()
    #2 /system/Widget/Widget.php(1280): IPS\core\widgets\relatedContent->render()
    #3 /system/Widget/Widget.php(1342): IPS\Widget->_render()
    #4 /system/Widget/Area.php(904): IPS\Widget->__toString()
    #5 /system/Widget/Area.php(873): IPS\Widget\Area->getWidgetContent()
    #6 /system/Widget/Area.php(881): IPS\Widget\Area->totalVisibleWidgets()
    #7 /static/templates/core_front_global.php(23144): IPS\Widget\Area->totalVisibleWidgets()
    #8 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetArea()
    #9 /static/templates/core_front_global.php(23333): IPS\Theme\SandboxedTemplate->__call()
    #10 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetContainer()
    #11 /static/templates/core_front_global.php(20025): IPS\Theme\SandboxedTemplate->__call()
    #12 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->sidebar()
    #13 /static/templates/core_front_global.php(8071): IPS\Theme\SandboxedTemplate->__call()
    #14 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #15 /system/Dispatcher/Dispatcher.php(192): IPS\Theme\SandboxedTemplate->__call()
    #16 /system/Dispatcher/Standard.php(133): IPS\Dispatcher->finish()
    #17 /system/Dispatcher/Front.php(650): IPS\Dispatcher\Standard->finish()
    #18 /system/Dispatcher/Dispatcher.php(171): IPS\Dispatcher\Front->finish()
    #19 /index.php(16): IPS\Dispatcher->run()
    #20 {main}
    
    BACKTRACE
    #0 /init.php(827): IPS\Log::log()
    #1 /system/Widget/Widget.php(1389): IPS\IPS::exceptionHandler()
    #2 /system/Widget/Area.php(904): IPS\Widget->__toString()
    #3 /system/Widget/Area.php(873): IPS\Widget\Area->getWidgetContent()
    #4 /system/Widget/Area.php(881): IPS\Widget\Area->totalVisibleWidgets()
    #5 /static/templates/core_front_global.php(23144): IPS\Widget\Area->totalVisibleWidgets()
    #6 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetArea()
    #7 /static/templates/core_front_global.php(23333): IPS\Theme\SandboxedTemplate->__call()
    #8 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetContainer()
    #9 /static/templates/core_front_global.php(20025): IPS\Theme\SandboxedTemplate->__call()
    #10 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->sidebar()
    #11 /static/templates/core_front_global.php(8071): IPS\Theme\SandboxedTemplate->__call()
    #12 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #13 /system/Dispatcher/Dispatcher.php(192): IPS\Theme\SandboxedTemplate->__call()
    #14 /system/Dispatcher/Standard.php(133): IPS\Dispatcher->finish()
    #15 /system/Dispatcher/Front.php(650): IPS\Dispatcher\Standard->finish()
    #16 /system/Dispatcher/Dispatcher.php(171): IPS\Dispatcher\Front->finish()
    #17 /index.php(16): IPS\Dispatcher->run()
    #18 {main}

    rebuildSearchIndex

    Error: Call to undefined method IPS\cms\Pages\PageItem::tags() in /system/Content/Search/Elastic/Index.php:377
    Stack trace:
    #0 /system/Content/Search/Elastic/Index.php(186): IPS\Content\Search\Elastic\Index->metaData()
    #1 /system/Content/Search/Elastic/MassIndexer.php(45): IPS\Content\Search\Elastic\Index->indexData()
    #2 /applications/core/extensions/core/Queue/RebuildSearchIndex.php(237): IPS\Content\Search\Elastic\MassIndexer->index()
    #3 /system/Task/Task.php(110): IPS\core\extensions\core\Queue\RebuildSearchIndex->run()
    #4 /applications/core/tasks/queue.php(49): IPS\Task::runQueue()
    #5 /system/Task/Task.php(437): IPS\core\tasks\queue->IPS\core\tasks\{closure}()
    #6 /applications/core/tasks/queue.php(44): IPS\Task->runUntilTimeout()
    #7 /system/Task/Task.php(336): IPS\core\tasks\queue->execute()
    #8 /system/Task/Task.php(299): IPS\Task->run()
    #9 /applications/core/interface/task/task.php(78): IPS\Task->runAndLog()
    #10 {main}
    
    BACKTRACE
    
    #0 /applications/core/extensions/core/Queue/RebuildSearchIndex.php(248): IPS\Log::log()
    #1 /system/Task/Task.php(110): IPS\core\extensions\core\Queue\RebuildSearchIndex->run()
    #2 /applications/core/tasks/queue.php(49): IPS\Task::runQueue()
    #3 /system/Task/Task.php(437): IPS\core\tasks\queue->IPS\core\tasks\{closure}()
    #4 /applications/core/tasks/queue.php(44): IPS\Task->runUntilTimeout()
    #5 /system/Task/Task.php(336): IPS\core\tasks\queue->execute()
    #6 /system/Task/Task.php(299): IPS\Task->run()
    #7 /applications/core/interface/task/task.php(78): IPS\Task->runAndLog()
    #8 {main}

     

    Esther E.

    Posted

    The first error was fixed in beta 2. The others we'll fix, but I don't think they're related to your database page.

    Mike G.

    Posted

    5 hours ago, Esther E. said:

    The first error was fixed in beta 2. The others we'll fix, but I don't think they're related to your database page.

    Thanks Esther. Is there anything else that I could provide that could help?

    Mike G.

    Posted

    Here's one other thing I found if it helps. When I edit the 'articles' database and save, I get this error message.

    A configuration or server error has occurred

    EX0 Something went wrong. Please try again.

    Error: Call to undefined method IPS\cms\Pages\PageItem::tags() (0)
    #0 /system/Content/Search/Elastic/Index.php(186): IPS\Content\Search\Elastic\Index->metaData()
    #1 /system/Content/Search/Elastic/Index.php(207): IPS\Content\Search\Elastic\Index->indexData()
    #2 /applications/cms/sources/Pages/Page.php(1679): IPS\Content\Search\Elastic\Index->index()
    #3 /system/Node/Model.php(3680): IPS\cms\Pages\Page->postSaveForm()
    #4 /applications/cms/modules/admin/databases/databases.php(1548): IPS\Node\Model->saveForm()
    #5 /system/Dispatcher/Controller.php(128): IPS\cms\modules\admin\databases\databases->form()
    #6 /system/Node/Controller.php(117): IPS\Dispatcher\Controller->execute()
    #7 /applications/cms/modules/admin/databases/databases.php(97): IPS\Node\Controller->execute()
    #8 /system/Dispatcher/Dispatcher.php(169): IPS\cms\modules\admin\databases\databases->execute()
    #9 /admin/index.php(15): IPS\Dispatcher->run()
    #10 {main}

     

    Mike G.

    Posted

    And a few new system logs, both template_error.

    Error: ErrorException: Class IPS\cms\Pages\Page could not be loaded. Ensure it is in the correct namespace. in /init.php:749
    Stack trace:
    #0 [internal function]: IPS\IPS::errorHandler()
    #1 /init.php(749): trigger_error()
    #2 /system/Http/Url/Friendly.php(146): IPS\IPS::autoloader()
    #3 /system/Http/Url.php(314): IPS\Http\Url\Friendly::createFriendlyUrlFromComponents()
    #4 /system/Request/Request.php(287): IPS\Http\Url::createFromString()
    #5 /applications/core/sources/FrontNavigation/FrontNavigation.php(107): IPS\Request->url()
    #6 /applications/forums/extensions/core/FrontNavigation/Forums.php(87): IPS\core\FrontNavigation::nodeExtensionIsActive()
    #7 /applications/core/sources/FrontNavigation/FrontNavigationAbstract.php(299): IPS\forums\extensions\core\FrontNavigation\Forums->active()
    #8 /static/templates/core_front_global.php(12336): IPS\core\FrontNavigation\FrontNavigationAbstract->activeOrChildActive()
    #9 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->mobileFooterBar()
    #10 /static/templates/core_front_global.php(8185): IPS\Theme\SandboxedTemplate->__call()
    #11 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #12 /system/Output/Output.php(852): IPS\Theme\SandboxedTemplate->__call()
    #13 /init.php(868): IPS\Output->error()
    #14 [internal function]: IPS\IPS::exceptionHandler()
    #15 {main} in /system/Theme/SandboxedTemplate.php:72
    Stack trace:
    #0 /static/templates/core_front_global.php(8185): IPS\Theme\SandboxedTemplate->__call()
    #1 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #2 /system/Output/Output.php(852): IPS\Theme\SandboxedTemplate->__call()
    #3 /init.php(868): IPS\Output->error()
    #4 [internal function]: IPS\IPS::exceptionHandler()
    #5 {main}
    
    BACKTRACE
    
    #0 /system/Theme/SandboxedTemplate.php(78): IPS\Log::log()
    #1 /static/templates/core_front_global.php(8185): IPS\Theme\SandboxedTemplate->__call()
    #2 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #3 /system/Output/Output.php(852): IPS\Theme\SandboxedTemplate->__call()
    #4 /init.php(868): IPS\Output->error()
    #5 [internal function]: IPS\IPS::exceptionHandler()
    #6 {main}

     

    Error: Call to a member function canManageWidgets() on null in /static/templates/core_front_global.php:23351
    Stack trace:
    #0 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->widgetContainer()
    #1 /static/templates/core_front_global.php(8131): IPS\Theme\SandboxedTemplate->__call()
    #2 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #3 /system/Output/Output.php(852): IPS\Theme\SandboxedTemplate->__call()
    #4 /init.php(868): IPS\Output->error()
    #5 [internal function]: IPS\IPS::exceptionHandler()
    #6 {main}
    
    BACKTRACE
    
    #0 /system/Theme/SandboxedTemplate.php(78): IPS\Log::log()
    #1 /static/templates/core_front_global.php(8131): IPS\Theme\SandboxedTemplate->__call()
    #2 /system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->globalTemplate()
    #3 /system/Output/Output.php(852): IPS\Theme\SandboxedTemplate->__call()
    #4 /init.php(868): IPS\Output->error()
    #5 [internal function]: IPS\IPS::exceptionHandler()
    #6 {main}

     


×
×
  • Create New...