FS72 Posted 7 hours ago Share Posted 7 hours ago Hello, I need to take care of a website that uses an old version of ProcessWire. The website needs to move to a new server. I have read that you have to install the software first and then transfer the data. Is this correct? Where can I download an old version 2.7? Link to comment Share on other sites More sharing options...
TomPich Posted 7 hours ago Share Posted 7 hours ago (edited) Hello, Why don’t you just move the files and the database? You don’t need to make a fresh install. Unlike WordPress, the database can be moved as it is. Then you have to change the DB config in the /site/config.php file. Be sure to check if the old version of PW works with the new PHP version. Edited 7 hours ago by TomPich add some advices Link to comment Share on other sites More sharing options...
FS72 Posted 7 hours ago Author Share Posted 7 hours ago I have transferred all files including the database. I have entered the access data for the database. The PHP version is the same. I get a 500 server error. Don't server paths have to be adjusted somewhere? Link to comment Share on other sites More sharing options...
FS72 Posted 7 hours ago Author Share Posted 7 hours ago I get the following error Error: Exception: load error: failed to find /var/www/XXXXXXXX/htdocs/site/templates/composition/html/styles/compile.less (in /usr/www/users/XXXXXXXX/XXXXXXXX/XXXXXXXX/site/templates/composition/lessphp/lessc.inc.php line 1818) The old server path looks like this: /var/www/XXXXXXXX/htdocs/ The new one, like this: /usr/www/users/XXXXXXXX/XXXXXXXX/XXXXXXXX/ Link to comment Share on other sites More sharing options...
zoeck Posted 6 hours ago Share Posted 6 hours ago You can find the 2.7 Versions here: https://github.com/ryancramerdesign/ProcessWire/tags But it looks more like you are using a less compiler (lessphp) somewhere in the templates, and it is trying to access the wrong path. Link to comment Share on other sites More sharing options...
da² Posted 3 hours ago Share Posted 3 hours ago (edited) Check that the root directory configured in your web server is the same than previous. The path before that has no importance. And obviously, don't use absolute paths in your code, but that shouldn't be the case. Also maybe check if your less compiler has an option to delete its cache, or a cache directory that is set to an absolute path maybe?... Edited 3 hours ago by da² Link to comment Share on other sites More sharing options...
FS72 Posted 2 hours ago Author Share Posted 2 hours ago Thank you for your help! I actually didn't have to install the PW first. I was able to use the old version and only had to enter the new access data for the database. The error was caused by a few cache files (*.cache). I deleted them and the site works! I still have one question: How do I get into the backend? /processwire/ does not work. Could it be that the backend login has been renamed? Can I find out? I have already looked in the database, but found nothing. Link to comment Share on other sites More sharing options...
ryan Posted 2 hours ago Share Posted 2 hours ago @FS72 I just did a ProcessWire 2.2 to 3.0.244 upgrade. You are right that you have to use 2.7 as the "intermediate" version when upgrading to a 3.x version (per the README). This is because 2.7.2 was the version that was prepared for the major 3.x changes. So you'll want to upgrade to 2.7.2 first. Once upgraded to 2.7, then you can upgrade to any 3.x version. In my case, some of the user accounts wouldn't transition over because 2.2 was from 13 years ago and used a different password system, so that's something to keep in mind. I ended up creating an admin account and then installed the profile exporter module, then did a fresh install with the newly created profile. That way I was starting with a fresh install, despite the site being from 2012. 2 Link to comment Share on other sites More sharing options...
bernhard Posted 1 hour ago Share Posted 1 hour ago 50 minutes ago, FS72 said: I still have one question: How do I get into the backend? /processwire/ does not work. Could it be that the backend login has been renamed? Can I find out? I have already looked in the database, but found nothing. This should work, see here: https://processwire.com/talk/topic/29593-solved-do-the-reset-password-tricks-work-for-you-they-dont-work-for-me/?do=findComment&comment=239355 It will log you in and redirect to the backend, so you'll also know the admin url then. 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