-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class IntlDateFormatter
not found
#1251
Comments
Seems like some problem in your local install. Check this. |
Thanks for testing the git code on the You can check if you have it with
I also added a new date/time option to disable any conversion. If you select that, there should be no need for |
Thank you --- I'll try this tomorrow |
IntlDateFormatter
not found
Thank you. Installing php-intl on my local machine turned out to be rather a pantomine, but has solved the problem. |
The class is not found if the PHP extension `Intl` is missing. Give a more comprehensible error message to the admin.
Added a new check and give a more comprehensible error message to the admin to change the option. |
Using directly a date/time format function with an incomplete PHP setup is an error for the developer, not for the website admin. Better leave the PHP exception triggering in that case. The admin still gets the option error in the settings panels.
Released in 3.13.0. |
I'm getting the error below when I attempt to edit a field in ACF Pro, this is with ACF Pro 6.0.3, qTranslate-XT 3.12.1, and WordPress 6.1.1. I am seeing this when I click to edit to edit a field group in ACF Pro --- the URL is http://netbsd/angleseyartsforum.org/wp-admin/post.php?post=517&action=edit (that URL goes to an address on my local machine).
Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_date_time.php:53 Stack trace: #0 /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_date_time.php(192): {closure}(Object(DateTime), '%A') #1 [internal function]: {closure}(Array) #2 /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_date_time.php(194): preg_replace_callback('/(?<!%)(%[a-zA-...', Object(Closure), '%A %B %e%q, %Y') #3 /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_date_time.php(488): qxtranxf_intl_strftime('%A %B %e%q, %Y', Object(DateTime), 'en_US') #4 /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_date_time.php(523): qtranxf_format_date('', '2020-02-10 11:5...', '2020-02-10') #5 /home/mark/angleseyartsforum.org/data/wp-includes/class-wp-hook.php(308): qtranxf_dateFromPostForCurrentLanguage('202 in /home/mark/angleseyartsforum.org/data/wp-content/plugins/qtranslate-xt-master/qtranslate_date_time.php on line 53
The text was updated successfully, but these errors were encountered: