https://muskegonchannel.com/past

It worked fine before until now, maybe it had something to do with upgrading from Joomla 4.2.6 to 4.2.7 today?
On my site there (Ja Teline V) is a menu item that's set to "Category List", to show basically all articles published as intended. Today it shows an error "Attempt to modify property "params" on null"
Enabled logging and it shows
#Software: Joomla! 4.2.7 Stable [ Uaminifu ] 31-January-2023 15:00 GMT

#Fields: datetime priority clientip category message
2023-02-01T04:01:25+00:00 CRITICAL 68.51.128.124 error Uncaught Throwable of type Error thrown with message "Attempt to modify property "params" on null". Stack trace: #0 [ROOT]/plugins/system/t3/includes/core/t3.php(528) : eval()'d code(410): include()
#1 [ROOT]/plugins/system/t3/base-bs3/html/layouts/joomla/content/category_default.php(96): Joomla\CMS\MVC\View_JHtmlView->loadTemplate(NULL)
#2 [ROOT]/plugins/system/t3/includes/core/t3.php(528) : eval()'d code(128): include('/home/customer/...')
#3 [ROOT]/libraries/src/Layout/LayoutHelper.php(76): Joomla\CMS\Layout_FileLayout->render(Object(Joomla\Component\Content\Site\View\Category\HtmlView))
#4 [ROOT]/templates/ja_teline_v/html/com_content/category/default.php(28): Joomla\CMS\Layout\LayoutHelper::render('joomla.content....', Object(Joomla\Component\Content\Site\View\Category\HtmlView))
#5 [ROOT]/plugins/system/t3/includes/core/t3.php(528) : eval()'d code(410): include('/home/customer/...')
#6 [ROOT]/plugins/system/t3/includes/core/t3.php(528) : eval()'d code(203): Joomla\CMS\MVC\View_JHtmlView->loadTemplate(NULL)
#7 [ROOT]/libraries/src/MVC/View/CategoryView.php(262): Joomla\CMS\MVC\View_JHtmlView->display(NULL)
#8 [ROOT]/components/com_content/src/View/Category/HtmlView.php(182): Joomla\CMS\MVC\View\CategoryView->display(NULL)
#9 [ROOT]/libraries/src/MVC/Controller/BaseController.php(639): Joomla\Component\Content\Site\View\Category\HtmlView->display()
#10 [ROOT]/components/com_content/src/Controller/DisplayController.php(121): Joomla\CMS\MVC\Controller\BaseController->display(true, Array)
#11 [ROOT]/libraries/src/MVC/Controller/BaseController.php(672): Joomla\Component\Content\Site\Controller\DisplayController->display()
#12 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#13 [ROOT]/components/com_content/src/Dispatcher/Dispatcher.php(56): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#14 [ROOT]/libraries/src/Component/ComponentHelper.php(355): Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch()
#15 [ROOT]/libraries/src/Application/SiteApplication.php(200): Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')
#16 [ROOT]/libraries/src/Application/SiteApplication.php(241): Joomla\CMS\Application\SiteApplication->dispatch()
#17 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\SiteApplication->doExecute()
#18 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#19 [ROOT]/index.php(32): require_once('/home/customer/...')
#20 {main}

Works on cassieopia (just to test), but not usable on my default template JA Teline V, any thoughts on how to fix this?

Hi

We updated this file on your site:

/templates/ja_teline_v/html/com_content/category/default_articles.php

default-articlesphp.zip
4kB

    saguaros Thank you for fixing https://muskegonchannel.com/past
    May i ask why every article has the word "expired" behind it on the list now?

    Also different topic but maybe related.
    I used to have category displaying on every article under the article title between author and the date, they are still set to on, but somehow they are missing now, is it related to this "update"?

    Updated: I just saw that all my current categorizes are "trashed" now, only under Featured Articles though, even though I am using them.

    I updated this file: /templates/ja_teline_v/html/com_content/category/default_articles.php

    Replace lines 232-236:

    <?php if ((strtotime($article->publish_down) < strtotime(JFactory::getDate())) && $article->publish_down != JFactory::getDbo()->getNullDate()) : ?>
    <span class="list-published label label-warning">
    	<?php echo Text::_('JEXPIRED'); ?>
    </span>
    <?php endif; ?>

    to:

    <?php if ($article->publish_down != null && (strtotime($article->publish_down) < strtotime(JFactory::getDate()))
    && !in_array($article->publish_down, array('',JFactory::getDbo()->getNullDate()))) : ?>
    <span class="list-published label label-warning">
    	<?php echo Text::_('JEXPIRED'); ?>
    </span>
    <?php endif; ?>

    The expired label should not show now.

      saguaros

      1. can you follow up on why my category in articles are missing (even tho they are set to it)

      1. under featured articles, categories are still "trashed".

      And once again thank you for all your help.

      Write a Reply...
      You need to Login to view replies.