Admin login: 'You need the PHP Intl extension enabled...'

Developer
Nuo United Kingdom
Narys nuo gruod. 2024

We are seeing lots of warnings when logging-in as administrator about date problems linked to the PHP Intl extension: -

Warning: You need the PHP Intl extension enabled to format dates in ~/includes/library/lib_language.inc.php (Line 320)Warning: date() expects parameter 2 to be int, object given in ~/includes/library/lib_language.inc.php (Line 321)

Updating from 2.6.0 to 2.6.2 made no difference, so is this related to an automatic PHP update on the server?

tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

Enable the intl extension in your list of enabled php extenstions.
With the PHP deprecation of strftime() in PHP 8.1, the intl extension is the only remaining option for date formatting.

Developer
Nuo United Kingdom
Narys nuo gruod. 2024

Thanks - after a bit of trial and error I found that changing to PHP 8.1 fixes the problem. 8.2 failed to output anything for the admin home page so I'll wait for a bit before trying that again.

tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

Application errors are logged in logs/errors.log if you need to find out why.

Developer
Nuo United Kingdom
Narys nuo gruod. 2024

Ok - it's an old problem first mentioned on this forum in 2023, related to to mysql_report being affected by compilation changes in PHP 8.2. In my case I think it's a case of asking my server hosting tech support to enable nd_mysqli.

Jūs
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.