17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 4235 Views |
-
Need Help Building Database

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 foundSilverstripe 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 clickedAs a result I cannot get past the creating new page type step
Thanks for your help! -
Re: Need Help Building Database

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 -
Re: Need Help Building Database

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
| 4235 Views | ||
|
Page:
1
|
Go to Top |


