No Code Attached Yet
avatar muhme
muhme
19 Feb 2026

Steps to reproduce the issue

  • Fresh 5.4-dev installation
  • Install language Persian (Iran) fa-IR
  • Create second super user with fa-IR set as frontend language
  • Create an article and feature it
  • Open home, login as second super user to see home with the featured article in persian

Expected result

  • Home with featured article is shown in persian

Actual result

  • Error Uncaught Throwable of type Error thrown with message "Call to undefined function gregoriantojd()"

System information (as much as possible)

  • Tested with JBT
Stack Trace
2026-02-19T09:16:24+00:00	CRITICAL	192.168.65.1	error	Uncaught Throwable of type Error thrown with message "Call to undefined function gregoriantojd()". Stack trace: #0 [ROOT]/libraries/src/HTML/HTMLHelper.php(963): fa_IRDate->calendar('c', true)
#1 [ROOT]/libraries/src/HTML/HTMLHelper.php(307): Joomla\CMS\HTML\HTMLHelper::date('2026-02-19 09:1...', 'c')
#2 [ROOT]/libraries/src/HTML/HTMLHelper.php(195): Joomla\CMS\HTML\HTMLHelper::call(Array, Array)
#3 [ROOT]/layouts/joomla/content/info_block/publish_date.php(19): Joomla\CMS\HTML\HTMLHelper::_('joomla\\cms\\html...', '2026-02-19 09:1...', 'c')
#4 [ROOT]/libraries/src/Layout/FileLayout.php(128): include('[ROOT]/l...')
#5 [ROOT]/libraries/src/Layout/FileLayout.php(636): Joomla\CMS\Layout\FileLayout->render(Array)
#6 [ROOT]/layouts/joomla/content/info_block.php(52): Joomla\CMS\Layout\FileLayout->sublayout('joomla.content....', Array)
#7 [ROOT]/libraries/src/Layout/FileLayout.php(128): include('[ROOT]/l...')
#8 [ROOT]/libraries/src/Layout/LayoutHelper.php(76): Joomla\CMS\Layout\FileLayout->render(Array)
#9 [ROOT]/components/com_content[TMP]l/featured/default_item.php(78): Joomla\CMS\Layout\LayoutHelper::render('joomla.content....', Array)
#10 [ROOT]/libraries/src/MVC/View/HtmlView.php(416): include('[ROOT]/c...')
#11 [ROOT]/components/com_content[TMP]l/featured/default.php(30): Joomla\CMS\MVC\View\HtmlView->loadTemplate(NULL)
#12 [ROOT]/libraries/src/MVC/View/HtmlView.php(416): include('[ROOT]/c...')
#13 [ROOT]/libraries/src/MVC/View/HtmlView.php(204): Joomla\CMS\MVC\View\HtmlView->loadTemplate(NULL)
#14 [ROOT]/components/com_content/src/View/Featured/HtmlView.php(200): Joomla\CMS\MVC\View\HtmlView->display(NULL)
#15 [ROOT]/libraries/src/MVC/Controller/BaseController.php(697): Joomla\Component\Content\Site\View\Featured\HtmlView->display()
#16 [ROOT]/components/com_content/src/Controller/DisplayController.php(123): Joomla\CMS\MVC\Controller\BaseController->display(false, Array)
#17 [ROOT]/libraries/src/MVC/Controller/BaseController.php(730): Joomla\Component\Content\Site\Controller\DisplayController->display()
#18 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#19 [ROOT]/components/com_content/src/Dispatcher/Dispatcher.php(56): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#20 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch()
#21 [ROOT]/libraries/src/Application/SiteApplication.php(217): Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')
#22 [ROOT]/libraries/src/Application/SiteApplication.php(271): Joomla\CMS\Application\SiteApplication->dispatch()
#23 [ROOT]/libraries/src/Application/CMSApplication.php(320): Joomla\CMS\Application\SiteApplication->doExecute()
#24 [ROOT]/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#25 [ROOT]/index.php(51): require_once('[ROOT]/i...')
#26 {main}

Additional comments

  • Same with 6.0-dev
  • Found in testing #46910 (but it is unrelated to this PR)
avatar muhme muhme - open - 19 Feb 2026
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Feb 2026
avatar muhme muhme - change - 19 Feb 2026
The description was changed
avatar muhme muhme - edited - 19 Feb 2026
avatar brianteeman
brianteeman - comment - 19 Feb 2026

This sounds like a server config issue not a joomla issue. It would appear that you do not have the php calendar extension

avatar muhme
muhme - comment - 19 Feb 2026

This sounds like a server config issue not a joomla issue. It would appear that you do not have the php calendar extension

Thank you @brianteeman for the hint. Another test with en-GB, de-DE, fa-IR, ur-PK and 'Multilingual Sample Data' installed. Only /fa crashes. The other RTL language Urdu works.

However, you are right, the calendar PHP extension wasn't installed. After docker-php-ext-install calendar and restart, the problem is fixed.

@HLeithner Should calendar be added to the required PHP modules in Technical Requirements?

avatar brianteeman
brianteeman - comment - 19 Feb 2026

The other languages didn't give you any error as this is noth8ng to do with the language and only to do with non Gregorian calendars

avatar richard67
richard67 - comment - 19 Feb 2026

That’s why we don’t require that. But a better error message could be nice, telling that the PHP calendar extension is missing and that it’s needed for non Gregorian calendars.

avatar richard67
richard67 - comment - 19 Feb 2026

As far as I know the calling code is part of the language pack, so it’s nothing we can fix in the core.

avatar brianteeman
brianteeman - comment - 19 Feb 2026

fyi The calendar extension is not required on windows environments as its built in for windows php builds.

Add a Comment

Login with GitHub to post a comment