flojon / KoalaContentBundle

A simple Symfony 2 CMS bundle using Mercury Editor
http://jejacks0n.github.com/mercury/
MIT License
10 stars 4 forks source link

RouteRepository contains 1 abstract method and must therefore be declared #6

Closed benoitboucart closed 12 years ago

benoitboucart commented 12 years ago

Hi!

I have the following error when I install the bundle:

Fatal error: Class Koala\ContentBundle\Entity\RouteRepository contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Cmf\Component\Routing\RouteRepositoryInterface::getRouteByName) in /usr/local/zend/apache2/.../Symfony/vendor/koala/content-bundle/Koala/ContentBundle/Entity/RouteRepository.php on line 33

When I implement all methods I've other erros

Catchable Fatal Error: Argument 1 passed to Symfony\Cmf\Component\Routing\DynamicRouter::getMatcher() must be an instance of Symfony\Component\Routing\RouteCollection, array given, called in /usr/.../symfony_test/demo_users/Symfony/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php on line 196 and defined in /usr/.../symfony_test/demo_users/Symfony/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php line 230

When I run the php app/console koala_content:setup command:

PHP Fatal error:  Call to undefined method Koala\ContentBundle\Entity\MenuItem::setPage() in /usr/.../vendor/koala/content-bundle/Koala/ContentBundle/Command/SetupCommand.php on line 97

Fatal error: Call to undefined method Koala\ContentBundle\Entity\MenuItem::setPage() in /usr/.../Symfony/vendor/koala/content-bundle/Koala/ContentBundle/Command/SetupCommand.php on line 97

Thanks for the help!

flojon commented 12 years ago

Hello,

Thanks for reporting this.

Seems there was some changes in the Symfony CMF Routing component. I'm not able to fix it right now but as a workaround you can checkout an older version of the library so try this:

cd vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing
git checkout 7d5b90

I've also pushed a fix for the last error. I changed a function name and forgot to change it in the setup command. So make sure you pull the latest changes for KoalaContentBundle.

Blessings, Jonas

flojon commented 12 years ago

Hello again,

This should now be fixed in the master branch. Please let me now if you have other issues or if you have any feedback regarding this bundle.

Blessings, Jonas

benoitboucart commented 12 years ago

Thanks @flojon for the fast fix!

flojon commented 12 years ago

No worries. :)