Comments (2)
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.
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)
- Error when creating a block with an image HOT 4
- Error on create custom block
- Parent must be an object NULL given. HOT 2
- Upgrade to Sylius 1.0.0-beta.2 and new plugin guidelines HOT 4
- CustomBlock's Index page aggregates items of all children classes
- ProductBlock should use autocomplete instead of simple choice
- Add basic SEO to static content pages HOT 2
- How it is better to add WYSIWYG for static content? HOT 2
- Following installation instructions fails on beta2 HOT 2
- Breadcrumbs in static content pages template
- Routing broken? HOT 2
- Beta-2 compatibility HOT 2
- sylius/sylius composer constraint prevents sylius upgrade HOT 7
- Unknown fetch type '12'
- Unit tests (phpspec) are missing
- jackalope/jackalope-doctrine-dbal HOT 2
- Unable to install - conflicting composer requirements HOT 5
- Unable to enable bundle - invalid class reference
- Cannot get it working on Sylius v1.1.x HOT 6
- ImagineBlock Deprecated in CMF Bundle 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 cmsplugin.