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.

Archive /

Our old forums are still available as a read-only archive.

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

Need Help Building Database


Go to End


3 Posts   5892 Views

Avatar
Toomanyidstakenalready

Community Member, 5 Posts

15 December 2008 at 10:06am


In the tutorial 'Building a Basic Site', under the Homepage Template section, it suggests rebuilding the database using the URL http://localhost:3000/db/build?flush=1

OK, I'm running WAMPSERVER

But I just get a 'Not found on this server' message.
My URL
http://localhost:3000/silverstripe/db?flush=1
page not found

Silverstripe is installed in C:\wamp\www\silverstripe

the URL http://localhost/silverstripe/db
does produce a "database adminstration helpers" page with two links
Flush and build
but neither of those links work when clicked

As a result I cannot get past the creating new page type step
Thanks for your help!

Avatar
Toomanyidstakenalready

Community Member, 5 Posts

15 December 2008 at 10:54am

UPDATE:

By using the following commands
http://localhost:80/silverstripe/db/build?flush=1
http://localhost:80/silverstripe/admin?flush=1
instead of :3000 they seem to do something - although the result still isnt what I am expecting - the homepage is not showing in the drop down list inside of the CMS as the tutorial describes
however,

If I add the homepage.php file in the CMS code directory alongside of the userdefined php file I get the following message, which tells me that the build process is picking up the homepage file.
Notice: Warning: there are two 'HomePage' files with the same filename: 'C:/wamp/www/silverstripe/tutorial/code/HomePage.php' and 'C:/wamp/www/silverstripe/cms/code/PageTypes/HomePage.php'. This might mean that the wrong code is being used. in C:\wamp\www\silverstripe\sapphire\core\ManifestBuilder.php on line 256

Avatar
Nivanka

Community Member, 400 Posts

15 December 2008 at 2:30pm

Now that link http://localhost:3000/silverstripe/db?flush=1 is something for the SilverStripe one click installer, they are not releasing it anymore.

So what you have to do is that just add "db/build?flush=1" to the end of your sites url

just like the following.

lets say your URL is http://mysite.com/

after adding the bd/build it will look like the following

http://mysite.com/db/build?flush=1