WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Sitewide Tags Pages
Duplicate posts appearing in tags blog (24 posts)

  1. mbeasi
    Member
    Posted 3 years ago #

    I upgraded to WP 3.1.3 yesterday, and I don't know whether this issue is related or is a coincidence, but suddenly, whenever a user outside of the main blog (which is set as the tags blog) updates a post, it is creating a duplicate of the post in the main blog instead of simply updating the original post.

    I've been using the WP multi-site setup along with sitewide tags successfully for nearly a year and this is the first time I've encountered this problem.

    Here is the main blog: http://mangabookshelf.com/

    You won't see duplicate posts there, because I've been deleting them as they occur to keep the front page clean, but it is happening with posts from each of the site's subdomains. Again, I have no proof that this is due to the 3.1.3 upgrade, but the timing does coincide with that update. I realize that I could probably downgrade WordPress to test this, but I wanted to ask about it first, since that's a more laborious process than the automatic upgrade was.

    Is anyone else experiencing this issue along with 3.1.3, or has anyone experienced it in the past?

    Any help greatly appreciated!

    http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    The upgrade may have affected the post info on the main blog so when SWT looks for the original post it doesn't find it.

    Did you install/activate anything else? One plugin that I've seen wreck havoc with the SWT blog is the broken link checker.

  3. mbeasi
    Member
    Posted 3 years ago #

    Nope, the only change is the WP update.

  4. mbeasi
    Member
    Posted 3 years ago #

    I should be clear, too, this is happening with new posts created after the update as well as with older ones. One post made today had five duplicates appear in the main blog, just from being updated at its source.

  5. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    Do you have the latest version?

    The only other thing I can think of is you have something else interfering with it. If it persists with the latest version try turning off all the plugins in a test blog and publish a test post and see if you still get duplicate posts.

  6. mbeasi
    Member
    Posted 3 years ago #

    Yes, I am using the development version, and I believe it is the most recent, though I will double-check. Should I assume from what you are saying that it has been tested with the latest WP upgrade and has caused no problems for anyone else? is it likely that another plugin is at fault when I haven't updated or changed any of them? I can test that, I am just unclear in why that would be the case when they all worked together nicely up until today.

    Thank you, in any case, for responding!

  7. mbeasi
    Member
    Posted 3 years ago #

    Just an update: performed a test as suggested by Ron above, submitting a post from a test blog with all plugins off. The problem still occurred. The post appeared as usual in the main blog, and then when I updated the post, it generated a new, duplicate post in the main blog.

  8. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    I just switched to 3.1.3 and the same thing occurred on my test site.

    It may be a couple days before I have a chance to look into it.

  9. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    It may be a couple days before I have a chance to look into it.

    Strike that. Found it the first place I looked. The dev version has been updated.

  10. mbeasi
    Member
    Posted 3 years ago #

    Oh, wonderful news! Thank you!

  11. eobanb
    Member
    Posted 3 years ago #

    Any updates on this? I run a large site and this is causing a lot of problems, and I would hate to have to revert to 3.1.2. In the mean time, the plugin is still listed as being compatible up to 3.1.3...

  12. mbeasi
    Member
    Posted 3 years ago #

    Ron's fix in the development version works, or at least it did for me. You can download that from this page.

    One note: the fix applies to all new posts, but I found that if you go back and edit posts that were made before the fix, they still reproduce, so just keep an eye out for that.

  13. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    One note: the fix applies to all new posts, but I found that if you go back and edit posts that were made before the fix, they still reproduce, so just keep an eye out for that.

    I tested for that and didn't have that issue. Is it possible that the ones this is occurring on are ones that were updated between when you upgraded to 3.1.3 and when you had the version with the fix.

    Any updates on this? I run a large site and this is causing a lot of problems, and I would hate to have to revert to 3.1.2. In the mean time, the plugin is still listed as being compatible up to 3.1.3...

    Here's the post: http://wpmututorials.com/plugins/sitewidte-tags-for-wp-3-1-3/. Whenever either Donncha or I update the plugin for a significant issue like this one, there will be an update post on http://wpmututorials.com.

  14. mbeasi
    Member
    Posted 3 years ago #

    I tested for that and didn't have that issue. Is it possible that the ones this is occurring on are ones that were updated between when you upgraded to 3.1.3 and when you had the version with the fix.

    Ah yes, that's likely the case, since it was recent posts I was testing. That's nice to know, since that means a relatively small number of posts were affected by the problem.

  15. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    Ah yes, that's likely the case, since it was recent posts I was testing. That's nice to know, since that means a relatively small number of posts were affected by the problem.

    If you had moved some of those interim duplicate posts to the trash but not deleted them, SWT would have picked some of them up (50/50 chance) and republished them.

    If there are two posts there for the same source post it only replaces one of them. It would depend on index/table ordering which one it would get.

  16. Curtiss Grymala
    Member
    Posted 3 years ago #

    Ron - While working on a slightly modified version of Sitewide Tags, I noticed this issue today. Thanks for putting out a fix so quickly.

    I think there may be one more spot in the plugin that needs to be modified because of this change. In the sitewide_tags_remove_posts() function, I believe the following line:

    $posts = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} WHERE guid LIKE '".$blog_id.".%'");

    will need to change to something like:

    $posts = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} WHERE guid LIKE '".$blog_id.".%' OR guid LIKE 'http://".$blog_id.".%'");

    (I'm sure that's not the best way to do it, but I'm also not sure how you would apply the esc_url() function to a portion of the guid)

  17. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    @Curtiss - thanks, I'll put it on the list. esc_url() is what WP is using to sanitize the guid & it adds the http://.

  18. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

  19. newswriter
    Member
    Posted 3 years ago #

    just checking, but is it still not working right in 3.13 but will be fixed in the next update?

  20. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    Use the development version for WP 3.1.3.

  21. gtrout
    Member
    Posted 3 years ago #

    One note: the fix applies to all new posts, but I found that if you go back and edit posts that were made before the fix, they still reproduce, so just keep an eye out for that.

    I tested for that and didn't have that issue. Is it possible that the ones this is occurring on are ones that were updated between when you upgraded to 3.1.3 and when you had the version with the fix.

    I have the same problem - the development version fixes the problem on new posts but old posts are still duplicated on update.

  22. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    It's a bit of a long thread. If you upgraded and ran with 3.1.3 for a while before you updated SWT you would have

    If you had moved some of those interim duplicate posts to the trash but not deleted them, SWT would have picked some of them up (50/50 chance) and republished them.

    If there are two posts there for the same source post it only replaces one of them. It would depend on index/table ordering which one it would get.

  23. imuino
    Member
    Posted 3 years ago #

    Hi, I've tried your fix and it worked well, however if I try to populate the tags page from an existing blog it crashes, all i have is a blank page. So I tried using the old version to populate and then the used the fix for future posts, there should be a better solution for this. Also it only populates the first 500 posts but I have more than one thousand, what can be happening?

    Thank you

  24. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 3 years ago #

    Try turning your plugins off while you do the populate. The populate feature only works in the dev version.

    If you have a slow server or one with low resources, turn javascript off in your browser and manually load the populate page with longer breaks between page loads.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic