fa-IRfa-IR set as frontend language2026-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}
| Labels |
Added:
No Code Attached Yet
|
||
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?
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
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.
As far as I know the calling code is part of the language pack, so it’s nothing we can fix in the core.
fyi The calendar extension is not required on windows environments as its built in for windows php builds.
This sounds like a server config issue not a joomla issue. It would appear that you do not have the php calendar extension