Comments (7)
php cecil.phar self-update
Again works for me! :-) php 8.1.10
from cecil.
Yup, 7.5.2 fixes it - super speedy as always!
from cecil.
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.
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.
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.
@ahnlak, could you try the last release please (7.5.2, php cecil.phar self-update
) ?
from cecil.
Great! :-)
from cecil.
Related Issues (20)
- Static dotfiles ignored HOT 1
- [Insight] Your project object parameters should be type hinted - in src/Renderer/Twig.php, line 77 HOT 1
- Call to a member function getConfig() on null HOT 3
- Prevent build errors due to incompatible cache content after update HOT 3
- cecil serve is not working as expected HOT 4
- _term_ generic template override HOT 4
- Injection of reload script fails when HTML postprocessed HOT 2
- Provide access to paginator path setting HOT 5
- Pagination page path VS ID
- Provide raw access to all page front matter HOT 2
- exclude causes blank page.section HOT 3
- output/pagetypeformats in config.yml HOT 2
- Pages with numeric prefixes get their URLs mangled HOT 4
- Responsible disclosure policy HOT 7
- all-contributors bot HOT 6
- Resume theme support HOT 2
- cecil serve : localhost refused to connect HOT 18
- Theme Development Best Practices
- How can I run php cecil.phar serve inside DDEV
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cecil.