安装SilverStripe注释模块后出现PHP致命错误
我使用SS3.0.5从(V1.0.0.)安装了注释模块。在Ubuntu上使用PostgreSQL作为数据库。我将提取的文件夹复制到SS实例的根文件夹中,并在没有收到任何错误消息的情况下进行了重建。之后,我收到一条“服务器错误-抱歉,处理您的请求时出现了问题。”错误消息显示在我的error.log中的这篇文章的底部 任何帮助都将不胜感激 马库斯安装SilverStripe注释模块后出现PHP致命错误,php,postgresql,silverstripe,Php,Postgresql,Silverstripe,我使用SS3.0.5从(V1.0.0.)安装了注释模块。在Ubuntu上使用PostgreSQL作为数据库。我将提取的文件夹复制到SS实例的根文件夹中,并在没有收到任何错误消息的情况下进行了重建。之后,我收到一条“服务器错误-抱歉,处理您的请求时出现了问题。”错误消息显示在我的error.log中的这篇文章的底部 任何帮助都将不胜感激 马库斯 [Mon Apr 08 08:26:45 2013] [error] [client 127.0.0.1] PHP Fatal error: Couldn
[Mon Apr 08 08:26:45 2013] [error] [client 127.0.0.1] PHP Fatal error: Couldn't
run query: SELECT DISTINCT "SiteTree_Live"."ClassName", "SiteTree_Live"."Create
d", "SiteTree_Live"."LastEdited", "SiteTree_Live"."URLSegment", "SiteTree_Live".
"Title", "SiteTree_Live"."MenuTitle", "SiteTree_Live"."Content", "SiteTree_Live"
."MetaTitle", "SiteTree_Live"."MetaDescription", "SiteTree_Live"."MetaKeywords",
"SiteTree_Live"."ExtraMeta", "SiteTree_Live"."ShowInMenus", "SiteTree_Live"."Sh
owInSearch", "SiteTree_Live"."Sort", "SiteTree_Live"."HasBrokenFile", "SiteTree_
Live"."HasBrokenLink", "SiteTree_Live"."ReportClass", "SiteTree_Live"."CanViewTy
pe", "SiteTree_Live"."CanEditType", "SiteTree_Live"."ProvideComments", "SiteTree
_Live"."Version", "SiteTree_Live"."ParentID", "SiteTree_Live"."ID", CASE WHEN "S
iteTree_Live"."ClassName" IS NOT NULL THEN "SiteTree_Live"."ClassName" ELSE 'Sit
eTree' END AS "RecordClassName" FROM "SiteTree_Live" WHERE ("URLSegment" = 'them
es' AND "ParentID" = 0) ORDER BY "SiteTree_Live"."Sort" ASC LIMIT 1 | ERROR: co
lumn SiteTree_Live.ProvideComments does not exist\nLINE 1 in /var/www/aep-ss/fra
mework/model/Database.php on line 693
可从下载的SilverStripe comments模块的1.0.0版本在postgreSQL支持方面存在缺陷。使用composer并执行以下步骤的安装将安装当前的固定版本(源代码:): 编辑项目范围内的composer.json文件,如下所示;在“需要”框中添加:
"silverstripe/comments": "*"
然后在项目运行的根目录中:
> composer update silverstripe/comments
不一致报价导致的案例敏感性问题?这个表的定义是什么?请显示来自
psql
的\d SiteTree\u Live
和\d“SiteTree\u Live”
的输出。请查看安装文档,看看是否有遗漏:3dgoo:谢谢,我使用composer重新安装了,正如您发送的链接中所述,它起到了作用。在我看来,我下载的1.0.0版本有一个关于postgreSQL的bug。