WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] All Authors Suddenly Vanished from posts (12 posts)

  1. TheMarque
    Member
    Posted 1 year ago #

    i upgraded to the latest version of the plugin (some great features and updates, by the way) but it has done a terrible thing! Every single post's author was unassigned! Literally...of the 1500 posts published on my website, now none of them have an author. When looking at the lists of posts in the Dashboard, instead of listing an author it is just totally blank and lists nothing. What a pain! Why did this happen? Let me know if there is something that can be done.

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Odd. What happens when you disable the plugin? Do the authors come back?

  3. Jamil Jonna
    Member
    Posted 1 year ago #

    I have the same issue and have posted more details in this thread, since it highlights another problem with the update.

    http://wordpress.org/support/topic/duplicates-on-authors-page

    When I disabled the plugin the authors showed up but they already did in the front end anyway. The also show up in the backend with coauthors plus disabled but once enabled, they disappear from the back end, and only one author appears (as before).

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    When I disabled the plugin the authors showed up but they already did in the front end anyway. The also show up in the backend with coauthors plus disabled but once enabled, they disappear from the back end, and only one author appears (as before).

    Can you share some screenshots of what you're seeing?

  5. Jamil Jonna
    Member
    Posted 1 year ago #

    Here is one post:
    http://imgur.com/a/wqKJA

    It should have one author, which is correct. In the back end, no authors exist. The "edited by" is inserted in accordance with my custom shortcode (displayed in the other forum post cited above). When you click on the name, a bunch of duplicates come up.

    This other post should have three authors:
    http://monthlyreview.org/press/books/pb2532/
    But as you can see in this picture, there are no authors in the backend, as above:
    http://imgur.com/yNyzu

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Thanks Jamil. I clicked through your site a little bit and have some follow up questions:

    • For a post that is missing its authors, are you able to reassign authors?
    • Are there any patterns as to which posts are missing authors? Are they older posts or newer posts? Have you updated them recently?
    • How many total posts have been affected?
  7. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Some explanation of what I'm thinking.

    Co-Authors Plus uses a custom taxonomy called 'author' to retain relationships between posts and multiple users. The terms for the custom taxonomy have always had the user_login as the 'name' and the sanitize_title() version of the user_login as the 'slug'.

    When we display the co-authors associated with your post, the lookup used to be using the term slug and then doing a get_user_by( 'login', $slug );. That now has become a lookup against the user_nicename value for the user.

    If the user_nicename and user_login values differ at all, that might be a cause of the problem.

  8. bjorn2404
    Member
    Posted 1 year ago #

    Assuming the issue is the difference with the user_nicename, what should we do in this situation?

    I'm also having this issue after upgrading from 2.6.4 to the latest one. I can revert back and everything shows up again but if I install the latest version the majority of the posts on the site I'm working on don't have any assigned author.

    If I try re-assigning after upgrading it can't seem to find any author if I start typing their name or username. I wouldn't want to do that manually though because there are over 1,000 posts on the site I'm working on.

    If I disable the plugin and go to a post in the back-end, one of the correct authors will be selected (if multiple were assigned).

  9. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Assuming the issue is the difference with the user_nicename, what should we do in this situation?

    You can do one of two things:

    1. Change the user_nicename value back to the sanitize_title() representation of user_login. For instance, if your user_login was 'Daniel Bachhuber', the user_nicename would be 'daniel-bachhuber'.
    2. Change the slug of the term associated with the coauthor to be the user_nicename for the user

    If I try re-assigning after upgrading it can't seem to find any author if I start typing their name or username. I wouldn't want to do that manually though because there are over 1,000 posts on the site I'm working on.

    You shouldn't need to do that — renaming as I discussed should be sufficient.

  10. bjorn2404
    Member
    Posted 1 year ago #

    Ok, I'm doing some testing and the second method works for me but not the first one. I'd prefer to use the first method if possible so I don't muck up the author urls with periods (my user login format is first.last).

    I set up a test page to make sure I was getting the sanitize_title right - it converts first.last to first-last and tried updating a few users in wp_users but it didn't seem to fix it. If I look in the wp_terms table the slug value matches the first-last format.

  11. bjorn2404
    Member
    Posted 1 year ago #

    Hang on, sorry. I forgot I had tried changing a few things in the plugin files. The first method does seem to be working after all.

  12. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Cool, glad to hear. Apologies for any inconvenience this may have caused.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic