Page 5 of 5 FirstFirst ... 345
Results 41 to 44 of 44
  1. #41
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    133
    Plugin Contributions
    5

    Default Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR

    Quote Originally Posted by Georgecy View Post
    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....
    It seems your PHP compilation is missing ICU timezone data.
    Here is what I get (ICU TZData version):
    Name:  Capture d'écran 2024-05-16 184228.png
Views: 34
Size:  11.4 KB

    In PHP there are two time zone objects, DateTimeZone that you tested with lat9 test and IntlTimeZone. Normally Intl DateFormatter can use both, but it is possible that when it is not explicitly written in code, default might be IntlTimeZone that uses ICU time zone data missing in your PHP.
    This might be your problem, not 100% sure though.
    Last edited by pilou2; 16 May 2024 at 11:03 AM.

  2. #42
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    133
    Plugin Contributions
    5

    Default Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR

    You can try this code to test if ICU time zone data are here:

    PHP Code:
    <?php
    $zone_iter
    =IntlTimeZone::createEnumeration('GR'); // Create timezone iterator. To list one country time zones, use country code : 'Au', 'US', 'Fr', 'jp' ... For all countries, use NULL.
    $zone_iter->rewind();
    while(
    $zone_iter->valid()){
        echo 
    $zone_iter->current() . "\n";
       
    $zone_iter->next();
    }
    ?>
    You should get Europe/Athens if data are here, if not an error code or nothing.
    You can replace 'GR' by 'CY' for Cyprus.

  3. #43
    Join Date
    Jan 2015
    Location
    Cyprus
    Posts
    61
    Plugin Contributions
    0

    Default Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR

    Hi Guys Thanks a lot for the support,
    Finally I got today the requested PHP 8.1.28. With a note from the developer as follows

    "It should solve all the PHP Intl extension issues you have experienced.
    The problem was that for some obscure reasons, the Intl extension
    shipping with all our packages were not able to read its localization
    and timezone data despite it being available as a library."

    After applying the @setlocale(LC_TIME, ['en_US', 'en_US.UTF-8', 'en-US']); in configures we are back in Business.
    The developer recommended to use PHP8.2+ and I will test the latest version as soon as I receive it.

    Now is it recomended to skip ZC 1.5.8 and upgrade straight to ZC 2.01 from ZC1.5.7d? Or is safer to go to 1.5.8a for more compatibility?

    Thanks a lot again.

  4. #44
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,784
    Plugin Contributions
    124

    Default Re: Site Crashed U_ILLEGAL_ARGUMENT_ERROR

    > Now is it recomended to skip ZC 1.5.8 and upgrade straight to ZC 2.01 from ZC1.5.7d?

    Yes.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. v158 IntlDateFormatter php issue
    By gothstone in forum Bug Reports
    Replies: 2
    Last Post: 22 Feb 2024, 11:55 AM
  2. v158 U_illegal_argument_error
    By jeking in forum General Questions
    Replies: 2
    Last Post: 2 Nov 2023, 08:13 PM
  3. v156 Site and Admin crashed!!!
    By wmorris in forum General Questions
    Replies: 9
    Last Post: 10 Jun 2019, 05:20 PM
  4. Replies: 11
    Last Post: 19 Sep 2009, 06:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR