• 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: https://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!

    https://www.ads-software.com/extend/plugins/wordpress-mu-sitewide-tags/

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    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.

    Thread Starter mbeasi

    (@mbeasi)

    Nope, the only change is the WP update.

    Thread Starter mbeasi

    (@mbeasi)

    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.

    Plugin Author Ron Rennick

    (@wpmuguru)

    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.

    Thread Starter mbeasi

    (@mbeasi)

    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!

    Thread Starter mbeasi

    (@mbeasi)

    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.

    Plugin Author Ron Rennick

    (@wpmuguru)

    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.

    Plugin Author Ron Rennick

    (@wpmuguru)

    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.

    Thread Starter mbeasi

    (@mbeasi)

    Oh, wonderful news! Thank you!

    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…

    Thread Starter mbeasi

    (@mbeasi)

    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.

    Plugin Author Ron Rennick

    (@wpmuguru)

    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: https://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 https://wpmututorials.com.

    Thread Starter mbeasi

    (@mbeasi)

    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.

    Plugin Author Ron Rennick

    (@wpmuguru)

    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.

    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 'https://".$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)

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘[Plugin: WordPress MU Sitewide Tags Pages] Duplicate posts appearing in tags blog’ is closed to new replies.