2016-12-22 54 views
0

我卸載了幾個模塊。Drupal 8配置錯誤

~/apps/drupal/htdocs/modules$ drush pm-uninstall relaxed 
    The following extensions will be uninstalled: relaxed 
    Do you really want to continue? (y/n): y 
    relaxed was successfully uninstalled.                          [ok] 
    [email protected]:~/apps/drupal/htdocs/modules$ drush pm-uninstall replication 
    The following extensions will be uninstalled: replication 
    Do you really want to continue? (y/n): y 
    replication was successfully uninstalled.                         [ok] 
    [email protected]:~/apps/drupal/htdocs/modules$ drush pm-uninstall multiversion 
    The following extensions will be uninstalled: multiversion 
    Do you really want to continue? (y/n): y 
    multiversion was successfully uninstalled. 
    [email protected]:~/apps/drupal/htdocs/modules$ drush pm-uninstall views_rest_feed 
    The following extensions will be uninstalled: views_rest_feed 
    Do you really want to continue? (y/n): y 
    views_rest_feed was successfully uninstalled. 

現在我看到錯誤。 我看到下面的錯誤,我應該如何着手解決它們? 實體/字段定義不匹配的實體和/或字段定義 在實體類型和字段定義中檢測到以下更改。 評論

The Comment entity type needs to be updated. 

文件

The File entity type needs to be updated. 

內容

The Revision ID field needs to be installed. 
The UUID field needs to be updated. 

快捷鏈接

The UUID field needs to be updated. 

分類項

The Taxonomy term entity type needs to be updated. 

用戶

The UUID field needs to be updated. 

自定義菜單鏈接

The Custom menu link entity type needs to be updated. 

    Running drush entity-updates gives 
    The following updates are pending: 

    comment entity type : 
     The Comment entity type needs to be updated. 
    file entity type : 
     The File entity type needs to be updated. 
    node entity type : 
     The Revision ID field needs to be installed. 
     The UUID field needs to be updated. 
    shortcut entity type : 
     The UUID field needs to be updated. 
    taxonomy_term entity type : 
     The Taxonomy term entity type needs to be updated. 
    user entity type : 
     The UUID field needs to be updated. 
    menu_link_content entity type : 
     The Custom menu link entity type needs to be updated. 



    Do you wish to run all pending updates? (y/n): y 
    Drupal\Core\Entity\EntityStorageException: The SQL storage cannot change the schema for an existing entity type (comment) with data. in [error] 
    Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->onEntityTypeUpdate() (line 303 of 
    /opt/bitnami/apps/drupal/htdocs/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php). 
    Failed: Drupal\Core\Entity\EntityStorageException: !message in                    [error] 
    Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->onEntityTypeUpdate() (line 303 of 
    /opt/bitnami/apps/drupal/htdocs/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php). 
    Cache rebuild complete.                             [ok] 
    Finished performing updates.  


    drush watchdog-show 
    ID Date   Type  Severity Message                        
    147 22/Dec 15:57 php  error  Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 
              'base_table.vid' in 'field list': SELECT base_table.vid AS vid, base_table.nid AS nid     

    146 22/Dec 15:57 php  error  Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 
              'base_table.vid' in 'field list': SELECT base_table.vid AS vid, base_table.nid AS nid     

    145 22/Dec 15:57 cron  notice Cron run completed.                     
    144 22/Dec 15:57 cron  notice Execution of update_cron() took 9.97ms.                
    143 22/Dec 15:57 cron  notice Starting execution of update_cron(), execution of system_cron() took 15.01ms.       
    142 22/Dec 15:57 cron  notice Starting execution of system_cron(), execution of search_cron() took 4.15ms.       
    141 22/Dec 15:57 cron  notice Starting execution of search_cron(), execution of node_cron() took 30.37ms.       
    140 22/Dec 15:57 cron  notice Starting execution of node_cron(), execution of history_cron() took 1.82ms.       
    139 22/Dec 15:57 cron  notice Starting execution of history_cron(), execution of file_cron() took 11.11ms.       
    138 22/Dec 15:57 cron  notice Starting execution of file_cron(), execution of field_cron() took 3.38ms. 

也在訪問http://ipaddress/admin/modules/uninstall

The website encountered an unexpected error. Please try again later. 

Apache的錯誤日誌顯示

[Thu Dec 22 15:06:52.683333 2016] [core:notice] [pid 13291:tid 139826185398080] AH00094: Command line: '/opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf' 
    [Thu Dec 22 15:06:58.953491 2016] [proxy_fcgi:error] [pid 13300:tid 139825856366336] [client 123.201.127.176:49572] AH01071: Got error 'PHP message: PHP Fatal error: Call to a member function id() on null in /opt/bitnami/apps/drupal/htdocs/modules/multiversion/src/WorkspaceCacheContext.php on line 44\n' 
    [Thu Dec 22 15:12:39.540744 2016] [proxy_fcgi:error] [pid 13299:tid 139825386374912] [client 123.201.127.176:49808] AH01071: Got error 'PHP message: Uncaught PHP Exception Drupal\\Core\\Database\\DatabaseExceptionWrapper: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'revision.revision_id' in 'field list': SELECT revision.revision_id AS revision_id, revision.langcode AS langcode, revision.revision_log AS revision_log, base.id AS id, base.type AS type, base.uuid AS uuid, CASE base.revision_id WHEN revision.revision_id THEN 1 ELSE 0 END AS isDefaultRevision\nFROM \n{block_content} base\nINNER JOIN {block_content_revision} revision ON revision.revision_id = base.revision_id; Array\n(\n)\n" at /opt/bitnami/apps/drupal/htdocs/core/lib/Drupal/Core/Database/Connection.php line 671\n' 
    [Thu Dec 22 15:14:41.556451 2016] [proxy_fcgi:error] [pid 13299:tid 139825428338432] [client 123.201.127.176:49828] AH01071: Got error 'PHP message: Uncaught PHP Exception Drupal\\Core\\Database\\DatabaseExceptionWrapper: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'revision.revision_id' in 'field list': SELECT revision.revision_id AS revision_id, revision.langcode AS langcode, revision.revision_log AS revision_log, base.id AS id, base.type AS type, base.uuid AS uuid, CASE base.revision_id WHEN revision.revision_id THEN 1 ELSE 0 END AS isDefaultRevision\nFROM \n{block_content} base\nINNER JOIN {block_content_revision} revision ON revision.revision_id = base.revision_id; Array\n(\n)\n" at /opt/bitnami/apps/drupal/htdocs/core/lib/Drupal/Core/Database/Connection.php line 671\n' 

我正在使用AWS lightsail bitnami drupal實例。

回答

0

嘗試進入數據庫並截斷所有以cache_開頭的表格。這是我面對這樣一個問題後會做的。卸載進程在清除緩存之前可能會崩潰,緩存仍然引用已刪除的字段(在卸載模塊期間已刪除)。