WordPress.org

Support

Support » Multisite » [Resolved] Invalid author importing single WordPress to Mulitsite WordPress

[Resolved] Invalid author importing single WordPress to Mulitsite WordPress

  • jessedijkstra
    Member

    @jessedijkstra

    When importing a single wordpress installation to a multisite wordpress installation with the WordPress Importer it does not map the right author.

    Is there anything I should do besides trying to map/import the author’s to import the blog into a multisite wordpress environment?

Viewing 15 replies - 1 through 15 (of 42 total)
  • Is the author a member of the site you’re trying to import into, AND are they an author there?

    Did you try to assign the author upon import, or did you tell it to create a new one?

    make sure the user exists in the network first, and is added to the subsite.

    THEN import.

    jessedijkstra
    Member

    @jessedijkstra

    I’ve tried the following two options:
    – Import the author
    – Creating the author beforehand, assigning it to the site then assigning it to the appropiate author.

    Both default to my current user.

    Both default to my current user.

    When you do the import, doesn’t it ask you what account you want to map the posts to?

    jessedijkstra
    Member

    @jessedijkstra

    It does, if I map it to an user it defaults back to my current user anysways.

    Okay, THAT is weird. I’m going to try and reproduce this.

    What version of singlesite?

    jessedijkstra
    Member

    @jessedijkstra

    Those were my thoughts as well 😉 At first I thought it had to do with the import plugin not being compatible with a MU WordPress database setup, but after looking at the source I was sure that couldn’t be it.

    I upgraded the single site to 3.1.1 before doing an export to ensure that I have a compatible export file.

    Out of curiosity, why not flip the single site to MultiSite?

    It’s POSSIBLE it could be an issue with the exported data. There might be a weird character in there causing the whacky.

    Is the user you’re trying to add posts for an AUTHOR on the site?

    jessedijkstra
    Member

    @jessedijkstra

    Does the type of user matter for importing a user? I thought it was nothing more then an ID reference to the user.

    And the reason we’re not flipping a single site to multisite: we’re trying to setup a single environment hosted CMS solution with CDN for several clients (they’re running single wordpress installations atm) to reduce maintenance cost. So after our first setup we will need to do this with more websites 😉

    Does the type of user matter for importing a user?

    It does. If you’re not an author, you can’t have a post assigned to be written by you. (I have a site with 600 users and 3 authors. Only the AUTHORS show in the dropdown menu for ‘author’ when I edit the post.)

    jessedijkstra
    Member

    @jessedijkstra

    I added them as Administrators for the record btw 😉 Was just curious how exactly the WordPress Importer plugin worked. Thought it was basically setting the post author based on an ID not based on roles etc.

    jessedijkstra
    Member

    @jessedijkstra

    In the end I migrated the blog by hand with mySQL. Had problems importing the media with the importer as well (PHP didn’t like the amount of imports and downloads). Took a bit of rewriting SQL queries but the effect is much better then that of the importer.

    At first I thought it had to do with the import plugin not being compatible with a MU WordPress database setup, but after looking at the source I was sure that couldn’t be it.

    nitpicky: it;s not mu anymore. 😉 And any internal basic functions for a single site work the same in multi. Really.

    but hey, you got it.

    adaptistration
    Member

    @adaptistration

    I’m having this same problem too. Went from a single install to a multi site install. Created the authors in network first, then added to child site, thought I made sure the user roles were the same (and even tried configurations after unsuccessful attempts) but the importer keeps assigning them to the admin.

    this is very, very frustrating and I hope there will be a way to get it straightened out while still using the standard importer becasue I don’t think I can move the database as I had to delete the single install (which was using the sameparent.com/childname url as the new multi site URL) in order to assign the child site name to the new multi site. And I don’t know if WP deletes the database when deleting the account.

    If you deleted the web account, then the db would be deleted by your host. If you just deleted the WP files, that does nothing to the db.

    Either way,, it;s always a good idea to take backups of the dbs & files before doing anything. As stated in the instructions. 😉

    If there’s a bug in the importer, then it’s trac ticket time.

Viewing 15 replies - 1 through 15 (of 42 total)
  • The topic ‘[Resolved] Invalid author importing single WordPress to Mulitsite WordPress’ is closed to new replies.