• Resolved Anna-Karina

    (@kina60)


    Found a warning in Lighthouse chrome test:
    (index):1 [DOM] Found 2 elements with non-unique id #wprm-comment-rating-5: (More info: https://goo.gl/9p2vKq)

    <input aria-label=”Waardeer dit recept met 5 van de 5 sterren” id=”wprm-comment-rating-5″ name=”wprm-comment-rating” value=”5″ type=”radio” onclick=”if (!window.__cfRLUnblockHandlers) return false; WPRecipeMaker.rating.onClick(this)” style=”width: 16px !important; height: 16px !important;”>

    How to resolve this?

    Thanks for help!
    Anna-Karina

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Brecht

    (@brechtvds)

    Hi Anna-Karina,

    This doesn’t look like the default WordPress comment system. Are you using any plugin for that?

    They seem to be adding multiple input forms. Because of that our code gets added multiple times as well, causing that error.

    Thread Starter Anna-Karina

    (@kina60)

    I use ratings in the recipe AND also in the comments. Is that the problem?
    You told me:”Kies welke waarderingsfuncties ingeschakeld moeten worden. De gemiddelde recept-rating zal de verschillende waarderingsmethoden combineren.” Or maybe I misunderstood that?

    Plugin Author Brecht

    (@brechtvds)

    No that’s not the problem.

    What comment plugin are you using?

    Thread Starter Anna-Karina

    (@kina60)

    Oké ??
    I’m using wpDiscuz 7

    Plugin Author Brecht

    (@brechtvds)

    The problem is with wpDiscuz adding multiple instances of the comment form. So our ID gets added twice because of that. This doesn’t happen with the regular WordPress comment form.

    I’ll look into it and see if we can use a class instead of an ID for the next update.

    Thread Starter Anna-Karina

    (@kina60)

    Well I think it’s realy a wprm problem can I send you a screenshot by Email?

    Plugin Author Brecht

    (@brechtvds)

    Well yes, the ID is part of WPRM but the problem only occurs because of the way wpDiscuz works. They are the ones adding the form twice, causing the problem. This doesn’t happen it you use the default WordPress comment form, only when using their plugin.

    In any case, as mentioned I’ll be looking into a fix on our end for the next update.

    Thread Starter Anna-Karina

    (@kina60)

    Ah OK.
    Thanks for the fix!

    Plugin Author Brecht

    (@brechtvds)

    Hi again,

    I wanted to let you know we just released WP Recipe Maker 7.0.0 which includes this fix!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Found 2 elements with non-unique id #wprm-comment-rating’ is closed to new replies.