Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Comments module: PHP fatal error after install


Go to End


3 Posts   2244 Views

Avatar
MarkusM

Community Member, 11 Posts

8 April 2013 at 8:52am

Dear all,

I installed the comments module from http://www.silverstripe.org/comments-module/ (v 1.0.0.) using SS 3.0.5. on Ubuntu. I copied the extracted folder to the root folder of my SS instance and did a rebuild without getting any error messages. Afterwards I got a "Server error
Sorry, there was a problem handling your request." and the error message displayed at the bottom of this post in my error.log.

Any help would be appreciated.

Markus

[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

Avatar
Willr

Forum Moderator, 5523 Posts

11 April 2013 at 8:05pm

Are you sure your dev/build worked correctly? Comments master also requires 3.1 (see the 1.0 download for 3.0)

Avatar
MarkusM

Community Member, 11 Posts

24 April 2013 at 9:31am

Pretty much yes. I fixed the problem by though by installing the comments module using composer as described here: An installation https://github.com/silverstripe/silverstripe-comments/blob/master/docs/en/Installing.md.