-
Notifications
You must be signed in to change notification settings - Fork 48
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
Imported subsite is not working #70
Comments
Should have mentioned - I am using Wordpress 5.3. |
@derekPrivate it looks like the server you're running MU-MIgration either does not have sed or something is wrong with it. Can you run this on your terminal and let me know the result?
|
% echo "wp_" | sed "s/wp_/wp_5_/g"
wp_5_
…--
Derek
On 3 Dec 2019, at 12:19, Nícholas André ***@***.***> wrote:
echo "wp_" | sed "s/wp_/wp_5_/g"
|
Are you running MU-Migration in a linux server? |
I’m exporting on Linux and importing into a Mac. (Catalina, 10.5)
…--
Derek
On 3 Dec 2019, at 12:28, Nícholas André ***@***.***> wrote:
Are you running MU-Migration in a linux server?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#70?email_source=notifications&email_token=ABU4OWDCODY3ANR4VSY3SMDQWZGFVA5CNFSM4JTHBFO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFZGOXQ#issuecomment-561145694>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABU4OWFEDKWE2XWAGGGZKGTQWZGFVANCNFSM4JTHBFOQ>.
|
This CLI tool has no official support for Mac OS, but I guess it shouldn't be too hard to come up with a fix for Mac OS, |
This is where the sed commands run in case you want to try something: https://github.com/10up/MU-Migration/blob/master/includes/commands/class-mu-migration-import.php#L663 I'll see what I can find. |
@derekPrivate Can you try replacing this line https://github.com/10up/MU-Migration/blob/master/includes/commands/class-mu-migration-import.php#L685 with this:
|
Ok that solved the sed error, but now I do not see my website at all!
Previously, I saw the sed errors, but my website did appear in the list of sites in my wordpress installation (but the site did not work!)
Now, I see no errors during the import, but my website does not now appear in the list of sites
…--
Derek
On 3 Dec 2019, at 12:48, Nícholas André ***@***.***> wrote:
@derekPrivate <https://github.com/derekPrivate> Can you try replacing this line https://github.com/10up/MU-Migration/blob/master/includes/commands/class-mu-migration-import.php#L685 <https://github.com/10up/MU-Migration/blob/master/includes/commands/class-mu-migration-import.php#L685> with this: sed -i'' -e '$sed_command' $filename
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#70?email_source=notifications&email_token=ABU4OWGI4E5AAUZQDDJRIADQWZIRHA5CNFSM4JTHBFO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFZICLA#issuecomment-561152300>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABU4OWCY7WGJTPOLU6GZWTDQWZIRHANCNFSM4JTHBFOQ>.
|
Hello, the same sed error. I use WSL, only the site is not being imported, here is the error |
I export a subsite from a live system:
wp mu-migration export all subsite.zip --blog_id=2 --path=/var/www/html/wordpress --plugins --themes --uploads
I then import into a new (clean, multisite) Wordpress installation:
wp mu-migration import all subsite.zip --new_url=mynewsite.com/wordpress/subsite --blog_id=2
When finished, the site appears in the list of sites in the Network Admin, but if I try to Visit Site or show the Dashboard, I get a connection timeout error in my browser.
One curious thing is that during the import, I see the following messages:
Extracting zip package...
Importing tables...
Warning: Something went wrong while running sed
Warning: Something went wrong while running sed
Warning: Something went wrong while running sed
Warning: Something went wrong while running sed
Warning: Something went wrong while running sed
Warning: Something went wrong while running sed
Warning: Something went wrong while running sed
Warning: Something went wrong while running sed
Moving files...
etc...
Any ideas on why this is not working? Anything I can try to help track down the issue? Note that the default site continues to work, and I can still access the Network Admin pages, just not my imported subsite.
p.s. this is a new Wordpress install, so I can easily delete Wordpress and database, and set it up again - takes me less than 5 minutes!
The text was updated successfully, but these errors were encountered: