-
Notifications
You must be signed in to change notification settings - Fork 63
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
General feedback thread! #7
Comments
Repurposing this ticket ;) |
I'm trying the importer now on folder full of split up xml files into multisite (in progress, takes a half hour or more normally) While that runs, to get more people testing quickly, it'd be good to:
Things I always struggled with using the old importer: |
Note: Plugin is network activated, but doesn't show in plugins.php in the sub-sites. Maybe this is deliberate behavior until there is a UI? |
I'm a little confused by this and haven't tried recreating the bug. Imported folder of XML files dumped from .com Imported into the primary site of a multi site instance locally using: It ran through all the xml files, yay! It imported all the posts, yay! It seems like it didn't create any users anywhere, boo! It could be related to me having blanked a bunch of tables (including wp_users) to reset the test site instead of starting from scratch. I'll try to reproduce tomorrow. |
Oh no, I forgot to document this! You actually want |
FYI, I was getting a fatal error on activation plugins.php:33 After that was able to get it activated and running on multisite, couple issues:
|
I am also getting the same error that @jb510 is and his fix let me activate and it appears to work but still getting a php notice: "Notice: Undefined index: wp_import in /Users/angelo/Documents/htdocs/wp-content/plugins/WordPress-Importer-master/plugin.php on line 38" Also want to echo the users thing, it is not creating users that don't exist and doesn't seem to be assigning properly even if there is a user with the same username already set up on the site I am importing to. If I set --user=username all the posts import as that user but in general when I am doing imports they have posts from lots of different users so it would be nice if it could match usernames automatically if they are already present. Final thing I noticed is that it seems to skip over all CPTs that are present in the export. For example I am getting [WARNING] Failed to import "Contact form 1": Invalid post type wpcf7_contact_form Media and posts/pages seem to work pretty well, though. Great work on this guys, we have been doing a lot of migration work recently and the WP Importer has been a huge pain in my butt, seems like this is a step in the right direction! |
I am trying to import using the below code:
But it's not working. |
@anteksiler Can you clarify what you mean by "it's not working"? That's not enough to go on unfortunately :) |
@rmccue Thanks for the reply, as far as I can see there are no posts or media being imported. |
@anteksiler Is this a public WXR file? Happy to test and debug :) |
Oh, actually, you may need a logger instance: try adding |
@rmccue I just tried by adding the above line, but failed to import again. Here is the demo content I am trying to import: http://cl.ly/code/2i3S2O0O2s3a Also, I am invoking the function using AJAX, not sure if that matters. |
Splitting out into #17. :) |
Great work! I just tried it out on a fresh install of WP 4.4-beta4-35735 with the test data from the codex (http://codex.wordpress.org/Theme_Unit_Test) and am getting a couple of warnings. Not 100% sure if the issue is with the importer or the test data so I figured I should post it here.
The parent post id is 1158, title Post Format: Image and it is not being imported at all. The relevant item: http://pastebin.com/GE4vgKF5 The other warnings are almost certainly from problems with the test data (comments pointing to non-existent users) but I will post them anyway in case I am missing something:
Each of these comments has a comment user id of 24783058, author email example@example.org, and author name John Doe, Joe Bloggs or Jane Doe. |
When importing, all the posts showed up for me, but the categories and tags didn't import along with them. The old importer worked as expected on the same file. Happy to give any details you need—I did the whole process a few times just to make sure it wasn't a fluke. |
So what's the status on this? A GUI would be really helpful. I'm one of many looking for a replacement for the default Importer, which isn't working correctly. But I'm not comfortable with CLI, and so a WP Admin interface is needed. Happy to send bugs, problems, etc, if there's at least a basic GUI for the rest of us to use. |
Hi, first of all thank you for helping us working better :) After activating in WP 4.2.2 with the old importer plugin activated and with debug="true" in wp.config.php, this appears:
|
@altrovideo So, one needs to install the old WordPress Importer plugin before trying to install the new one. @rmccue I think a note about this would go long way :) Just figured the This PR #36 might help for now. |
@ahmadawais I have just downloaded this plugin and used it on a fresh default untouched local WordPress installation version 4.5 running on XAMPP and it works out of the box. I have not had to install the personally dreaded old version of the importer. Ran the WP install and without doing anything else uploaded WordPress Importer Redux like described and then went on to upload wptest.io test data and it worked flawless out of the box. Well there is one tiny issue but I am not sure if this is due to WordPress Importer Redux or due to wptest.io test data. |
Just tried to Import Them Unit Test Data. I'm using WP 4.5 and I am on a localhost using MAMP. I click to start and I get a status screen but never any progress. |
^Same here. |
I was finally able to test the importer. Overall it is much better than the standard importer and I love the direction it is going and hope I can help out further. Anyway, here are my notes: Environment: Both the site I created the export from and site I used to run the import were WP v4.5.2. The import site was a fresh install of WP without any content or plugins that create custom post types. So, no new registered post types. Prior to import
During Import
Import Status Verifying Import
|
I've been waiting to try this out once the GUI was created. I just tried it now and I love it! Even my new found sea lion knowledge :) The only issue I had was that the importer hung at 99% on 2 remaining term imports http://imgur.com/5NljSNz. From what I can tell, the rest of the import was completely successful, but there were three comment warnings: warning Could not find the author for comment #2 I was testing with an export created from a "real" wp.com blog with 125mb media. WP4.5.2 on XAMPP |
Looks promising :) Great to see this under development. I imported: 39 posts, 138 media items (over 400MB), 207 users. I was importing to the main site of a multisite install. My issues:
Looking forward to seeing this develop. |
Just wondering if the web UI was tested on IE/Edge. I noticed it uses EventSource/SSE which isn't available even in the latest Edge version. I didn't find a polyfill under assets. Did I miss something? |
Much more informative than the original :) I think there is a huge need for this too as most WordPress Importers have a drag and drop interface (which is impractical when testing needs to be done in several environments) and are often limited in features. Its also fantastic to be able to use via the command line. I did encounter several problems though mainly with not being able to delete posts and re-import them during testing. I tested on a multisite using multi-network. I agree that matching authors would be a big plus and also a bit more debug information (especially concerning the image import) |
I got "Could not find the author for" on all the posts and no categories were assigned. I'm using a site with existing users and categories but no content. WP-CLI 0.24.1 |
Okay, I used this plugin to import a blog with 2500+ posts and 2300+ media attachments into multisite. First try, I did a trial run and imported it on my development server, and I let it import the users along with the posts. Second experience, on the operational site, I already had existing users (we are changing over from typical WP-generated user accounts to user accounts generated through our local LDAP with a plugin), so rather than importing the users, I assigned the posts to the correct new user accounts on the system. Everything else was the same. IT WORKED PERFECTLY BOTH TIMES. OH MY GOD THANKYOUTHANKYOUTHANKYOU. Where do I send your pony, man? You guys definitely earned it. The only oddity I saw was for some reason the importer seemed to think I had 79 terms when in fact there were only 20 categories and 19 tags defined on the blog. On the first import it told me it only imported 40 of the 79 (close enough); the second import it told me it imported zero of them! But in fact, all of the categories and tags were imported and assigned correctly. Thanks again, you totally rescued my week. |
It seemed to hang at the start at 0% but suddenly a whole lot of media items appeared to be uploaded. Not a big deal for those who are patient. Noticing it hang at 15% now as well, with little to no network activity while it's hanging. Hangs for a few minutes on no network activity. There are some files that were already uploaded via previous attempts using the v1 importer. Unsure if that could mess with it. Went from 15% to 87% rather quickly in a matter of seconds. The only warnings I got were some "Could not find post parent" warnings. I think it finished because it says "Import complete" but still the progress is at 87%. |
I'll just say as a follow up that I clicked "Visit Website" because I wanted to see what it looked like and it seems I may have stopped the importer from running. On the other hand, I think the importer may have stopped running even though some of the bars had not reached 100%. I'm not sure. A lot of the media files uploaded but the top menu and title image did not - I guess that was what the warning meant. Still, this is a big improvement from the regular importer which did not import ANY media files. There were also some widgets (Is that what they're called?) in that didn't load. There was an Indiegogo box and a Twitter box and a subscribe to our newsletter box. Again, I'm so new to wordpress I'm not even sure if those are widgets or custom post types. Anyway, they didn't appear. I hope some of this information is helpful. Good luck on the effort! Gambatte Ne! |
Stock importer just fails with timeout so anything here is an improvement. This managed to import all of the media (although counts seem a bit odd - header claims 899 media items 898/899 whereas the log shows 1403 media items. What it didn't do however is import any pages - is this intentional? The site I am moving all all page based, no posts at all. will open an issue Thanks |
I just tried this out on a fairly straightforward blog migration, containing data that the standard importer had to import in tiny little chunks. All posts, pages, users, and media imported in a single import. Everything looks exactly like it should up until the media library hits an image that's too big for the server to get a handle on (a 5 meg JPEG); from that point forward all imported media is listed as "unattached." Oh, and for some reason every post is now "Uncategorized" in addition to its actual categories. That glitch aside, the plugin seems to work exactly as intended. 👍 |
I need some help! I am trying to import content from an expression engine site, so I am making a .wxr file and using that to import. Using the standard importer plugin, I could get my posts in but no media attachments. I am now trying to use this on and things are worse. None of my categories, tags, or authors are importing AND the media attachments aren't importing. Is there a place where what the correctly formatted .wxr exists? I have about three different versions, I don't understand completely how attachments are supposed to be formatted what as far what is the purpose of the link, guid, and the attachment_url. I'll start digging in the code here but if there is any documentation outside of this(I can't find any) it would very helpful. I guess I'm not even sure if this plugin is made to handle manually made .wxr files either? |
@rmccue Looks promising but is there any promise for the release too :) |
Any idea on the release date for a "public beta"? It would be nice to have this available via |
non-bug comment: please don't abandon the project before it get merged into core. Merge (or at least give a look/comment) at the stack of PR |
Looks promising but has not been updated for the last 2YEARS. |
Thank you, so much for your importer, Joe. It addressed the 504 Gateway timeout error I had been wrestling with for the last 24 hours (something six other more "whiz-baang" "up-to-date" importers didn't do!) Thank you, again! |
I couldn't find an FAQ on what this meant. And though it was mentioned above, I couldn't find an explanation of why this warning occurred. So, I hope someone could shed light on this.
Does this mean: Thanks in advance. |
Hello Folks, I hope this is the proper place to discuss this as the repo doesn't have a security policy :) I believe that wp_safe_remote_get() should be used in place of wp_remote_get() on WordPress-Importer/class-wxr-importer.php Line 1774 in 140a53e
That function is designed to make HTTP requests to sources that may be untrusted, so it's by design prone to SSRF. Plus, many plugins are incorporating the library as a dependency, so it would be wise to retrieve remote content using a function that has built-in protection against SSRF. What do you think? Cheers, |
Tried the importer? Let us know if it works!
If you find any major issues, feel free to open new issues; this thread is mainly for non-bug comments and thoughts 😄
The text was updated successfully, but these errors were encountered: