Open emgiezet opened 10 years ago
can you give us the output of composer show --installed
?
the class should definitely be installed https://github.com/symfony-cmf/Routing/blob/1.1/RouteReferrersReadInterface.php if you have a stable release of the routing 1.1 component which is a dependency of the RoutingBundle 1.1
Those I have
symfony-cmf/block-bundle 1.0.x-dev 318d98c Symfony CMF Block Bundle
symfony-cmf/blog-bundle dev-master 90b4d38 Symfony CMF Blog Bundle
symfony-cmf/content-bundle 1.0.x-dev fbc3a45 Symfony CMF Content Bundle
symfony-cmf/core-bundle dev-master 93ea17f Symfony CMF Core Bundle
symfony-cmf/create-bundle dev-master ee440b9 Symfony Bundle for createphp and create.js. The easiest way to make any site editable and have semantic annotations with RDFa.
symfony-cmf/media-bundle 1.0.x-dev fd2f47d Symfony CMF Media Bundle
symfony-cmf/menu-bundle 1.0.x-dev befdef8 Symfony CMF Menu Bundle
symfony-cmf/routing 1.1.0-beta2 Extends the Symfony2 routing component for dynamic routes and chaining several routers
symfony-cmf/routing-auto-bundle 1.0.0-alpha8 Bundle which automatically creates and manages routes for persisted objects
symfony-cmf/routing-bundle 1.1.x-dev 96d0649 Symfony RoutingBundle
symfony-cmf/search-bundle dev-master 0ec707c Symfony SearchBundle
symfony-cmf/simple-cms-bundle 1.0.x-dev 165e4b8 A simple CMS bundle based on the Symfony CMF
symfony-cmf/symfony-cmf 1.0.x-dev 65fe1b6 Symfony Content Management Framework
symfony-cmf/tree-browser-bundle 1.0.x-dev 45d62a9 Symfony CMF Tree Browser Bundle
ah i see now you have an explicit dependency on "symfony-cmf/routing": "1.1.0-beta2",
.. could you remove that?
ok removing and updating composer.
There is some fubard depenancy between blog
=> routing-bundle
=> routing
I've tried in beta and dev stability.
Updated. And still same error
symfony-cmf/block-bundle 1.0.x-dev 318d98c Symfony CMF Block Bundle
symfony-cmf/blog-bundle dev-master 90b4d38 Symfony CMF Blog Bundle
symfony-cmf/content-bundle 1.0.x-dev fbc3a45 Symfony CMF Content Bundle
symfony-cmf/core-bundle dev-master 93ea17f Symfony CMF Core Bundle
symfony-cmf/create-bundle dev-master ee440b9 Symfony Bundle for createphp and create.js. The easiest way to make any site editable and have semantic annotations with RDFa.
symfony-cmf/media-bundle 1.0.x-dev fd2f47d Symfony CMF Media Bundle
symfony-cmf/menu-bundle 1.0.x-dev befdef8 Symfony CMF Menu Bundle
symfony-cmf/routing 1.1.0-beta2 Extends the Symfony2 routing component for dynamic routes and chaining several routers
symfony-cmf/routing-auto-bundle 1.0.0-alpha8 Bundle which automatically creates and manages routes for persisted objects
symfony-cmf/routing-bundle 1.1.x-dev 96d0649 Symfony RoutingBundle
symfony-cmf/search-bundle dev-master 0ec707c Symfony SearchBundle
symfony-cmf/simple-cms-bundle 1.0.x-dev 165e4b8 A simple CMS bundle based on the Symfony CMF
symfony-cmf/symfony-cmf 1.0.x-dev 65fe1b6 Symfony Content Management Framework
symfony-cmf/tree-browser-bundle 1.0.x-dev 45d62a9 Symfony CMF Tree Browser Bundle
./composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Writing lock file
Generating autoload files
Download or update create
Download or update ckeditor
PHP Fatal error: Interface 'Symfony\Cmf\Component\Routing\RouteReferrersReadInterface' not found in /home/mgz/workspace/simcms/vendor/symfony-cmf/blog-bundle/Symfony/Cmf/Bundle/BlogBundle/Document/Blog.php on line 15
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
it works in the cmf-sandbox .. see https://github.com/symfony-cmf/cmf-sandbox/blob/master/composer.json however it seems like others are having issues too https://github.com/symfony-cmf/symfony-cmf-docs/pull/376
/cc @dantleech
I will have a look at the other issue tonight. I would have guessed its related to RoutingAuto but its pinned at alpha8 in this case.
the alpha8 is from cmf-sandbox composer.json
Ok @ alpha-10
it crashes with:
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing symfony-cmf/routing-auto-bundle (1.0.0-alpha8)
- Installing symfony-cmf/routing-auto-bundle (1.0.0-alpha10)
Downloading: 100%
Writing lock file
Generating autoload files
Download or update create
Download or update ckeditor
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "auto_route_mapping" under "cmf_routing_auto"
This error is with this installed packages
symfony-cmf/block-bundle 1.0.x-dev 318d98c Symfony CMF Block Bundle
symfony-cmf/blog-bundle dev-master 90b4d38 Symfony CMF Blog Bundle
symfony-cmf/content-bundle 1.0.x-dev fbc3a45 Symfony CMF Content Bundle
symfony-cmf/core-bundle dev-master 93ea17f Symfony CMF Core Bundle
symfony-cmf/create-bundle dev-master ee440b9 Symfony Bundle for createphp and create.js. The easiest way to make any site editable and have semantic annotations with RDFa.
symfony-cmf/media-bundle 1.0.x-dev fd2f47d Symfony CMF Media Bundle
symfony-cmf/menu-bundle 1.0.x-dev befdef8 Symfony CMF Menu Bundle
symfony-cmf/routing 1.1.0-beta2 Extends the Symfony2 routing component for dynamic routes and chaining several routers
symfony-cmf/routing-auto-bundle 1.0.0-alpha10 Bundle which automatically creates and manages routes for persisted objects
symfony-cmf/routing-bundle 1.1.x-dev 96d0649 Symfony RoutingBundle
symfony-cmf/search-bundle dev-master 0ec707c Symfony SearchBundle
symfony-cmf/simple-cms-bundle 1.0.x-dev 165e4b8 A simple CMS bundle based on the Symfony CMF
symfony-cmf/symfony-cmf 1.0.x-dev 65fe1b6 Symfony Content Management Framework
symfony-cmf/tree-browser-bundle 1.0.x-dev 45d62a9 Symfony CMF Tree Browser Bundle
there were changes in the configuration which are causing Unrecognized options "auto_route_mapping" under "cmf_routing_auto"
.. not sure if the changes have been documented yet ..
@dantleech can we update the 1.0/master or at least the master branch on the cmf-sandbox to the latest release of the routing auto bundle?
Thats to be expected. alpha10 introduced a new configuration schema. alpha9 is the latest release with the old schema. The new schema looks like this: http://symfony.com/doc/master/cmf/bundles/routing_auto/introduction.html#usage
Saying that -- I wonder if upgrading the blog to the latest version would be a good idea? Maybe it would be better to wait until the 1.1 release of ODM // @lsmith77 @dbu
we already have a 1.0 branch .. so if you want you can do it in master
yay! we got a solution! waiting for your commit and push ;) ! :+1: @dantleech you're my hero!
ping?
any luck with this?
Not yet -- it should be quite simple to do however I guess, there is documentation for the routing auto bundle:
If not maybe I can have a look later / this weekend.
Hello!
Rewrited the autorouting_default.yml to this:
cmf_routing_auto:
mappings:
Sandbox\CalendarBundle\Document\Calendar:
content_path:
routing_path:
provider: [ specified, {path: cms/routes}]
exists_action:
strategy: use
not_exists_action:
strategy: throw_exception
namespace:
provider: [ specified, {path: stream}]
exists_action:
strategy: use
not_exists_action:
strategy: create
content_name:
provider: [ content_method, {method: getName}]
exists_action:
strategy: auto_increment
not_exists_action:
strategy: create
Sandbox\CalendarBundle\Document\Event:
content_path:
routing_path:
provider: [ content_method, {method: getCalendar}]
exists_action:
strategy: use
not_exists_action:
strategy: throw_exception
date:
provider: [ content_datetime, {method: getDate}]
exists_action:
strategy: use
not_exists_action:
strategy: create
content_name:
provider: [ content_method, {method: getTitle}]
exists_action:
strategy: auto_increment
not_exists_action:
strategy: create
Now I get rid of the error.
But poof!
The missing interface comes back!
Bazinga!
Strange. Try adding "symfony-cmf/routing": "1.1.0" to your composer.json. If I read correctly above you are on
beta2which is 6 months old (but I guess still matches routing-autos specification of
1.1.*`.
Also, you might want to check out this tutorial:
http://symfony.com/doc/master/cmf/cookbook/creating_a_cms/index.html
Which really lays the foundations for a blog as much as this bundle does.
the routing 1.1.0-beta2 is still before the BC break we did to cleanup the interface names. you really need to have at least 1.1.0 stable - maybe one of your other deps is pulling things down to the beta version. you could try
"symfony-cmf/routing-bundle": "1.1.*@stable",
and then see where you get a conflict.
Hello!
Im using blog bundle
And i cant find this interface... Just wested entire day with
composer.phar update
Any help will be gr8!
Cheers! Max