Forums / Bug Reports / Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Views: 11,309

Results 21 to 40 of 44
9 Nov 2023, 3:49 PM
#21
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
413
Plugin Contributions:
6

Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

lat9:

Noting that the zcDate.php class is PHP version-specific, using strftime for PHP versions < 8.1 and using the IntlDateFormatter class (if that PHP extension is installed) otherwise.

I did not do detailed explanation as it was already explained few month ago but I made it backward compatible. It uses IntlDateFormatter (PHP >=5.3.0 with PECL >=1.0.0) if avialable as it is possible (although very rare) to remove this extension in PHP settings, then date_format (PHP >= 5.2.0) if not. Strftime % parameters are accepted as input parameters.
Compatibility should go back to ZenCart 1.3.9 although I did not test it and won't... This was made for Zencart 1.5.8 (PHP >= 7.3) and above anyway.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

30 Nov 2023, 12:38 PM
#22
wtfbbq avatar

wtfbbq

New Zenner

Join Date:
Aug 2012
Posts:
45
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

post 7 by dr byte fixed this issue for me.

for those reading/searching on solution why php 8.1 and 8.2 white screens the site and php 8.0 works fine.
fresh install tested. 1.5.8a

14 Dec 2023, 9:32 PM
#23
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

DrByte:

My bad. Turns out 'en' alone isn't "valid" either. And that's what I had in my clipboard when I pasted. Doh!

EDITED: now recommending:

@setlocale(LC_TIME, ['en_US', 'en_US.UTF-8', 'en-US']);

> 
> Add this to the end of includes/configure.php and YOUR_ADMIN/includes/configure.php
That fix for a blank store with the log "Uncaught Error: Found unconstructed IntlDateFormatter" worked for me!  I changed the two cofigure.php files and now both the customer-facing page and the admin page load on my test install.
14 Dec 2023, 9:33 PM
#24
pixodaros avatar

pixodaros

New Zenner

Join Date:
May 2023
Location:
Canada
Posts:
56
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

DrByte:

My bad. Turns out 'en' alone isn't "valid" either. And that's what I had in my clipboard when I pasted. Doh!

EDITED: now recommending:

@setlocale(LC_TIME, ['en_US', 'en_US.UTF-8', 'en-US']);

> 
> Add this to the end of includes/configure.php and YOUR_ADMIN/includes/configure.php
That fixed worked for me when the customer-facing page and the admin page were both blank and the log listed an "Uncaught Error: Found unconstructed IntlDateFormatter".  Thanks.
9 May 2024, 2:17 PM
#25
georgecy avatar

georgecy

New Zenner

Join Date:
Jan 2015
Location:
Cyprus
Posts:
83
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Hi Guys,
I tested 1.5.8a fresh install with PHP 8.11 and tested all patches without sucess. When using PHP 7.4 all it works without problem. I assume if PHP 8.0 is used it will also work, as per other forum posts(also tested php 8.010 and it works). 2.0 is supposed to solve this issue. The important question for us is the compatibility of the plug ins in version 1.5.8a and 2.0. If the plugins are compatible with both these versions then we go straight to version 2.0. If not we have to sort out the issues with 1.5.8 till the 2.0 with our pluggins are compatible. Any hints of what we maybe doing wrong with the PHP 8.1+ patch is welcome.

9 May 2024, 2:47 PM
#26
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Georgecy:

Hi Guys,
I tested 1.5.8a fresh install with PHP 8.11 and tested all patches without sucess. When using PHP 7.4 all it works without problem. I assume if PHP 8.0 is used it will also work, as per other forum posts(also tested php 8.010 and it works). 2.0 is supposed to solve this issue. The important question for us is the compatibility of the plug ins in version 1.5.8a and 2.0. If the plugins are compatible with both these versions then we go straight to version 2.0. If not we have to sort out the issues with 1.5.8 till the 2.0 with our pluggins are compatible. Any hints of what we maybe doing wrong with the PHP 8.1+ patch is welcome.
I'm not clear on what the issue you're facing is; see post #24 in this thread ... has that change provided by DrByte been applied?

9 May 2024, 3:36 PM
#27
georgecy avatar

georgecy

New Zenner

Join Date:
Jan 2015
Location:
Cyprus
Posts:
83
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Hi Cindy,
The patch @setlocale(LC_TIME, ['en_US', 'en_US.UTF-8', 'en-US']); has been applied to both configure files without success. I initially use GB instead of US but at the end I used the exact statement above. I tried also to changed the Time Zone to Europe/Athens but without success.
[09-May-2024 17:05:51 Europe/Athens] PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'Europe/Athens': U_ILLEGAL_ARGUMENT_ERROR in /includes/classes/zcDate.php:90

When going back to PHP 7.4 or 8.0 the blank pages go away and the the store works as expected.

The logs are the shown below

[09-May-2024 13:32:46 UTC] PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'UTC': U_ILLEGAL_ARGUMENT_ERROR in /includes/classes/zcDate.php:90
Stack trace:
#0 /includes/classes/zcDate.php(90): IntlDateFormatter->__construct()
#1 /includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /includes/autoload_func.php(47): zcDate->__construct()
#3 /admin!/includes/application_top.php(42): require('...')
#4 /admin!/login.php(8): require('...')
#5 /admin!/index.php(11): require('...')
#6 {main}
thrown in /includes/classes/zcDate.php on line 90

[09-May-2024 13:32:46 UTC] Request URI: /admin!/index.php?cmd=login&camefrom=index.php, IP address: xxxxxxx
--> PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'UTC': U_ILLEGAL_ARGUMENT_ERROR in /includes/classes/zcDate.php:90
Stack trace:
#0 /includes/classes/zcDate.php(90): IntlDateFormatter->__construct()
#1 /includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /includes/autoload_func.php(47): zcDate->__construct()
#3 /admin!/includes/application_top.php(42): require('...')
#4 /admin!/login.php(8): require('...')
#5 /admin!/index.php(11): require('...')
#6 {main}
thrown in /includes/classes/zcDate.php on line 90.

9 May 2024, 6:49 PM
#28
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Still trying to figure out what's going on. This link: https://github.com/zencart/zencart/blob/06d461f42a864763bbc003961cc55bf8f735a899/includes/classes/zcDate.php#L87-L91

... identifies lines 87 through 91 of the zcDate.php class for zc158a. The fact that your logs show an issue being thrown on line 90 is what's (er) throwing me off.

9 May 2024, 7:52 PM
#29
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
413
Plugin Contributions:
6

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Setting on line 90 'none' means it uses PHP's or system's default. There might be some bad setting in php.ini or somewhere on the server, just an idea.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

10 May 2024, 6:58 AM
#30
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
285
Plugin Contributions:
1

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

pilou2:

Setting on line 90 'none' means it uses PHP's or system's default. There might be some bad setting in php.ini or somewhere on the server, just an idea.

The error getting thrown could be the result of date.timezone not being set correctly in php.ini.

10 May 2024, 8:32 AM
#31
georgecy avatar

georgecy

New Zenner

Join Date:
Jan 2015
Location:
Cyprus
Posts:
83
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Thanks guys. I added in PHP.ini the following date.timezone = Europe/Athens and also I cleaned installed Zencart 2.0 tested with PHP 8.11 and PHP 8.3. The problem is the same. When I go to PHP 8.0 the installation works. The logs of ZC 2.0 are listed below. No patch was added in ZenCart 2.0.

[10-May-2024 11:04:23 Europe/Athens] PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'Europe/Athens': U_ILLEGAL_ARGUMENT_ERROR in /includes/classes/zcDate.php:89
Stack trace:
#0 /includes/classes/zcDate.php(89): IntlDateFormatter->__construct()
#1 /includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /includes/autoload_func.php(47): zcDate->__construct()
#3 /includes/application_top.php(253): require('...')
#4 /index.php(25): require('...')
#5 {main}
thrown in /includes/classes/zcDate.php on line 89

10 May 2024, 5:52 PM
#32
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
413
Plugin Contributions:
6

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Well, you really need to help us more by giving infos about your settings, like what system you are on, what is your actual locale setting in php.ini, lang.english.php or whatever language file you use?
Did you add some code to set timezone in Zen Cart?...
With information I have now, here is what I can see:

Your problem is not related to this thread original post that was a bug in a specific PHP version you do not used.
The problem disappears when using PHP 8.0 or lower because in these cases Zen Cart do not use IntlDateFormatter.
IntlDateFormatter crashes PHP because it is given bad information/settings.
Probably not the solution but in php.ini, you should have php date.timezone = "Europe/Athens" rather than ```php
date.timezone = Europe/Athens


When timezone or other necessary setting is not define in the code, IntlDateFormatter uses PHP's one (good or bad) and if PHP's locale/timezone is not set, PHP will try to use system setting with more or less success depending on system.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

11 May 2024, 10:16 AM
#33
georgecy avatar

georgecy

New Zenner

Join Date:
Jan 2015
Location:
Cyprus
Posts:
83
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Thanks a lot for the reply.
I am using **Abyss webserver on MacOs 10.12. I can use PHP 7.4, 8.1, 8.2 and 8.3. **
In Php.ini I use date.timezone = "Europe/Athens". I tested also Europe/Nicosia and Asia/Nicosia

I do clean installation from the original code zencart-1.5.8a-patched-2024-04-05. I copied the actual folder in htdocs and run the ZC_Install. The database is clean and populated by the demo products. When Installation is finished the ZC-install requests removal of ZC_Install and gives links to both front end and the admin of the store. Both links show a blank page with the log as shown below. If I go to PHP 8 then all works.

I added all the variations of the @setlocale(LC_TIME, ['en_US', 'en_US.UTF-8', 'en-US']); in both Admin/configure and configure without success. I used also @setlocale(LC_TIME, ['el_GR', 'el_GR.utf8', 'el_GR']); I have set on the computer also Greece as region. I am actually in Cyprus.
In the lang.english.php I used also the original US setting and variations as this one $locales = ['el_GR', 'el_GR.utf8', 'en', 'el.Greece'];

It takes me less than 5 minutes to make a new installation either 1.5.8 or 2.0 just give me some recommendations and I will test them and let you know of the results.

Thanks a lot

[11-May-2024 12:32:50 Europe/Athens] PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'Europe/Athens': U_ILLEGAL_ARGUMENT_ERROR in /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/classes/zcDate.php:90
Stack trace:
#0 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/classes/zcDate.php(90): IntlDateFormatter->__construct()
#1 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/autoload_func.php(47): zcDate->__construct()
#3 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/application_top.php(237): require('...')
#4 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/index.php(25): require('...')
#5 {main}
thrown in /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/classes/zcDate.php on line 90

pilou2:

Well, you really need to help us more by giving infos about your settings, like what system you are on, what is your actual locale setting in php.ini, lang.english.php or whatever language file you use?
Did you add some code to set timezone in Zen Cart?...
With information I have now, here is what I can see:

Your problem is not related to this thread original post that was a bug in a specific PHP version you do not used.
The problem disappears when using PHP 8.0 or lower because in these cases Zen Cart do not use IntlDateFormatter.
IntlDateFormatter crashes PHP because it is given bad information/settings.
Probably not the solution but in php.ini, you should have php date.timezone = "Europe/Athens" rather than ```php
date.timezone = Europe/Athens

> 
> When timezone or other necessary setting is not define in the code, IntlDateFormatter uses PHP's one (good or bad) and if PHP's locale/timezone is not set, PHP will try to use system setting with more or less success depending on system.
11 May 2024, 10:28 AM
#34
georgecy avatar

georgecy

New Zenner

Join Date:
Jan 2015
Location:
Cyprus
Posts:
83
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

testssdddd

11 May 2024, 10:42 AM
#35
georgecy avatar

georgecy

New Zenner

Join Date:
Jan 2015
Location:
Cyprus
Posts:
83
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Thanks a lot for the reply.
I am using Abyss webserver on MacOS 10.12 with a selection of PHP from 7.4-8.1-8.2-8.3.
In PHP.ini I tested date.timezone = "Europe/Athens" and date.timezone = "Europe/Nicosia"

I do clean installation from the zencart-1.5.8a-patched-2024-04-05 using ZC_Install. After installation is complete the links to both Front end and admin show a blank page. i added in both configures the @setlocale(LC_TIME, ['el_GR', 'el_GR.utf8', 'el_GR']); also as Dr Byte gave it also localised.
In lang.English.php I used the default and also the localised $locales = ['el_GR', 'el_GR.utf8', 'en', 'el.Greece'];

In all cases I get a log error as shown below. If I use php 8 then everything works.

I can set up a new installation in a few minutes. I you have any recomendation I can test it and let you know the results.

Thanks a lot.

[11-May-2024 12:32:50 Europe/Athens] PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'Europe/Athens': U_ILLEGAL_ARGUMENT_ERROR in /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/classes/zcDate.php:90
Stack trace:
#0 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/classes/zcDate.php(90): IntlDateFormatter->__construct()
#1 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/autoload_func.php(47): zcDate->__construct()
#3 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/application_top.php(237): require('...')
#4 /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/index.php(25): require('...')
#5 {main}
thrown in /Applications/Abyss Web Server/htdocs/zencart-1.5.8a/includes/classes/zcDate.php on line 90

11 May 2024, 1:11 PM
#36
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Try creating a small .php file in the site's root to determine which timezone-identifiers are available to you. See this (https://www.php.net/manual/en/datetimezone.listidentifiers.php) php.net documentation of the way to do this.

Instead of looping through only the first 5 identifiers as in that example, use foreach to list them all. It could easily be that your webhost's PHP installations don't include either Europe/Athens or Europe/Nicosia.

11 May 2024, 2:24 PM
#37
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
413
Plugin Contributions:
6

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

I just want to add you should check that PHP 'intl' extension is installed, just to be sure. Without it, IntlDateFormatter won't work.
Test lat9 proposed should give us important information.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

13 May 2024, 3:28 PM
#38
georgecy avatar

georgecy

New Zenner

Join Date:
Jan 2015
Location:
Cyprus
Posts:
83
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Hi Guys,
timezone-identifiers available from @lat instructions are listed at the end. The important for my case is Asia/Nicosia, Europe/Athens, which are available.( Running Joomla 4 system report, on same PHP, it shows also Europe/Nicosia and UTC as default timezone. Joomla has no problem with the PHP 8.1.1).

The actual timezone declared in php.ini is date.timezone = "Europe/Athens"

The Intl extension is also available.
I entered also in php.ini
[intl]
intl.default_locale = el_GR.UTF-8 which it had no effect on the issue.

Attached also screenshot From info.php
Attachment 20608

Asia/Aden, Asia/Almaty, Asia/Amman, Asia/Anadyr, Asia/Aqtau, Asia/Aqtobe, Asia/Ashgabat, Asia/Atyrau, Asia/Baghdad, Asia/Bahrain, Asia/Baku, Asia/Bangkok, Asia/Barnaul, Asia/Beirut, Asia/Bishkek, Asia/Brunei, Asia/Chita, Asia/Choibalsan, Asia/Colombo, Asia/Damascus, Asia/Dhaka, Asia/Dili, Asia/Dushanbe, Asia/Famagusta, Asia/Gaza, Asia/Hebron, Asia/Ho_Chi_Minh, Asia/Hong_Kong, Asia/Hovd, Asia/Irkutsk, Asia/Jakarta, Asia/Jayapura, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Kathmandu, Asia/Khandyga, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuching, Asia/Kuwait, Asia/Macau, Asia/Magadan, Asia/Makassar, Asia/Manila, Asia/Muscat, Asia/Nicosia, Asia/Novokuznetsk, etc...., Europe/Amsterdam, Europe/Andorra, Europe/Astrakhan, Europe/Athens, Europe/Belgrade, etc....

13 May 2024, 5:27 PM
#39
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

Georgecy:

Hi Cindy,
The patch @setlocale(LC_TIME, ['en_US', 'en_US.UTF-8', 'en-US']); has been applied to both configure files without success. I initially use GB instead of US but at the end I used the exact statement above. I tried also to changed the Time Zone to Europe/Athens but without success.
[09-May-2024 17:05:51 Europe/Athens] PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'Europe/Athens': U_ILLEGAL_ARGUMENT_ERROR in /includes/classes/zcDate.php:90

When going back to PHP 7.4 or 8.0 the blank pages go away and the the store works as expected.

The logs are the shown below

[09-May-2024 13:32:46 UTC] PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'UTC': U_ILLEGAL_ARGUMENT_ERROR in /includes/classes/zcDate.php:90
Stack trace:
#0 /includes/classes/zcDate.php(90): IntlDateFormatter->__construct()
#1 /includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /includes/autoload_func.php(47): zcDate->__construct()
#3 /admin!/includes/application_top.php(42): require('...')
#4 /admin!/login.php(8): require('...')
#5 /admin!/index.php(11): require('...')
#6 {main}
thrown in /includes/classes/zcDate.php on line 90

[09-May-2024 13:32:46 UTC] Request URI: /admin!/index.php?cmd=login&camefrom=index.php, IP address: xxxxxxx
--> PHP Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'UTC': U_ILLEGAL_ARGUMENT_ERROR in /includes/classes/zcDate.php:90
Stack trace:
#0 /includes/classes/zcDate.php(90): IntlDateFormatter->__construct()
#1 /includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /includes/autoload_func.php(47): zcDate->__construct()
#3 /admin!/includes/application_top.php(42): require('...')
#4 /admin!/login.php(8): require('...')
#5 /admin!/index.php(11): require('...')
#6 {main}
thrown in /includes/classes/zcDate.php on line 90.
The part that makes your post the most difficult to troubleshoot is that line 90 of that file doesn't look anything like calling datefmt_create like the error message is suggesting. Here's the file from v158a: https://github.com/zencart/zencart/blob/v158/includes/classes/zcDate.php#L87C1-L91C15

So what exactly is on YOUR line 90, and why is it different from released code?

Even in v2.0.0 it doesn't refer to datefmt_create anywhere close to that line: https://github.com/zencart/zencart/blob/2.0/includes/classes/zcDate.php
(Although given a few enhancements made to the 2.0 version of that file, it "might" be worth temporarily testing the 2.0 version on your 158a site, as an experiment.)

Definitely the error message you're getting about it saying "No such time zone" means that your PHP environment isn't aware of time zone defaults. So that's a PHP configuration problem. Like others have said, installing the 'intl' extension may help, and I see you've tried that with mixed results.

Your comment about Joomla recognizing it fine doesn't really make any difference here: if Joomla's not using the date functions that Zen Cart is calling then Joomla's not triggering your PHP configuration problem, so it's just hidden by non-use.

Zen Cart doesn't do any trickery. It just uses whatever PHP binary is linked to the vhost that you have configured for the domain you're running the site on. So if your Abyss webserver configuration is pointing this domain to use a certain PHP binary, that's what Zen Cart will run with ... and it will expect that PHP's configuration (installed extensions, ini file contents, etc) to be correct. Zen Cart doesn't do anything fancy with it: it just expects a correctly configured PHP.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 May 2024, 3:50 PM
#40
georgecy avatar

georgecy

New Zenner

Join Date:
Jan 2015
Location:
Cyprus
Posts:
83
Plugin Contributions:
0

Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR in IntlDateFormatter

[B]The file is exactly the same and on line 90 is ** IntlDateFormatter::NONE** Attachment 20615

I tested the 2.0 file and gives the same error on line 92

The 'intl' extension was installed all along.

I refer the issue to the source of the PHP and I am waiting for their comments.