How to fix: ID "index_forum" already defined

Most Likely Cause and Fix

The value index_forum has already been used for an id attribute.

Find all attribute occurrences of the form … id="index_forum" … and ensure each has a unique value within the given document.

What This Error Means

The id attribute is used to uniquely identify a single element within a document:

<img src="http://example.com/header.png" id="header-image" >

In order to uniquely identify a single element, the value of the id attribute must be unique within the given document.

This error is telling you that the value index_forum has already been used for an id attribute.

How To Fix It

Find all attribute occurrences of the form … id="index_forum" … and ensure each has a unique value within the given document.

For example, use:

<div id="index_forum-foo">
  <p>Foo</p>
</div>

<div id="index_forum-bar">
  <p>Bar</p>
</div>

instead of:

<div id="index_forum">
  <p>Foo</p>
</div>

<div id="index_forum">
  <p>Bar</p>
</div>

Discuss, Comment and Improve

Did this help you? Can this page be improved? Let us know!

comments powered by Disqus