Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-37629

ContentByLabel macro sometimes give: "Error rendering macro 'contentbylabel' : null"

    XMLWordPrintable

Details

    Description

      Mostly the macro contentbylabel gives this error:
      Error rendering macro 'contentbylabel' : null

      We have a page containing 4 contentbylabel macros using different labes but 90 % of all page views shows at least for one of the macros this error (see attached screenshots). Mostly after every refresh the error occures for one of the other contentbylabel macro. Some times the full page will be rendered without an error.

      In our setup we get those errors very often because we use a lot of the contentbylabel macro's.

      For your help here is the source of our page to see which paramters we use for the contentbylabel macros:

      <h3>aktive Projekte - Federf&uuml;hrung bei ELSTER</h3>
      <p><ac:structured-macro ac:name="contentbylabel"><ac:parameter ac:name="showLabels">false</ac:parameter><ac:parameter ac:name="reverse">true</ac:parameter><ac:parameter ac:name="sort">title</ac:parameter><ac:parameter ac:name="excerpt">true</ac:parameter><ac:parameter ac:name="labels">projekt_aktiv_elster</ac:parameter><ac:parameter ac:name="showSpace">false</ac:parameter><ac:parameter ac:name="type">page</ac:parameter></ac:structured-macro></p>
      <h3><ac:structured-macro ac:name="toggle-cloak"><ac:parameter ac:name="id">aktiv_extern</ac:parameter></ac:structured-macro>aktive Projekte - Federf&uuml;hrung bei anderen Verfahren</h3><ac:structured-macro ac:name="cloak"><ac:parameter ac:name="id">aktiv_extern</ac:parameter><ac:rich-text-body>
      <p><ac:structured-macro ac:name="contentbylabel"><ac:parameter ac:name="showLabels">false</ac:parameter><ac:parameter ac:name="reverse">true</ac:parameter><ac:parameter ac:name="sort">title</ac:parameter><ac:parameter ac:name="excerpt">true</ac:parameter><ac:parameter ac:name="labels">projekt_aktiv_fremdverfahren</ac:parameter><ac:parameter ac:name="showSpace">false</ac:parameter><ac:parameter ac:name="type">page</ac:parameter></ac:structured-macro></p></ac:rich-text-body></ac:structured-macro>
      <h3><ac:structured-macro ac:name="toggle-cloak"><ac:parameter ac:name="id">aktiv_intern</ac:parameter></ac:structured-macro>aktive Projekte - ELSTER-intern</h3><ac:structured-macro ac:name="cloak"><ac:parameter ac:name="id">aktiv_intern</ac:parameter><ac:rich-text-body><ac:structured-macro ac:name="contentbylabel"><ac:parameter ac:name="showLabels">false</ac:parameter><ac:parameter ac:name="reverse">true</ac:parameter><ac:parameter ac:name="sort">title</ac:parameter><ac:parameter ac:name="excerpt">true</ac:parameter><ac:parameter ac:name="labels">projekt_aktiv_intern</ac:parameter><ac:parameter ac:name="showSpace">false</ac:parameter><ac:parameter ac:name="type">page</ac:parameter></ac:structured-macro>&nbsp;</ac:rich-text-body></ac:structured-macro>
      <h3><ac:structured-macro ac:name="toggle-cloak"><ac:parameter ac:name="id">inaktiv</ac:parameter></ac:structured-macro>inaktive/abgeschlossene Projekte</h3><ac:structured-macro ac:name="cloak"><ac:parameter ac:name="id">inaktiv</ac:parameter><ac:rich-text-body><ac:structured-macro ac:name="contentbylabel"><ac:parameter ac:name="showLabels">false</ac:parameter><ac:parameter ac:name="reverse">true</ac:parameter><ac:parameter ac:name="sort">title</ac:parameter><ac:parameter ac:name="excerpt">true</ac:parameter><ac:parameter ac:name="labels">projekt_inaktiv</ac:parameter><ac:parameter ac:name="showSpace">false</ac:parameter><ac:parameter ac:name="type">page</ac:parameter></ac:structured-macro>&nbsp;</ac:rich-text-body></ac:structured-macro>

      And this error is independet of the used cloak macros. I've already tested this page without these macros!

      <<I've cloned the already closed issue CONF-30009 in order to reactivate the work on this issue as it is already commented on CONF-30009 after the fix>>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              539e7863d92d Alex Weiss
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: