内核升级不时遇到这个错误,下面是解决的办法:
https://www.drupal.org/project/file_entity/issues/3056070
https://www.drupal.org/project/file_entity/issues/2914935#comment-13110657
搜索key_value表的name=file.field_schema_data.type行,把blob里的not null值由1改为0
a:1:{s:12:"file_managed";a:2:{s:6:"fields";a:1:{s:4:"type";a:4:{s:11:"description";s:28:"The ID of the target entity.";s:4:"type";s:13:"varchar_ascii";s:6:"length";i:32;s:8:"not null";b:0;}}s:7:"indexes";a:1:{s:27:"file_field__type__target_id";a:1:{i:0;s:4:"type";}}}}
评论