Giter Club home page Giter Club logo

Comments (7)

Kpjas avatar Kpjas commented on September 22, 2024 1

php cecil.phar self-update

Again works for me! :-) php 8.1.10

from cecil.

ahnlak avatar ahnlak commented on September 22, 2024 1

Yup, 7.5.2 fixes it - super speedy as always!

from cecil.

ArnaudLigny avatar ArnaudLigny commented on September 22, 2024

Hello @ahnlak,

Thanks for the report. Could you give me more details about the context?

In fact the Symfony/Intl component is used by Twig/Extra extension and more precisely by the format_date filter: do you use it?

So the problem is that the Symfony/Intl layer works only with the "en" locale... In the case of another locale, PHP ext-intl is required (see https://php.net/intl.setup).

from cecil.

ahnlak avatar ahnlak commented on September 22, 2024

Sure; clean Ubuntu 20.04 install, and apt install php, which installs PHP 7.4.3.

Clean copy of Cecil (7.5.0), as per the quickstart.

Running cecil.phar new:site will complain about a couple of PHP packages missing (gd, simplexml), but runs fine once those are installed.

Running cecil.phar build will fail with the error mentioned above (I'm guessing the default new site stuff includes some date formatting?) - installing intl (apt install php-intl) resolves it and allows the build to complete.

It probably only came up because I never happened to need intl installed on my dev box; until I tested on a clean Ubuntu, I hadn't realised that other packages are explicitly checked for (gd et al) so perhaps the intl requirement can be added there?

from cecil.

ArnaudLigny avatar ArnaudLigny commented on September 22, 2024

OK, I see what's happening: the Intl extension is only required if you need to format a date (format_date filter) with a locale different from "en".
So, basically, I tested if the class \Locale was available (that mean Intl extension is loaded) but... Symfony/Intl implement this class, but this class is not really implemented 🙃

I'm working on a better way to know if the Intl extension is available or not.

from cecil.

ArnaudLigny avatar ArnaudLigny commented on September 22, 2024

@ahnlak, could you try the last release please (7.5.2, php cecil.phar self-update) ?

from cecil.

ArnaudLigny avatar ArnaudLigny commented on September 22, 2024

Great! :-)

from cecil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.