We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12872
    • 68 Posts
    I am trying out the 2.1 Beta of ditto and reflect. Ditto works fine but I get the following markup errors while validating
     
       1.   Error  Line 187, Column 174: document type does not allow element "a" here; assuming missing "li" start-tag.
          …July 2007" class="reflect_month_link">July 2007</a>
       2. Error Line 188, Column 5: end tag for "li" omitted, but OMITTAG NO was specified.
          </ul>
          You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
       3. Info Line 187, Column 1: start tag was here.
          <a href="/et/index.php?id=1&amp;reflect_369_month=7&amp;reflect_369_year=2007&a

    Wondering where I went wrong.
      • 18397
      • 3,250 Posts
      1. Where did you get the download from? The download thread (old version) or the dev download link (based off of svn repository)?
      2. Is you template xHTML or HTML 4.0?
      3. Can you provide the entire output of Reflect?
        • 12872
        • 68 Posts
        1. I downloaded ditto_r1443.tar.gz from SVN.
        2. XHTML 1.0 Transitional
        3. I do not comprehend "output of Reflex" . Can you tell me how to get it?
          • 18397
          • 3,250 Posts
          If you have this:
          <div id="reflect">
          [[Reflect.....]]
          </div>
          

          Copy and paste everything between the div tags.
            • 12872
            • 68 Posts
            <div>
            [[Ditto? &amp;startID=`1` &amp;summarize=`2` &amp;removeChunk=`Comments` &amp;tpl=`ditto_blog` &amp;paginate=`1` &amp;extenders=`summary,dateFilter` &amp;paginateAlwaysShowLinks=`1` &amp;tagData=`documentTags`]]
            </div>
            <div>
            <p>
            Showing summaries<strong>[+start+]</strong> - <strong>[+stop+]</strong> of <strong>[+total+]</strong> Articles
            </p>
            </div>
            <div id="ditto_pages">
            [+previous+] [+pages+] [+next+]
            </div>
            <div>
            [[Reflect? &amp;dittoSnippetParameters=`startID:1` &amp;groupByYears=`0` &amp;showItems=0` &amp;tplMonth=`reflect_month_tpl`]]
            </div>
              • 12872
              • 68 Posts
              This Chunk is also used:
              <div class="ditto_summaryPost">
              <h3><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h3>
              <div class="ditto_info" >By <strong>[+author+]</strong> on [+date+]. <a href="[~[+id+]~]#commentsAnchor">Comments
              ([!Jot?&docid=`[+id+]`&action=`count-comments`!])</a></div><div class="ditto_tags">Tags: [+tagLinks+]</div>
              [+summary+]
              <p class="ditto_link">[+link+]</p>
              </div>
                • 18397
                • 3,250 Posts
                I should have been more clear. I was referring to the output you see in your web browser, not the call itself (although it certainly is handy to have).
                  • 12872
                  • 68 Posts
                  There was no problem in the browser output . The errors are from W3C validator when I check my pages for validity.
                  However I have another problem now, which is likely to be unrelated to reflect or ditto. I am getting the following error on every page :

                  Parse error: syntax error, unexpected ’<’ in /home/.../public_html/manager/includes/document.parser.class.inc.php(766) : eval()’d code on line 2
                    • 12872
                    • 68 Posts
                    i am attaching the html output if that is what you wanted
                      • 18397
                      • 3,250 Posts
                      I don’t see either any Reflect output or the parse error in the html output file you provided.