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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Fatal error when running the installation


Go to End


1402 Views

Avatar
Alexw

Community Member, 2 Posts

30 September 2013 at 12:13am

Edited: 30/09/2013 12:14am

Hello,

I'm currently running Nginx, PHP5.4 and MySQL5.6 on my development computer with Windows 8.
This is my Nginx config:

server {
        listen       80;
        server_name  silverstripe;
        root         C:/nginx/htdocs/silverstripe/;
        index        index.php
        autoindex    off;
		
	if (!-f $request_filename) {
            rewrite ^(.*)$ /framework/main.php?url=$1&$3 last;
	}
		
	location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  C:/nginx/htdocs/silverstripe$fastcgi_script_name;
            include        fastcgi_params;
        }
}

But after filling in my MySQL details for the installation and clicking to install it gives me the following error:

Couldn't run query: SELECT DISTINCT "SiteTree"."ClassName", "SiteTree"."Created", "SiteTree"."LastEdited", "SiteTree"."URLSegment", "SiteTree"."Title", "SiteTree"."MenuTitle", "SiteTree"."Content", "SiteTree"."MetaTitle", "SiteTree"."MetaDescription", "SiteTree"."MetaKeywords", "SiteTree"."ExtraMeta", "SiteTree"."ShowInMenus", "SiteTree"."ShowInSearch", "SiteTree"."Sort", "SiteTree"."HasBrokenFile", "SiteTree"."HasBrokenLink", "SiteTree"."ReportClass", "SiteTree"."CanViewType", "SiteTree"."CanEditType", "SiteTree"."Version", "SiteTree"."ID", CASE WHEN "SiteTree"."ClassName" IS NOT NULL THEN "SiteTree"."ClassName" ELSE 'SiteTree' END AS "RecordClassName" FROM "SiteTree" WHERE ("URLSegment" = 'home' AND "ParentID" = 0) ORDER BY "SiteTree"."Sort" ASC LIMIT 1 Unknown column 'ParentID' in 'where clause' 
MySQLDatabase.php:580

I tried with and without the simple theme. Also, I did not change any code just yet. This a bare download from Option 1 (http://www.silverstripe.org/stable-download/). Any suggestions how I can solve this issue?

Thanks in advance,
Alexw