【问题标题】:Something went wrong while saving this configuration: Unable to load theme by specified key: 'pure'保存此配置时出现问题:无法按指定键加载主题:“纯”
【发布时间】:2016-07-19 09:08:44
【问题描述】:

我只是为了安装 magento 2.1。感谢 magento 提供的工具,我迁移了我的数据库。它工作得很好!!

但是问题是,当我运行前端时,我得到了这个错误: Unable to load theme by specified key: 'pure'

当我想在管理中更改主题时,我收到此错误:Something went wrong while saving this configuration: Unable to load theme by specified key: 'pure'

我遵循许多提示,例如清空表'change_design',使用此命令:

di:编译 设置:升级 设置:静态内容:部署 索引器:重新索引 缓存:刷新 ...

但问题仍然存在。

您知道解决此问题的方法吗? 谢谢。

ps:“Pure”是我在网站 1.9 上使用的主题

【问题讨论】:

    标签: themes magento2


    【解决方案1】:

    我找到了解决方案。在'core_config_data'表中,需要删除这条记录:'design/theme/theme_id'。

    delete from core_config_data where path = 'design/theme/theme_id';
    

    【讨论】:

    • 谢谢。或者,您可以只更新数据库中的该行并用正确的行更改其值。之后不要忘记清除缓存!
    【解决方案2】:

    您可以在 theme 表中手动添加您的主题。只需检查 theme 表并对字段使用相同的逻辑。

    【讨论】:

      【解决方案3】:

      请删除以下文件(如果存在)。 ../app/etc/config.local.php

      谢谢,

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-11-04
        • 1970-01-01
        • 1970-01-01
        • 2023-02-02
        • 2012-06-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多