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.

Installing SilverStripe /

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

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

SS-v2.4.0-rc1 Install Warnings and Error


Reply


5 Posts   1078 Views

Avatar
logiczero

Community Member, 12 Posts

21 April 2010 at 11:17am

Edited: 21/04/2010 11:19am

I used subversion to checkout SS-v2.4.0-rc1 to my local Windows machine. Upon visiting the install.php page, I notice a couple of PHP warnings:

Where a field should be appearing for Database type: there is a PHP warning instead:

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\ss\sapphire\dev\install\config-form.html on line 147

Under the 'Re-Check Requirements' button there is another PHP warning:

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\ss\install.php on line 294

I fill out all the available fields for a local set up (localhost/root/no pwd/SS_mysite) and click Install SilverStripe. It gets to "Building database schema..." and throws the error:

[User Error] DB::connect: Not passed a valid database config
POST /ss/install.php

Line 88 in C:\xampp\htdocs\ss\sapphire\core\model\DB.php

Since this error is being generated because the database type is empty, it's clearly a problem that the Database Type field is not appearing on the install page. Line 147 in C:\xampp\htdocs\ss\sapphire\dev\install\config-form.html uses a variable called $foundDatabaseClasses that is never declared or defined anywhere in the entire codebase...

Avatar
Sean

Forum Moderator, 922 Posts

21 April 2010 at 5:15pm

Edited: 21/04/2010 5:20pm

Which subversion URL did you check out?

You should be using this command to checkout the 2.4.0 RC1 from Subversion:

svn co http://svn.silverstripe.com/open/phpinstaller/tags/rc/2.4.0-rc1

I've tested this, and it works fine for me.

You've probably got a broken checkout.

Sean

Avatar
logiczero

Community Member, 12 Posts

22 April 2010 at 4:52am

Hmmm, I checked out from http://svn.silverstripe.com/open/phpinstaller/trunk, as per the instructions on the [url=http://silverstripe.org/daily-builds/]Daily Build[/url]/[url=http://silverstripe.org/subversion/]Subversion[/url] pages. I don't know what that gives me, but I guess it's not v.2.4.0-rc1.

I want to install and fiddle with the Workflow module, which only works with SS v2.4. I don't mind using something that may be a little unstable at the moment, but I want to be able to update it (via subversion) to whatever the stable 2.4 release ends up being.

Which checkout should I start with that will keep me on the path to the stable 2.4 version?

Avatar
logiczero

Community Member, 12 Posts

22 April 2010 at 6:48am

Edited: 22/04/2010 6:49am

I used

svn co http://svn.silverstripe.com/open/phpinstaller/tags/rc/2.4.0-rc1

as my checkout url, which fails because

...
Updated C:\xampp\htdocs\ss\cms
Completed C:\xampp\htdocs\ss\cms - at revision: 103280
External C:\xampp\htdocs\ss\jsparty
Error URL 'http://svn.silverstripe.com/open/modules/jsparty/tags/rc/2.4.0-rc1'
Error doesn't exist

Avatar
Sean

Forum Moderator, 922 Posts

22 April 2010 at 11:03am

Edited: 22/04/2010 11:09am

I've fixed the 2.4.0-rc1 tag, which had an external which doesn't exist. You'll be able to check that out now successfully.

However, if you don't mind a few things changing while stabilization of 2.4 occurs, you can check out the development 2.4 branch using this command:

svn co http://svn.silverstripe.com/open/phpinstaller/branches/2.4

See how you get on with that.

Cheers,
Sean