Pim-community-dev: 我无法删除chanel

创建于 2016-04-26  ·  3评论  ·  资料来源: akeneo/pim-community-dev

你好,

我使用 Akeneo 1.4.23,当我尝试删除 chanel 时,收到此消息:无法删除元素。

在我的日志中,我收到此消息:
[2016-04-26 15:54:07] request.ERROR:未捕获的 PHP 异常 Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException:“找不到用于“POST /configuration/channel/3/remove”的路由:方法不允许(允许:删除)”在/var/www/akeneo/branches_1.0_804df805-c8e3-436e-80e1-9a56002500eb/app/cache/ppr/classes.php line 2884 {"exception":" object "} []

有人可以帮我吗?
我不明白这个错误。

谢谢你。

bug to reproduce

所有3条评论

嗨@lpxavi

您收到此错误是因为路由/configuration/channel/3/remove只允许 DELETE 方法。
您尝试使用 POST 方法访问此路由。

如果您没有进行任何自定义开发,您能否通过操作系统/浏览器配置和一组重现步骤来改进您的消息? 我无法在http://demo.akeneo.com/ 中重现它

一些文档:
https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol > 请求方法
http://symfony.com/doc/current/book/routing.html
https://github.com/akeneo/pim-community-dev/blob/master/src/Pim/Bundle/EnrichBundle/Resources/config/routing/channel.yml#L17

让我在我们的 1.4 上试试

更新:

无法在1.4.x-dev哈希f60366c1209beec5840103b2f4c4ae6db35e24e5上复制
@pierallard @lpxavi

我也尝试过,但无法在 1.4 上重现。

@lpxavi :很高兴通过详细的重现步骤重新打开问题。 你能做的最好的事情是在拉取请求上使用 Behat(我们的功能测试框架)提供一个功能测试案例,如果案例没有被覆盖,这样修复错误会容易得多(但它应该被覆盖来自 https://github.com/akeneo/pim-community-dev/blob/1.4/features/channel/create_channel.feature)

此页面是否有帮助?
0 / 5 - 0 等级