请有人可以帮助我我是drupal的新手,我正在制作一个分类drupal网站,一切都很好,但我安装了媒体模块,当我卸载这个模块时,我的网站显示我这个错误,我不知道如何解决它,我现在无法在我的网站上看到任何内容这个网站在我的本地服务器WAMPSERVER错误就是这个
PDOException:SQLSTATE [42S22]:找不到列:1054'字段列表'中的未知列'base.type':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,:db_condition_placeholder_1, :db_condition_placeholder_2,:db_condition_placeholder_3,:db_condition_placeholder_4,:db_condition_placeholder_5,:db_condition_placeholder_6,:db_condition_placeholder_7,:db_condition_placeholder_8,:db_condition_placeholder_9,:db_condition_placeholder_10,:db_condition_placeholder_11,:db_condition_placeholder_12,:db_condition_placeholder_13,:db_condition_placeholder_14,:db_condition_placeholder_15,:db_condition_placeholder_16,:db_condition_placeholder_17,:db_condition_placeholder_18 ,:db_condition_placeholder_19,:db_condition_placeholder_20,:db_condition_placeholder _21,:db_condition_placeholder_22,:db_condition_placeholder_23,:db_condition_placeholder_24,:db_condition_placeholder_25,:db_condition_placeholder_26,:db_condition_placeholder_27,:db_condition_placeholder_28,:db_condition_placeholder_29,:db_condition_placeholder_30,:db_condition_placeholder_31,:db_condition_placeholder_32,:db_condition_placeholder_33,:db_condition_placeholder_34,:db_condition_placeholder_35,:db_condition_placeholder_36,:db_condition_placeholder_37, :db_condition_placeholder_38,:db_condition_placeholder_39,:db_condition_placeholder_40,:db_condition_placeholder_41,:db_condition_placeholder_42,:db_condition_placeholder_43,:db_condition_placeholder_44,:db_condition_placeholder_45,:db_condition_placeholder_46,:db_condition_placeholder_47,:db_condition_placeholder_48,:db_condition_placeholder_49,:db_condition_placeholder_50,:db_condition_placeholder_51,:db_condition_placeholder_52,:db_condition_placeholder_53,:db_condition_placeholder_54 ,:db_c ondition_placeholder_55));数组([:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 2 [:db_condition_placeholder_2] => 3 [:db_condition_placeholder_3] => 4 [:db_condition_placeholder_4] => 5 [:db_condition_placeholder_5] => 6 [:db_condition_placeholder_6] => 7 [:db_condition_placeholder_7] => 8 [:db_condition_placeholder_8] => 9 [:db_condition_placeholder_9] => 10 [:db_condition_placeholder_10] => 12 [:db_condition_placeholder_11] => 13 [: db_condition_placeholder_12] => 14 [:db_condition_placeholder_13] => 15 [:db_condition_placeholder_14] => 16 [:db_condition_placeholder_15] => 17 [:db_condition_placeholder_16] => 18 [:db_condition_placeholder_17] => 19 [:db_condition_placeholder_18] => 20 [:db_condition_placeholder_19] => 21 [:db_condition_placeholder_20] => 22 [:db_condition_placeholder_21] => 23 [:db_condition_placeholder_22] => 24 [:db_condition_placeholder_23] => 25 [:db_condition_placeholder_24] =&gt ; 26 [:db_condit ion_placeholder_25] => 27 [:db_condition_placeholder_26] => 28 [:db_condition_placeholder_27] => 29 [:db_condition_placeholder_28] => 30 [:db_condition_placeholder_29] => 31 [:db_condition_placeholder_30] => 33 [:db_condition_placeholder_31] => 34 [:db_condition_placeholder_32] => 35 [:db_condition_placeholder_33] => 36 [:db_condition_placeholder_34] => 37 [:db_condition_placeholder_35] => 38 [:db_condition_placeholder_36] => 39 [:db_condition_placeholder_37] => 40 [:db_condition_placeholder_38] => 41 [:db_condition_placeholder_39] => 42 [:db_condition_placeholder_40] => 43 [:db_condition_placeholder_41] => 44 [:db_condition_placeholder_42] => 45 [:db_condition_placeholder_43] => 46 [:db_condition_placeholder_44] => 47 [:db_condition_placeholder_45] => 48 [:db_condition_placeholder_46] => 49 [:db_condition_placeholder_47] => 50 [:db_condition_placeholder_48] => 51 [:db_condition_placeholder_49] => 52 [:db_condition_placeholder_50] => 53 [:db_condition_placeholder_51] => 54 [:db_condition_placeholder_52] => 55 [:db_condition_placeholder_53] => 56 [:db_condition_placeholder_54] => 57 [:db_condition_placeholder_55] => 58)在DrupalDefaultEntityController-> load()中(C:\ wamp \ www \ ukmarketplace \ includes \ entity.inc的第196行)。
请有人帮助我,谢谢
答案 0 :(得分:3)
您需要运行更新功能。看起来您已更新代码,但尚未更新数据库。 http://www.yoursite.com/update.php
答案 1 :(得分:0)
卸载file_entity模块时出现此问题。下载并启用它(由于Drush不再工作,手动通过UI),然后drush cc all
并禁用和卸载它。
答案 2 :(得分:0)
我遇到了几乎相同的问题,我所做的是去了文件(在你的情况下是entity.inc第196行)遇到问题然后我评论了这条线本身然后我试图更新网站它没有&#39 ;工作,然后我评论其他夫妇在上面和下面的行,然后我的update.php工作,但有错误然后我再次回到该文件并取消注释行,我的网站回来了并运行。当我在没有运行update.php的情况下对我的install(hook_schema)文件进行更新时出现了我的错误。
答案 3 :(得分:0)
我有同样的问题: 当我启用一些模块并重新启动计算机时,我发现我的drupal测试站点无法启动,当然我无法运行update.php,也没有像其他人建议的那样清除缓存。 我访问mysql服务器,并改变表FILE_MANAGED,添加一个TYPE列。然后,我尝试了我的drupal测试网站,它正常工作。我现在可以以管理员身份登录,继续工作 - 解决了问题。
答案 4 :(得分:0)
可能的根本原因是在模块安装期间对sites / all / modules目录的写访问权限。
我已经成功解决了webform模块类似的问题,并通过drush应用了以下过程。
$ drush dis webform # disable target module
$ drush pmu webform # uninstall target module - probable warnings
在serveur中删除完整的网络表单(或模块名称)目录
$ rm -rf <drupal path>/sites/all/modules/webform
$ drush cc all # flush all caches - probable warning
使用msyql cmd删除SQL数据库中与Webform(或模块名称)相关的表
mysql -u root -p;
MYSQL> use <drupaldatabase>;
MYSQL> DROP TABLE webform, webform_component, webform_conditional, webform_conditional_actions, webform_conditional_rules, webform_emails, webform_last_download, webform_roles, webform_submissions, webform_submitted_data;
确保/ sites / all / modules上的正确权限,例如
$ chown -R me:www-data <drupal path>/sites/all/modules
$ chmdo -R 775 <drupal path>/sites/all/modules
准备好使用急速启用所需模块
$ drush en webform # or desired module
$ drush cc all # flush all caches
您的模块已正确安装并可用