WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Categories and Tags are duplicated! (22 posts)

  1. igorescobar
    Member
    Posted 2 years ago #

    Hi Guys!

    Right after the instalation of Polylang plugin my categories and tags are duplicated! On my dashboard looks like everything is okay but on my layout my tags and categories are duplicated!

    Does anyone experienced the same problem?

    Thank you!
    - Igor

    http://wordpress.org/extend/plugins/polylang/

  2. kylewendt
    Member
    Posted 2 years ago #

    I tried this plugin for the first time today and noticed the same thing has happened to my deployment. Any chance you're using Anthony Webbs' Advanced Recent Posts widget? Where are you seeing your duplicate categories and tags?

  3. igorescobar
    Member
    Posted 2 years ago #

    On my widgets!
    My dashboard is fine.

    My Categories Widget are disabled because everything is duplicated. But my tag cloud are active!

    Check it out: http://www.igorescobar.com/blog/

    Ideas?

  4. igorescobar
    Member
    Posted 2 years ago #

    I made another test:

    - I did the uninstall process. Completely removing the Polylang.
    - After, I look at my Categories Widget and Tag Cloud Widget and everything is working fine again.
    - Re-installed the Polylang plugin.
    - Went to the settings page of the plugin.
    - Did all over again the configuration process.
    - Adding the Portuguese (dafault) and the English language.
    - Check the option to set all posts, tags and categories with the dafault language.
    - Then, I finally add the Categories and Tag cloud widget again.
    - BOOM! Everything are duplicated again.

    What do I doing wrong?

    - Igor

  5. igorescobar
    Member
    Posted 2 years ago #

    Well... the solution was removing this plugin. Thanks for the help.

  6. JulienD
    Member
    Posted 2 years ago #

    Same problem for me. Any solution ?

    @igorescobar, did you find an other plugin ?

    Best

  7. igorescobar
    Member
    Posted 2 years ago #

    Hi @JulienD
    No, After exhaustively trying many approaches, I gave up. Now all my blog posts are only in English and the old ones remain in Portuguese.

    All the others "free" plugins which I've tried I did not succeded.

  8. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    Did you try with a standard theme such as twenty ten and with only Polylang activated as plugin and then switch the theme and activated all other plugins one by one to see if comes from a conflict with the theme or another plugin?

  9. customdesign
    Member
    Posted 1 year ago #

    I have tried with twenty ten and no other plugin activated: still the same thing! Is this a Polylang bug?

  10. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Maybe but I never reproduced it, thus could not solve it. Could you send a link?

  11. customdesign
    Member
    Posted 1 year ago #

    POST REMOVED!!!

  12. customdesign
    Member
    Posted 1 year ago #

    Sorry I noticed it would be too much work for you. Will put the site on line for you!
    Hang on a few minutes...

  13. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you but it's OK now, I have your site in a local install. This db dump is a great idea in fact. Thus it should be easier to debug. Just want to check that I reproduce exactly the same things as you.

    Duplicate categories are displayed by the categories widget. It seems that not all categories are duplicated. I found 2 categories: with ids 12 and 14. Is it the same for you?

  14. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    3 categories are duplicated in fact. The language information is duplicated in the database for these 3 categories. But I don't know yet how it could occur.

    Did you use the red option "There are posts, pages, categories or tags without language set. Do you want to set them all to default language ?" in language settings to set the language of your existing content?

  15. customdesign
    Member
    Posted 1 year ago #

    Yes, we've got the same db! :-) And I did get the option: "There are posts, pages, categories or tags without language set. Do you want to set them all to default language?" when installing polylang.

  16. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Yes you got the option, but did you check it? Do you remember if you set the language of the 3 duplicate categories using this option?

    I still haven't found the reason for this bug. Your answer may help me.

    Waiting for this, I wrote a small plugin to correct the database when someone gets this issue.
    http://pastebin.com/1ALNE2xq

    *Make a backup of your database*
    Copy paste in a file correct.php
    Upload the file in the plugins directory
    Activate the plugin -> it should immediately remove duplicate tags and categories
    Deactivate the plugin and delete it

  17. customdesign
    Member
    Posted 1 year ago #

    OK thanks Chouby, I can't tell you if this occured after having checked the option since it was one of the first things I did.

    However I have found the old db among my files and made a new dump, it comes from WordPress 3.0.2. I suppose that using this dump and activating Polylang should lead to the same issue. I haven't tried it myself though.
    If you echo the sql strings from Polylang I suppose you will find where it goes wrong. I do hope it will help you on your quest.

    dbdump

  18. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you. I will keep working on this.

  19. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Finally, thanks to your help, I discovered that it occurs for post tags and categories which share the same name when you check the option to set the default language to all existing content.

    I will correct this in 0.9.3.

  20. igorescobar
    Member
    Posted 1 year ago #

    Now we'are talking!
    That's totally makes sense because that's exactly my case!

    Good work @Chouby ;)

    - Igor

  21. vtz98
    Member
    Posted 1 year ago #

    I have some duplicated categories and tags from version 0.9.2. Now that I upgraded to 0.9.3 - they are still present. I tried the correct.php plugin linked above with no success.
    Can you advice how to remove duplicates?

    Vlad

  22. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Was polylang activated when you activated the Polylang database correction plugin ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags