Jump to content

Recommended Posts

Posted

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?

 

 

Posted (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 by TomPich
add some advices
Posted

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?

Posted

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/

Posted (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 by da²
Posted

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.

Posted

@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. 

  • Like 3
Posted
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.

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...