Code Monkey home page Code Monkey logo

Comments (2)

gdecorbiac avatar gdecorbiac commented on August 23, 2024

Full stack trace :

[1] Doctrine\ODM\PHPCR\Exception\InvalidArgumentException: Parameter $document needs to be an object, NULL given
    at n/a
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/DocumentManager.php line 921

    at Doctrine\ODM\PHPCR\DocumentManager->getNodeForDocument(null)
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/sylius/sylius/src/Sylius/Bundle/ResourceBundle/Doctrine/ODM/PHPCR/EventListener/NameResolverListener.php line 66

    at Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener\NameResolverListener->onEvent(object(ResourceControllerEvent), 'lakion_sylius_cms.static_content.pre_create', object(TraceableEventDispatcher))
        in  line 

    at call_user_func(array(object(NameResolverListener), 'onEvent'), object(ResourceControllerEvent), 'lakion_sylius_cms.static_content.pre_create', object(TraceableEventDispatcher))
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php line 106

    at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ResourceControllerEvent), 'lakion_sylius_cms.static_content.pre_create', object(ContainerAwareEventDispatcher))
        in  line 

    at call_user_func(object(WrappedListener), object(ResourceControllerEvent), 'lakion_sylius_cms.static_content.pre_create', object(ContainerAwareEventDispatcher))
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 174

    at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener)), 'lakion_sylius_cms.static_content.pre_create', object(ResourceControllerEvent))
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 43

    at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('lakion_sylius_cms.static_content.pre_create', object(ResourceControllerEvent))
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php line 136

    at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('lakion_sylius_cms.static_content.pre_create', object(ResourceControllerEvent))
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/sylius/sylius/src/Sylius/Bundle/ResourceBundle/Controller/EventDispatcher.php line 59

    at Sylius\Bundle\ResourceBundle\Controller\EventDispatcher->dispatchPreEvent('create', object(RequestConfiguration), object(StaticContent))
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/sylius/sylius/src/Sylius/Bundle/ResourceBundle/Controller/ResourceController.php line 240

    at Sylius\Bundle\ResourceBundle\Controller\ResourceController->createAction(object(Request))
        in  line 

    at call_user_func_array(array(object(ResourceController), 'createAction'), array(object(Request)))
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 153

    at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 68

    at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 168

    at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
        in /home/geoffroy/Dev/ltdm-standard-dev/web/app_dev.php line 43

    at require('/home/geoffroy/Dev/ltdm-standard-dev/web/app_dev.php')
        in /home/geoffroy/Dev/ltdm-standard-dev/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php line 40

from cmsplugin.

gdecorbiac avatar gdecorbiac commented on August 23, 2024

Ok, so after digging further, it appears that I needed to init phpcr repository using this command:

$ php bin/console doctrine:phpcr:repository:init

So it's not a bug but IMHO, it should be mentioned in installation documentation

from cmsplugin.

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.