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

Help needed -- Cannot install on Windows server with MS SQL Server 2008 R2 database


Go to End


5 Posts   1851 Views

Avatar
MJA

Community Member, 21 Posts

11 February 2015 at 6:59am

Title pretty much says it all

I am trying to install SilverStripe v3.1 on on a Windows server and connect it to MS SQL Server 2008 R2 (ver 10.50.4000)

I have downloaded and installed the mssql connection module (silverstripe-mssql-master) from here (https://github.com/silverstripe/silverstripe-mssql)

When I run <site-url>/install.php I get the following PHP fatal error:
Fatal error: Call to undefined method DatabaseAdapterRegistry::get_default_fields() in D:\Websites\ramblersoft.co.uk\wwwroot\silverstripe-mssql-master\_register_database.php on line 24

The Silverstripe API documentation (http://api.silverstripe.org/3.1/class-DatabaseAdapterRegistry.html) reports that the DatabaseAdapterRegistry class has only four static methods (register, unregister, autodiscover, and get_adapters)
So PHP is reporting correctly here

Am I doing something wrong here?

Please advise

Avatar
swaiba

Forum Moderator, 1899 Posts

11 February 2015 at 9:13am

I'm no expert here... I can only advise to check you've gone through this...

http://doc.silverstripe.org/en/getting_started/installation/other_installation_options/windows_iis7

Avatar
muskie9

Community Member, 24 Posts

12 February 2015 at 5:36am

MJA I think the mssql module master branch is for SS 3.2+ so you should try 0.10 branch

Avatar
MJA

Community Member, 21 Posts

13 February 2015 at 3:53am

Thanks muskie9 - that seems to have solved the problem

Avatar
muskie9

Community Member, 24 Posts

13 February 2015 at 3:54am

Sure thing, I ran into that a few months ago ;)