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

Import error #11

Open
paaljoachim opened this issue Sep 14, 2017 · 8 comments
Open

Import error #11

paaljoachim opened this issue Sep 14, 2017 · 8 comments

Comments

@paaljoachim
Copy link

Hey Paul

I exported content from a dev site to a new local site.
On Import I adjusted a user and then added the content: I received the following error message (I do not know if it is the same as before so that I am then adding a new issue for it.)

Can not modify header information - headers already sent in /Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-includes/option.php on line 837
Call Stack

Time Memory Function Location

1 0.0016 397632 {main}( ) ../admin.php:0
2 0.2840 31799624 call_user_func:{/Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-admin/admin.php:309} ( ) ../admin.php:309
3 0.2840 31799696 WXR_Import_UI->dispatch( ) ../admin.php:309
4 0.2840 31799968 WXR_Import_UI->display_import_step( ) ../class-wxr-import-ui.php:110
5 0.2931 31864808 require( '/Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-content/plugins/wordpress-importer-v2-master/templates/import.php' ) ../class-wxr-import-ui.php:445
6 0.2942 31871440 WXR_Import_UI->render_header( ) ../import.php:41
7 0.2942 31873528 require( '/Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-content/plugins/wordpress-importer-v2-master/templates/header.php' ) ../class-wxr-import-ui.php:119
8 0.2945 31913952 require_once( '/Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-admin/admin-header.php' ) ../header.php:7
9 0.2950 31915952 wp_user_settings( ) ../admin-header.php:63
10 0.2955 31916600 setcookie ( ) ../option.php:837

( ! ) Warning: Cannot modify header information - headers already sent in /Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-includes/option.php on line 838
Call Stack

Time Memory Function Location

1 0.0016 397632 {main}( ) ../admin.php:0
2 0.2840 31799624 call_user_func:{/Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-admin/admin.php:309} ( ) ../admin.php:309
3 0.2840 31799696 WXR_Import_UI->dispatch( ) ../admin.php:309
4 0.2840 31799968 WXR_Import_UI->display_import_step( ) ../class-wxr-import-ui.php:110
5 0.2931 31864808 require( '/Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-content/plugins/wordpress-importer-v2-master/templates/import.php' ) ../class-wxr-import-ui.php:445
6 0.2942 31871440 WXR_Import_UI->render_header( ) ../import.php:41
7 0.2942 31873528 require( '/Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-content/plugins/wordpress-importer-v2-master/templates/header.php' ) ../class-wxr-import-ui.php:119
8 0.2945 31913952 require_once( '/Users/joachim/Documents/Websites/kooperativet-sep2017.dev/wp-admin/admin-header.php' ) ../header.php:7
9 0.2950 31915952 wp_user_settings( ) ../admin-header.php:63
10 0.2972 31916656 setcookie ( ) ../option.php:838

A plugin such as WooCommerce is active on the dev site but not active on the local site.
Here is also a screenshot:

screen shot 2017-09-14 at 14 32 19

@paaljoachim
Copy link
Author

paaljoachim commented Sep 14, 2017

I imported again.
This time I activated WooCommerce at the receiving site and went through the wizard. I also Added the user joachim to the existing user joachim (not as a new user). The import completed with no visible errors above. It showed two errors below: Failed to import user "Mats" (probably because it did this the last time, and a failed to import "" (Post).

screen shot 2017-09-14 at 15 01 03

@paaljoachim
Copy link
Author

paaljoachim commented Sep 14, 2017

Receiving site:
It looks like the posts are in place containing only the post title and nothing else. - Empty posts -
It looks like all the media has been added to the media library.

The exporting site has language set to Norwegian. The receiving site to English.

@paaljoachim
Copy link
Author

I adjusted the receiving site to Norwegian and imported again.
The posts are still blank...

@paaljoachim
Copy link
Author

I went back to the exported site and this time only exported the posts.
Then imported the file into the receiving site. There are now duplicate posts, but atleast there is now content in the second set of posts.

I deleted all the posts and then imported the file again. It gave no errors and it did not import the posts this time..... Aha! I just deleted the posts but I did not empty the trash can. OK trash can is now emptied. I imported again and this time there are posts with images and text content.

@pbiron
Copy link
Owner

pbiron commented Sep 15, 2017

As always, it'll be easier to figure out what is going on if you attach the WXR file so that I can try to import it myself.

@pbiron
Copy link
Owner

pbiron commented Sep 15, 2017

@paaljoachim
Copy link
Author

paaljoachim commented Sep 15, 2017

Sorry about that...here is the other file:

https://www.dropbox.com/s/f0w0t7ws4addni4/kooperativet.wordpress.2017-09-15.xml?dl=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants