• Hi,

    When I click on the All Posts, the list opens, but I Chrome console I see a host of errors “[DOM] Found 2 elements with non-unique id #in-category-”

    I don’t have any duplicates in categories. Appreciate your help!!

    [DOM] Found 2 elements with non-unique id #in-category-1: (More info: https://goo.gl/9p2vKq) <input value=”1″ type=”checkbox” name=​”post_category[]​” id=​”in-category-1″>​ <input value=​”1″ type=​”checkbox” name=​”post_category[]​” id=​”in-category-1″>​
    edit.php:1

    [DOM] Found 2 elements with non-unique id #in-category-10: (More info: https://goo.gl/9p2vKq) <input value=​”10″ type=​”checkbox” name=​”post_category[]​” id=​”in-category-10″>​ <input value=​”10″ type=​”checkbox” name=​”post_category[]​” id=​”in-category-10″>​
    edit.php:1

    [DOM] Found 2 elements with non-unique id #in-category-11: (More info: https://goo.gl/9p2vKq) <input value=​”11″ type=​”checkbox” name=​”post_category[]​” id=​”in-category-11″>​ <input value=​”11″ type=​”checkbox” name=​”post_category[]​” id=​”in-category-11″>​
    edit.php:1

    [DOM] Found 2 elements with non-unique id #in-category-1121: (More info: https://goo.gl/9p2vKq) <input value=​”1121″ type=​”checkbox” name=​”post_category[]​” id=​”in-category-1121″>​ <input value=​”1121″ type=​”checkbox” name=​”post_category[]​” id=​”in-category-1121″>​
    edit.php:1

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Howdy!

    What that error is telling you is that on the page there are to things that have the same ID. In particular these:

    
    <input value=”1″ type=”checkbox” name=​”post_category[]​” id=​”in-category-1″>​
    <input value=​”1″ type=​”checkbox” name=​”post_category[]​” id=​”in-category-1″>​
    

    On a browser’s page, all IDs have to be unique. As you can see the above they both have the same ID of in-category-1. The page still shows and works fine. It could be that a browser extension or a plugin could potentially be doing that.

    Does that happen in any other browser? Have you tried deactivating all plugins to see if that resolves the issue?

    Moderator bcworkz

    (@bcworkz)

    It appears the problem is broader than non-unique IDs! Your category screen has redundant checkbox fields. I’m unable to replicate the problem on my site, so I suspect a plugin or your theme is messing with category screen tables for some reason.

    Please install and activate the health-check plugin. This is essentially one way to accomplish Jose’s last suggestion. Go to the health check screen under Dashboard and check the status tab for any issues flagged there. Then enter troubleshooting mode. You should no longer see non-unique IDs. Use the troubleshooting item in the admin bar to restore your theme and plugins, one at a time. When the non-unique IDs recur, the last activated module is the cause. Take up the issue with the respective author.

    Thread Starter jyotibaid

    (@jyotibaid)

    Thanks Jose and bceorkz. I’ll give the health-check plugin a try.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[DOM] Found 2 elements with non-unique id #in-category-1’ is closed to new replies.