Comments (9)
Hi Guys,
I had the same issue in one of my projects running symfony 2.4 and it took me time to figure out which bundle was the cause of the error. My guess is that in the last commit the service argument should have an id otherwise we get this error.
Regards
from sonataintlbundle.
@fungio @dearaujoj Did you clear the cache? Completely? (rm -r
)
Could you please give us composer info -i | grep sonata-project
and composer info -i | grep symfony
commands?
@dearaujoj Please note that SF 2.4 is not maintained from a long time. You should upgrade to 2.7 / 2.8.
from sonataintlbundle.
Hi,
rm -r
didn't change anything.
here is the result of the first command
sonata-project/admin-bundle 2.3.7 Symfony SonataAdminBundle
sonata-project/block-bundle 2.2.13 Symfony SonataBlockBundle
sonata-project/cache 1.0.6 Cache library
sonata-project/core-bundle dev-master eaf3812 Symfony SonataCoreBundle
sonata-project/doctrine-orm-admin-bundle 2.2.x-dev 82e2f02 Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter 1.4.1 Lightweight Exporter library
sonata-project/intl-bundle dev-master 3bd36c0 Symfony SonataIntlBundle
for the second
friendsofsymfony/elastica-bundle 3.0.x-dev 30f38ba Elasticsearch PHP integration for your Symfony2 project using Elastica
friendsofsymfony/jsrouting-bundle 1.4.2 A pretty nice way to expose your Symfony2 routing to client applications.
friendsofsymfony/user-bundle dev-master 45d6f40 Symfony FOSUserBundle
symfony/assetic-bundle v2.7.1 Integrates Assetic into Symfony2
symfony/icu v1.2.2 Contains an excerpt of the ICU data and classes to load it.
symfony/monolog-bundle v2.8.2 Symfony MonologBundle
symfony/swiftmailer-bundle v2.3.9 Symfony SwiftmailerBundle
symfony/symfony v2.4.0 The Symfony PHP framework
We know that we need to upgrade but for the moment it's not a priority.
Note that I made a test by adding id="security.context" and I didn't get any error.
Thanks
from sonataintlbundle.
@dearaujoj can you please comment this on the commit itself (i mean the part with adding id=...) ??
from sonataintlbundle.
@OskarStark sure, in the Ressource/config/intl.xml
file, the commit 8ab0b0e introduced the following change line 80:
<argument type="service" id="security.context" />
<argument />
became
<argument type="service" />
and in my case this is raising the error while ClearCache script is triggered.
But if I add id="security.context" back as an attribute of argument element, then there is no issue. This been said it works also if I remove the type argument, I just tried.
Hope this will help ;-)
from sonataintlbundle.
can you please create a PR with this change?
from sonataintlbundle.
ping @rande
from sonataintlbundle.
thank you @dearaujoj
from sonataintlbundle.
My pleasure ;-)
from sonataintlbundle.
Related Issues (20)
- Add a tag for symfony 3 support HOT 5
- Cache number and date formatters? HOT 5
- Drop support for old php / symfony versions
- Region ignored in language filter HOT 3
- Allow Twig 2 HOT 6
- Why intl bundle conflicts with user bundle ? HOT 1
- Conflict issue with user-bundle HOT 13
- Deprecate some Twig extensions HOT 2
- Provide autowiring for DateTimeHelper HOT 3
- Strict type checking introduced in 2.6.0 throws error on Doctrine decimal type HOT 1
- Problem with twig datetime extension for twig 2.10
- Deprecate this bundle HOT 14
- Conflict with sonata-project/intl-bundle HOT 11
- Incompatible with php8 HOT 4
- Strict type checking throws error on formatting Doctrine decimal type as number HOT 11
- sonata.intl.templating.helper.number service does not exist
- RequestStackDetector does not have the default locale anymore. HOT 2
- Make Templating Dependency Optional
- Sonata\IntlBundle\Helper\BaseHelper::getLocale() problem HOT 11
- default for locale must not null in list_decimal.html.twig HOT 3
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 sonataintlbundle.