Pablos Posted April 18, 2014 Share Posted April 18, 2014 I've had a problem with a database which I was unable to repair. The affected site is only a few pages, so rather than spend ages trying to recover the tables, I've updated the content on my local server and exported that database. I've created a new database on the production server and imported the tables from the local version, but I can't get processwire to use the new database. I've changed the database entries in site/config.php, but it doesn't seem to have made any difference. In fact, as a test, I completely removed config.php and the site still loaded, so it doesn't seem to be doing anything.Does anyone have any ideas?Thanks,Paul Link to comment Share on other sites More sharing options...
kongondo Posted April 18, 2014 Share Posted April 18, 2014 (edited) Paul...if you removed /site/config.php/ you should get a 500 internal server error on both front and backend; the site should not be able to work. Additionally, if you check your /site/assets/logs/errors.txt, you will see an error logged along the lines of "Invalid catalog name: 1046 No database selected". I am guessing that you probably have several PW installs on that host and are most likely manipulating the wrong files ... Edited April 18, 2014 by kongondo Link to comment Share on other sites More sharing options...
Joss Posted April 18, 2014 Share Posted April 18, 2014 You aren't using something like Cloudflare are you? I often forget to to switch to dev mode and Cloudflare cache just about everything, bless them. Link to comment Share on other sites More sharing options...
Pablos Posted April 20, 2014 Author Share Posted April 20, 2014 Actually it was even worse than multiple installs - the site had been copied in its entirety to a different directory. Thanks for your help. Sorry for the daft question. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now