Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable migrating from ClassicPress to anything #52

Merged
merged 2 commits into from Feb 19, 2019

Conversation

Projects
None yet
3 participants
@nylen
Copy link
Member

nylen commented Jan 27, 2019

Further steps towards issue #27 (restore the previous version of WordPress).

This is pre-alpha functionality - do not run it on sites you care about! Accordingly, the form has class="hidden" which you must remove yourself in order to test this.

cp-custom-migration

To show the form:

  • Ensure you are running ClassicPress
  • Visit the Switch to ClassicPress plugin page
  • Paste the following JavaScript snippet in the developer console and run it:
jQuery('#cp-advanced-migration-form').removeClass('hidden')

To use it, enter a valid build URL and version (for example https://wordpress.org/wordpress-4.9.9.zip and 4.9.9).

Important limitation: this code (and the migration plugin in general) cannot migrate to all official release builds of ClassicPress, only builds that are specifically made for the migration plugin! More info about this limitation here. This limitation has been addressed in the ClassicPress core code, to the extent possible.

@GTMAN

This comment has been minimized.

Copy link

GTMAN commented Jan 31, 2019

Could not copy file.: wp-includes/formatting.php

Installation Failed

This on my Linode VPS ... checked the file and its permissions. 644
Running it from ClassicPress 1.0.0-beta2+dev!

@nylen

This comment has been minimized.

Copy link
Member Author

nylen commented Feb 1, 2019

Thanks for testing @GTMAN.

Running from 1.0.0-beta2+dev, and migrating to what?

Is this file owned by the same user as the web server? Sometimes on a VPS the web server runs as www-data but you use a separate username to access the files.

@GTMAN

This comment has been minimized.

Copy link

GTMAN commented Feb 1, 2019

Thanks for testing @GTMAN.

Running from 1.0.0-beta2+dev, and migrating to what?

Is this file owned by the same user as the web server? Sometimes on a VPS the web server runs as www-data but you use a separate username to access the files.

Migrated to 4.9.9 as in your example. I previously check permissions but not ownership and found indeed you were correct. A few files were owned by ROOT and not the USER. Retested and it worked perfectly!

@striebwj

This comment has been minimized.

Copy link
Member

striebwj commented Feb 17, 2019

Is there "Version" necessary? I think it may just confuse people.

In my testing it seemed to do nothing - and I was trying to break it. I even put my name in there to see what it would do with unexpected text.

Otherwise, everything worked well, migrated back to 4.9-en_CA, 4.9.9 and 5.0.3 without any issues.

@striebwj striebwj referenced this pull request Feb 17, 2019

Closed

Can't migrate from 4.9 #54

@nylen

This comment has been minimized.

Copy link
Member Author

nylen commented Feb 19, 2019

Is there "Version" necessary? I think it may just confuse people.

Good point - I've removed the version field in 8decb7f. There are some internal bits that need $_POST['version'] to match up to the version value in the update API response, but as you've noted, it doesn't actually matter what the value is.

@nylen

This comment has been minimized.

Copy link
Member Author

nylen commented Feb 19, 2019

I'm going to merge this but leave it hidden for the upcoming release associated with ClassicPress 1.0.0-rc1.

@nylen nylen merged commit 2458355 into master Feb 19, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@nylen nylen deleted the try/custom-migration branch Feb 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.