Coder Social home page Coder Social logo

Comments (9)

dearaujoj avatar dearaujoj commented on May 17, 2024

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.

soullivaneuh avatar soullivaneuh commented on May 17, 2024

@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.

dearaujoj avatar dearaujoj commented on May 17, 2024

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.

OskarStark avatar OskarStark commented on May 17, 2024

@dearaujoj can you please comment this on the commit itself (i mean the part with adding id=...) ??

from sonataintlbundle.

dearaujoj avatar dearaujoj commented on May 17, 2024

@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.

OskarStark avatar OskarStark commented on May 17, 2024

can you please create a PR with this change?

from sonataintlbundle.

OskarStark avatar OskarStark commented on May 17, 2024

ping @rande

from sonataintlbundle.

OskarStark avatar OskarStark commented on May 17, 2024

thank you @dearaujoj

from sonataintlbundle.

dearaujoj avatar dearaujoj commented on May 17, 2024

My pleasure ;-)

from sonataintlbundle.

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.