Page 5 of 5 FirstFirst ... 345
Results 41 to 42 of 42
  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: 15
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.

 

 
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