I have a problem where I have an ID on most pages, that is inserted in a section of code by PHP include. On these pages, there is a href to that ID on the same page (i.e, the ref begins with href="#...). When I run the batch wizard, I get a bunch of errors: the wizard says:
not found in document file:///... (linked from ....).
If I check the details for a file, the message is:
Bad reference. Does this document contain an element with an ID of "CmtBox"? This link should be removed or it should link to a location in the document that is specified by the attribute id="CmtBox". ...
There are no other errors reported. But if I run one of these files through the Validator individually, the links are reported as OK. On the actual files in the browser, everything is working as it should. The pages are also working perfectly on the website itself (with the href either directly in file or in PHP include).
I am using version v20.0400, but I have checked with the latest version trial and it has the same problem.
I have found that if I put the href into a PHP include so that it does not occur in the document itself but only by a PHP include, the problem disappears. However, since the actual part of code is only 127 characters and cannot be incorporated in an already existing PHP include, it's not the ideal way to solve the problem. Note that while there are two hrefs to the same ID in that small bit of code (so it shows 2 errors for each file) I tried removing one, but the problem was still there.