我使用SS 3.0.5从http://www.silverstripe.org/comments-module/(v 1.0.0。)安装了评论模块。在Ubuntu上用PostgreSQL作为数据库。我将解压缩的文件夹复制到我的SS实例的根文件夹,并进行了重建而没有收到任何错误消息。之后我收到了“服务器错误 - 抱歉,处理您的请求时出现问题。”以及我在error.log中显示在此帖子底部的错误消息。
任何帮助都将不胜感激。
马库斯
[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
答案 0 :(得分:0)
从http://www.silverstripe.org/comments-module/下载的SilverStripe评论模块的1.0.0版本有关于其postgreSQL支持的错误。使用具有以下步骤的composer安装将安装当前的固定版本(来源:https://github.com/silverstripe/silverstripe-comments/blob/master/docs/en/Installing.md):
编辑项目范围的composer.json文件,如下所示;在“require”块中添加:
"silverstripe/comments": "*"
然后在项目的根目录中运行:
> composer update silverstripe/comments