- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想覆盖ProductController
来自EnrichBundle
.
在开发模式下一切正常,但是当我想使用 php app/console pim:install --env=prod --force
将其安装在我们的生产服务器上时我收到错误并且 Akeneo 无法工作:
Load "Title Templates" from annotations and config files to db
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Title for route "pim_enrich_attributegroup_index" could not be saved. Route not found.
oro:navigation:init
The command terminated with an error code: 1.
如果我取消注释 getParent()
,安装就可以工作。 MyEnrichBundle
中的方法,但是我的ProductController
不再起作用了。
class MyEnrichBundle extends Bundle
{
public function getParent()
{
return 'PimEnrichBundle';
}
}
如何避免这些 ORO 安装错误?
最佳答案
我们最近在当前的开发分支上更改了此路由键,因此您的问题似乎与此相关。我建议您仅使用 PIM 的标记版本(最后发布的版本 here ),以确保安装稳定。
另一个重要信息:生产环境 (-e=prod
) 和开发环境 (-e=dev
) 中安装的唯一区别是缓存暖身。因此,您可以在开发模式下安全地将 PIM 安装在生产服务器上,然后在生产中使用它。
要解决您的问题,我建议您使用 Composer 更新依赖项(如果您使用我们的企业版):
php Composer.phar 更新
之后您可以使用
手动清除缓存rm -rf ./app/cache/*
然后在开发模式中安装 Akeneo PIM:
php 应用程序/控制台 pim:install --force -e=dev
关于php - 安装错误: Overwrite Akeneo ProductController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31647003/
我们想在 Akeneo 中创建可配置的产品。谁能帮助我了解如何在 Akeneo 中创建可配置产品。 谢谢 最佳答案 Akeneo 中的可配置产品称为产品模型,可以使用产品网格上的 UI 创建。为了能够
我是 Akeneo 新手,刚刚设置了版本 1.4.12 的 docker 环境。该网站正在运行,但我已经复制了我们的生产数据库,现在无法登录。我可以看到带有盐和密码的 oro_user 表,但需要为我
我已将数据库备份恢复到 Akeneo PIM 数据库中,但它现在没有向我显示系统内的任何产品。 数据库连接正常,即我可以登录并且类别树、属性列表等可用,但我的产品(500~)在 Akeneo 环境(0
我们需要在 Akeneo 1.4 中克隆一个产品(只有 SKU 应该改变)。 我在 Akeneo 论坛中发现了一个类似的问题( 1 , 2 ),但最有趣的部分没有答案: 克隆产品 (PimCatalo
安装akeneo后它不起作用 ServerAdmin admin@example.com DocumentRoot /var/www/html/akeneo/pim-community-stan
我想在 Akeneo 中创建一个具有一些固定属性的新变体组来“模拟”产品系列的行为。不幸的是,我不知道如何获取带有一些空值属性的 ProductTemplate。 当我尝试下面的代码时,在 Akene
我想检查在 Akeneo V.1.3 中编辑变体组后某些属性值是否已更改。 不幸的是,我有点迷失:有没有办法从 Pim\Bundle\CatalogBundle\Entity\Group 获取属性
我在安装Akeneo v2.3(使用docker)时遇到问题 我已经运行了以下位置的安装步骤: https://docs.akeneo.com/2.3/install_pim/docker/insta
我们的用户可以将其他产品作为关联添加到产品中。对于我们的大多数关联类型,在网格中显示所有产品没有意义,它们应该只选择一个系列中的产品。 用户可以在 Akeneo GUI 中按系列过滤产品,但如果以编程
我决定试用 Akeneo,因为它正是我需要的产品。不过,我无法运行它的生产版本。没有显示任何内容的白屏,状态代码为 500。我已经根据 Akeneo 站点上的安装教程安装了它,但我所能做的就是访问 a
以下代码已在 Akeneo 文档中给出: Use REST API.在执行代码时,它会给出类似 的结果 RESULT:{"resource":"http:\/\/akeneo-pim.local\/a
我想覆盖ProductController来自EnrichBundle . 在开发模式下一切正常,但是当我想使用 php app/console pim:install --env=prod --fo
我喜欢使用 akeneo 中的自定义命令从数据库中获取一些产品。我正在使用 ProductRepositoryInterface public function read() { return
我已经在 git 上问过这个问题 ( https://github.com/akeneo/pim-community-dev/issues/7191 )但不幸的是,还没有人回答我,我想我会试试。 我按
我是一名优秀的程序员,十分优秀!