Ten Posted September 4 Share Posted September 4 I recently inherited a ProcessWire website and had to switch the web address of our ProcessWire site. Old Address – plants.something.edu New Address – plant-directory.something.edu When I go here and login I get an error - https://plant-directory.something.edu/processwire/page/?login=1 Error - The ProcessWire configuration files are located in the /wire/config.php and /site/config.php files. The /wire/config.php file contains detailed descriptions of the $config properties, including default values. The config.ph file was changed from OLD: $config->httpHosts = array('dev.plants.something.edu', 'plants.something.edu'); NEW: $config->httpHosts = array('dev.plants.something.edu', 'plants.something.edu', 'plant-directory.something.edu'); AND: $config->httpHosts = array('plant-directory.something.edu'); How do I clear the error and get updates to show on the live website? Thanks! Link to comment Share on other sites More sharing options...
Krlos Posted September 4 Share Posted September 4 In your site/config.php file, ensure that the $config->httpHosts is properly updated with only the domain you're currently using, which is plant-directory.something.edu. Since you've switched addresses, you don't need the old domain unless you're maintaining multiple environments (like a dev or staging environment). You can try this configuration: $config->httpHosts = array('plant-directory.something.edu'); If you have a development or staging site (e.g., dev.plants.something.edu), you can include both: $config->httpHosts = array('dev.plants.something.edu', 'plant-directory.something.edu'); ProcessWire sometimes caches configuration files. You can clear the cache by doing the following: Log in to your ProcessWire admin panel and navigate to Modules > Core > Clear compiled files (if you can log in). 1 Link to comment Share on other sites More sharing options...
szabesz Posted September 5 Share Posted September 5 Welcome to the Forum! In addition to what @Krlos wrote above, it is always a good idea to install a clean ProcessWire instance on the server you need to migrate to before actually doing the migration. This way, you can take note of any possible issues or requirements that arise during the installation process. You can save the clean instance's config file or simply save all the files and the database for further reference. Next, you can remove the installed instance by deleting all files and clearing the database, and then proceed to migrate the site you need. Link to comment Share on other sites More sharing options...
Ten Posted September 5 Author Share Posted September 5 @Krlos - THANKS so much, I will give this a go. 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