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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Copying from local to productie, 404 error?


Reply


30 Posts   4679 Views

Avatar
Sam

Administrator, 685 Posts

26 June 2009 at 12:29am

Try visiting the URL dev/build to update your database. Perhaps your table is called "sitetree" instead of "SiteTree"?

Avatar
banal

Community Member, 901 Posts

26 June 2009 at 1:06am

.. or maybe you don't have the same DB Permissions on your production server as you had on the local server. If possible, try creating a DB User that has all access rights (GRANT ALL) and use this one to test.

Avatar
raamklaza

Community Member, 182 Posts

26 June 2009 at 1:44am

That's not possible... I think i have to be logged in as admin.

Because it is forwarded to http://www.xxx.nl/Security/login

Avatar
raamklaza

Community Member, 182 Posts

26 June 2009 at 1:51am

I gave the DB user all the right, still no solution

Avatar
martimiz

Forum Moderator, 1097 Posts

26 June 2009 at 2:11am

Probably a very stupid question... But is your mysite/_config.php pointing to the right database(name)?

Avatar
raamklaza

Community Member, 182 Posts

26 June 2009 at 3:02am

There are no stupid questions, just stupid answers...

This my db connection, database is the same...

// Productie
global $databaseConfig;
$databaseConfig = array(
   "type" => "MySQLDatabase",
   "server" => "localhost",
   "username" => "*******",
   "password" => "*******",
   "database" => "w0576642_ss",
);

Avatar
martimiz

Forum Moderator, 1097 Posts

26 June 2009 at 5:52am

So you get this error where the w0576642_ss.SiteTree doesn't exist and I found in your post the same error concerning w0576642_ss.Permission.

Yet the MySQL database you're using is really called w0576642_ss and actually has a SiteTree and a Permission table

But later you say you are redirected to security/login? How is that?

Avatar
raamklaza

Community Member, 182 Posts

26 June 2009 at 6:43pm

When i try to do /dev/build then i am redirected to security/login in the url... The page stays the same...

I think i am gone give it up...

Clean install on production and just copy mysite and theme and just work online on the content and menuitems.