添加任何菜单类型的菜单项时出错

时间:2019-01-06 07:42:22

标签: sql drupal-8

网站遇到意外错误。请稍后再试。

Drupal\Core\Entity\EntityStorageException: SQLSTATE[HY000]: 
General error: 1364 Field 'id' doesn't have a default value: 
INSERT INTO {menu_link_content} (bundle, uuid, langcode) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); 
Array
    (
        [:db_insert_placeholder_0] => menu_link_content
        [:db_insert_placeholder_1] => 11ca5908-36b8-4451-9034-df0092dbbcc5
        [:db_insert_placeholder_2] => en
    )
in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() 
(line 783 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

0 个答案:

没有答案