pbiron / wordpress-importer-v2

In-development rewrite of the WordPress (WXR) Importer
Other
12 stars 5 forks source link

Import error #11

Open paaljoachim opened 7 years ago

paaljoachim commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

paaljoachim commented 7 years ago

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 commented 7 years ago

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.

paaljoachim commented 7 years ago

I have two: The most recent: https://www.dropbox.com/s/e3hn8g3va7rpb8v/kooperativet.wordpress.2017-09-14.xml?dl=0

One from yesterday: https://www.dropbox.com/s/e3hn8g3va7rpb8v/kooperativet.wordpress.2017-09-14.xml?dl=0

pbiron commented 7 years ago

I have two: The most recent: https://www.dropbox.com/s/e3hn8g3va7rpb8v/kooperativet.wordpress.2017-09-14.xml?dl=0

One from yesterday: https://www.dropbox.com/s/e3hn8g3va7rpb8v/kooperativet.wordpress.2017-09-14.xml?dl=0

those URLs are the same...

paaljoachim commented 7 years ago

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

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