Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with DoctrineParamConverter::__construct() #21

Closed
barryj opened this issue Dec 1, 2011 · 2 comments
Closed

Problem with DoctrineParamConverter::__construct() #21

barryj opened this issue Dec 1, 2011 · 2 comments

Comments

@barryj
Copy link

barryj commented Dec 1, 2011

Hi

I was having a problem in the Sonata Dashboard, where the link to Add New Snapshot was giving me a Catchable Fatal Error with method setPage. I followed the issues #19 and #20, and added the commit 7afc50e, as directed.

Now every link in the Sonata Dashboard (User, Group, Page, Snapshot, with both Add New and List) all give the same error:

Catchable Fatal Error: Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Symfony\Bundle\DoctrineBundle\Registry given, called in /Users/barry/Symfony/app/cache/dev/appDevDebugProjectContainer.php on line 1755 and defined in /Users/barry/Symfony/vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php line 31

The error as shown on the log is:

ErrorException: Catchable Fatal Error: Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Symfony\Bundle\DoctrineBundle\Registry given, called in /Users/barry/Symfony/app/cache/dev/appDevDebugProjectContainer.php on line 1755 and defined in /Users/barry/Symfony/vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php line 31 (uncaught exception) at /Users/barry/Symfony/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php line 65

Anybody know whats going on here?

Thanks in advance

Barry

@barryj
Copy link
Author

barryj commented Dec 2, 2011

I have gone back to a backup of my Symfony installation, and reinstalled the SonataPageBundle, this time not using the commit from #19 and #20. I am now getting the original error, as before it is only when i click "Snapshot - Add New"

The error is:

Catchable Fatal Error: Argument 1 passed to Sonata\PageBundle\Model\Snapshot::setPage() must be an instance of Sonata\PageBundle\Model\PageInterface, null given, called in /Users/barry/Symfony/vendor/bundles/Sonata/PageBundle/Controller/SnapshotAdminController.php on line 38 and defined in /Users/barry/Symfony/vendor/bundles/Sonata/PageBundle/Model/Snapshot.php line 236
500 Internal Server Error - ErrorException

Barry

@rande
Copy link
Member

rande commented Dec 4, 2011

fixed e80e600

@rande rande closed this as completed Dec 4, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants