IntlDateFormatter

  1. 2 years ago

    Upon setting my webserver to the public directory and choosing the baseplate template, I get no admin bar and the following error is given at the very bottom of the page "Fatal error: Class 'IntlDateFormatter' not found in C:\tdk\library\BaseKit\Twig\Extension\Editor.php on line 263"

    However this php extension (php_intl) is enabled on the webserver. Any guidance would be appreciated.

    I was able to resolve the problem. I copied all the icu*.dll files from the php folder into the apache/bin folder. I think the issue lies in wamp not writing the PATH variable for the php folder upon installation for some reason.

  2. richardhealy

    1 Jul 2015 Administrator

    Can you tell us what system / setup you're using? I will have a look for you.

  3. Windows 8.1
    WampServer 2.5
    PHP 5.5.12
    Apache 2.4.9

    I thought maybe it was just wamp so I installed mamp for windows and all I got with mamp were blank pages after selecting the template.

  4. richardhealy

    1 Jul 2015 Administrator

    Do you know which version of the Template Viewer you downloaded?

  5. Edited 2 years ago by cromag

    7.60_2015-06-24_142447
    The latest stable download available

  6. richardhealy

    1 Jul 2015 Administrator

    So the line:

    ;extension=php_intl.dll

    is uncommented in php.ini? And you've restarted the Apache server? If you could run phpinfo(); in a PHP file somewhere and see if the php intl extension is enabled.

  7. Edited 2 years ago by cromag

    I'm not php guru so I'm not really sure what to be looking for but I think this is it..

    date
    date/time support enabled
    "Olson" Timezone Database Version 2014.2
    Timezone Database internal
    Default timezone Europe/Paris

    Directive Local Value Master Value
    date.default_latitude 48.88778 48.88778
    date.default_longitude 2.31806 2.31806
    date.sunrise_zenith 90.583333 90.583333
    date.sunset_zenith 90.583333 90.583333
    date.timezone Europe/Paris Europe/Paris

    And there is no ; in front of extension=php_intl.dll in php.ini

  8. richardhealy

    2 Jul 2015 Administrator

    I'll grab a windows machine today and have a look for you.

  9. richardhealy

    2 Jul 2015 Administrator

    I tried on

    • Windows 7
    • Apache 2.4.9
    • Wamp 2.5
    • PHP 5.5.12

    Out of the box everything seemed to work fine.

    In the Wamp settings (icon in the toolbar) I went to PHP > PHP extensions and I could see php_intl was checked.

    Another point to make is that the Template Viewer needs to be installed in the top level of your localhost. It will always use http://localhost/ (so it doesn't work in a folder like http://localhost/tdk/).

    Let me know if you are still having issues.

  10. Edited 2 years ago by cromag

    I was able to resolve the problem. I copied all the icu*.dll files from the php folder into the apache/bin folder. I think the issue lies in wamp not writing the PATH variable for the php folder upon installation for some reason.

or Sign Up to reply!