我按照文档一步一步安装了所有的奏鸣曲捆绑包。我仍然有一些错误需要修复一些操作,例如删除图像。我现在面临的所有错误似乎都是相关的。
我提交了两期,一期 SonataMediaBundle和一期SonataClassificationBundle。
在第 118 行的 vendor/sonata-project/media-bundle/Admin/BaseMediaAdmin.php
if ($filter = $this->getRequest()->get('filter')) {
$context = $filter['context']['value'];
} else {
$context = $this->getRequest()->get('context', $this->pool->getDefaultContext());
}
1 - 调试 - 路由器 Sonata\PageBundle\Route\CmsPageRouter 无法匹配,消息“未定义站点”
“没有定义站点”让我猜我应该对此做点什么。我确实使用 SonataPageBundle(添加到数据库中)创建了一个默认页面。我不知道配置中是否有特定的参数要添加。正如我所说,我一步一步地遵循文档,我没有看到任何与定义站点相关的内容。但是我不确定“未定义站点”是否与主要错误有关。
在这里我的 composer.json 以防万一它有用。
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.6.",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0.12",
"sensio/framework-extra-bundle": "~3.0",
"incenteev/composer-parameter-handler": "~2.0",
"sonata-project/core-bundle": "~2.2@dev",
"sonata-project/notification-bundle": "~2.3",
"knplabs/knp-markdown-bundle": "~1.2",
"videlalvaro/php-amqplib": "~2.4",
"liip/monitor-bundle": "~2.0",
"symfony-cmf/routing-bundle": "1.4.@dev",
"jms/serializer-bundle": "0.13.*@dev",
"sonata-project/formatter-bundle": "~2.3",
"sonata-project/markitup-bundle": "~2.1",
"sonata-project/intl-bundle": "~2.2",
"sonata-project/cache-bundle": "~2.2",
"sonata-project/seo-bundle": "~1.1",
"sonata-project/easy-extends-bundle": "~2.1",
"sonata-project/admin-bundle": "~2.3",
"sonata-project/doctrine-orm-admin-bundle": "~2.3",
"sonata-project/user-bundle": "~2.2",
"sonata-project/classification-bundle": "dev-master",
"sonata-project/news-bundle": "dev-master",
"sonata-project/timeline-bundle": "~2.2@dev",
"sonata-project/media-bundle": "~2.4@dev",
"sonata-project/page-bundle": "~2.3@dev"
}
任何解决方案或提示?