Jump to:

4938 Posts in 16764 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » SS-v2.4.0-rc1 Install Warnings and Error

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

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

Page: 1
Go to End
Author Topic: 1045 Views
  • logiczero
    Avatar
    Community Member
    12 Posts

    SS-v2.4.0-rc1 Install Warnings and Error Link to this post

    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...

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: SS-v2.4.0-rc1 Install Warnings and Error Link to this post

    Which subversion URL did you check out?

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

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

    You've probably got a broken checkout.

    Sean

  • logiczero
    Avatar
    Community Member
    12 Posts

    Re: SS-v2.4.0-rc1 Install Warnings and Error Link to this post

    Hmmm, I checked out from http://svn.silverstripe.com/open/phpinstaller/trunk, as per the instructions on the Daily Build/Subversion 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?

  • logiczero
    Avatar
    Community Member
    12 Posts

    Re: SS-v2.4.0-rc1 Install Warnings and Error Link to this post

    I used

    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

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: SS-v2.4.0-rc1 Install Warnings and Error Link to this post

    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:

    See how you get on with that.

    Cheers,
    Sean

    1045 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.