Jump to content

Recommended Posts

Posted

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

Posted (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 by kongondo
Posted

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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...