0

我使用 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
4

1 回答 1

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 文件,如下所示;在“要求”块中添加:

"silverstripe/comments": "*"

然后在项目的根目录中运行:

> composer update silverstripe/comments
于 2013-04-17T04:20:33.260 回答