更新奏鸣曲核心后的错误奏鸣曲.core.form.type.*
Posted
技术标签:
【中文标题】更新奏鸣曲核心后的错误奏鸣曲.core.form.type.*【英文标题】:errors sonata.core.form.type.* after update sonata core 【发布时间】:2019-05-17 17:04:21 【问题描述】:我更新到 Sonata core 3.13.4 后出现错误
网址:/admin/sonata/page/page/tree
错误: 为服务“sonata.core.form.type.equal”指定的类型名称与实际名称不匹配。预期为“Sonata\CoreBundle\Form\Type\EqualType”,给定“Sonata\Form\Type\EqualType”
有什么想法吗?
这是我安装的包
"symfony/symfony": "^3",
"symfony/swiftmailer-bundle": "^2.3.10",
"symfony/monolog-bundle": "^3.0.2",
"symfony/polyfill-apcu": "^1.0",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"twig/twig": "^1.34",
"doctrine/orm": "^2.5",
"doctrine/phpcr-odm": "^1.2",
"doctrine/phpcr-bundle": "^1.3",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"gedmo/doctrine-extensions": "^2.4",
"pixassociates/sortable-behavior-bundle": "^1.1",
"beberlei/DoctrineExtensions": "^1.0",
"symfony-cmf/routing-bundle": "^2.0",
"knplabs/knp-markdown-bundle": "^1.5",
"knplabs/doctrine-behaviors": "^1.1",
"knplabs/knp-paginator-bundle": "^2.6",
"sonata-project/core-bundle": "^3",
"sonata-project/admin-bundle": "^3",
"sonata-project/doctrine-orm-admin-bundle": "^3",
"sonata-project/media-bundle": "^3",
"sonata-project/classification-bundle": "^3",
"sonata-project/easy-extends-bundle": "^2",
"sonata-project/intl-bundle": "^2",
"sonata-project/notification-bundle": "^3",
"sonata-project/formatter-bundle": "^3",
"sonata-project/datagrid-bundle": "^2",
"sonata-project/seo-bundle": "^2",
"sonata-project/page-bundle": "^3",
"sonata-project/block-bundle": "^3",
"sonata-project/user-bundle": "4.1.1",
"sonata-project/translation-bundle": "^2",
"sonata-project/timeline-bundle": "^3",
"egeloen/ckeditor-bundle": "^5.0",
"tilleuls/ckeditor-sonata-media-bundle": "^1.0",
"friendsofsymfony/rest-bundle": "^2.1",
"stof/doctrine-extensions-bundle": "^1.2",
"incenteev/composer-parameter-handler": "^2.0",
"jackalope/jackalope-doctrine-dbal": "^1.2",
"nelmio/api-doc-bundle": "^2.13",
"simplethings/entity-audit-bundle": "^1.0",
"a2lix/i18n-doctrine-bundle": "@stable",
"a2lix/auto-form-bundle": "0.x@dev",
"a2lix/translation-form-bundle": "2.4.1",
"Migo2468/sonata-translation-bundle": "dev-master",
"cron/cron-bundle": "^1.2",
"knpuniversity/oauth2-client-bundle": "^1.25",
"league/oauth2-facebook": "^2.0"
【问题讨论】:
【参考方案1】:我们对核心捆绑包进行了不成功的拆分,我们正在尝试解决这些问题。目前,解决方案是降级。
您能否在 repo https://github.com/sonata-project/SonataCoreBundle 中打开一个关于此的问题。
【讨论】:
感谢您的回答。 你能告诉我哪个版本的奏鸣曲可以兼容吗?我在早期版本中遇到了其他问题(例如 Twig 和这个问题 github.com/sonata-project/SonataCoreBundle/issues/607)以上是关于更新奏鸣曲核心后的错误奏鸣曲.core.form.type.*的主要内容,如果未能解决你的问题,请参考以下文章