【问题标题】:When installing Porto theme in magento2 cannot import statics blocks在 magento2 中安装 Porto 主题时无法导入静态块
【发布时间】:2022-01-05 12:55:04
【问题描述】:

嗨,我是 Magento 的新手,我正在尝试安装 proto 主题,我已经激活了主题,添加了我想要的演示,覆盖了 cms 页面,现在当我尝试导入静态块时,它给出了一个错误,

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null, query was: INSERT INTO `cms_block` (`block_id`, `title`, `identifier`, `content`, `is_active`) VALUES (?, ?, ?, ?, ?)

【问题讨论】:

    标签: magento2


    【解决方案1】:

    您可以使用 MySQLDump 或 PHPMyAdmin 手动导出/导入 cms_block 和 cms_page 的数据库表。 您需要的所有数据都应该在这两个表中。 但是,涉及的数据库表是:

    1. cms_block
    2. cms_block_store
    3. cms_page
    4. cms_page_store

    【讨论】:

      猜你喜欢
      • 2017-02-21
      • 1970-01-01
      • 1970-01-01
      • 2019-02-28
      • 1970-01-01
      • 1970-01-01
      • 2021-11-01
      • 2013-10-25
      • 2020-07-05
      相关资源
      最近更新 更多