Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-01-16 16:35:31

From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 305
Website GitHub GitLab Twitter

Fatal error: Vilnius no longer exists

A weird problem struck me today — Textpattern does not save edited nor new articles, with no warnings. TxP Admin: Diagnostics is OK, as always. Although Admin: Preferences does not work, throws a fatal error message instead:

Fatal error: Uncaught IntlException: datefmt_create: No such time zone: ‘Europe/Vilnius’: U_ILLEGAL_ARGUMENT_ERROR in /usr/home/vlap/6v/sava/textpattern/lib/txplib_misc.php:2666 Stack trace: #0 /usr/home/vlap/6v/sava/textpattern/lib/txplib_misc.php(2666): IntlDateFormatter->__construct() #1 /usr/home/vlap/6v/sava/textpattern/lib/txplib_misc.php(2765): intl_strftime() #2 /usr/home/vlap/6v/sava/textpattern/include/txp_prefs.php(631): safe_strftime() #3 /usr/home/vlap/6v/sava/textpattern/include/txp_prefs.php(376): dateformats() #4 /usr/home/vlap/6v/sava/textpattern/include/txp_prefs.php(282): pref_func() #5 /usr/home/vlap/6v/sava/textpattern/include/txp_prefs.php(45): prefs_list() #6 /usr/home/vlap/6v/sava/textpattern/index.php(230): include(‘…’) #7 {main} thrown in /usr/home/vlap/6v/sava/textpattern/lib/txplib_misc.php on line 2666

Time zone was set to Vilnius in Textpattern Admin: Preferences: Site. PHP 8.1.12 info shows timezonedb 2022.2 ext-20-timezonedb.ini installed and enabled, timelib 2021.17 date/time support enabled, Timezone Database internal, Default timezone UTC, date.timezone — no value. Then I have set date.timezone = "Europe/Vilnius" manually in php.ini and restarted PHP-FPM.

Textpattern works correctly now, but I am wondering what happens wrong. I think the time zone should not be specified in php.ini by default.


#2 2023-01-16 18:29:25

From: Leeds, UK
Registered: 2006-01-29
Posts: 11,217
Website GitHub

Re: Fatal error: Vilnius no longer exists

Interesting. We should trap errors like this and try to fallback more gracefully if a timezone doesn’t exist.

Is this in Txp.4.8.8?

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp


#3 2023-01-17 10:27:08

From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 305
Website GitHub GitLab Twitter

Re: Fatal error: Vilnius no longer exists

Yes, it is the latest release:

Textpattern version: 4.8.8 ()
Last update: 2022-01-30 14:39:43/2022-01-24 13:32:38
Site URL: az.on.lt
Admin URL: az.on.lt/textpattern
Document root: /usr/home/vlap/6v/az
$path_to_site: /usr/home/vlap/6v/az
Textpattern path: /usr/home/vlap/6v/az/textpattern
Article URL pattern: title_only
Production status: testing
upload_tmp_dir: /var/tmp/uploads
Temporary directory path: /tmp
PHP version: 8.1.13
GD Graphics Library: 2.3.3; Supported formats: GIF, JPEG, PNG, WebP, AVIF.
Intl extension: 8.1.13
Multibyte String extension: 8.1.13
Server time zone: Europe/Vilnius
Server local time: 2023-01-17 12:22:26
Daylight Saving Time enabled?:
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): Europe/Vilnius (7200)
MySQL: 5.7.39-log (Source distribution)
Database server time: 2023-01-17 12:22:26
Database server time offset: 1 s
Database server time zone: SYSTEM
Database session time zone: SYSTEM
Locale: C
Site / Admin language: en / en
Web server: Hiawatha v11.2
PHP server API: fpm-fcgi
PHP SSL version: OpenSSL 1.1.1o-freebsd 3 May 2022
RFC 2616 headers: 0
Server OS: FreeBSD 13.1-RELEASE-p3
Admin-side theme: hive 4.8.8


Board footer

Powered by FluxBB