后台报错Missing bundle property on entity of type file. in entity_extract_ids() (line 7721 of D:\WWW\me\includes\common.inc).
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7721 of D:\WWW\me\includes\common.inc).
后台出现这个报错,不知道如何解决? 之前的操作是file_managed表添加 type 字段 ,是因为之前安装模块出现的错误。
之前的错误如下 PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.type' in 'field list': SELECT base.fid AS fid, base.uid AS uid, base.filename AS filename, base.uri AS uri, base.filemime AS filemime, base.filesize AS filesize, base.status AS status, base.timestamp AS timestamp, base.type AS type FROM {file_managed} base WHERE (base.fid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 18 ) in DrupalDefaultEntityController->load() (line 191 of D:\WWW\me\includes\entity.inc). |
|
ting1991sLv 9
|
1 个回答
Change line 7388 from:
<?php
if (!isset($entity->{$info['entity keys']['bundle']}) || $entity->{$info['entity keys']['bundle']} === '') {
?>
to:
<?php
if (!isset($entity->{$info['entity keys']['bundle']})) {
?>
Save the file, and your site should load.
ting1991sLv 9