Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-34073

When using structure and template, The entity "reg" was referenced, but not declared Error in Web Content Portlet

Details

    Description

      ISSUE
      When using a structure and template in a web content article with special characters (such as ®) will result in an error when publishing. The content will also be blank when going back to edit it.

      ERRORS/LOGS

      21:55:09,020 ERROR [LocaleTransformerListener:129] 
      com.liferay.portal.kernel.xml.DocumentException: Error on line 8 of document  : The entity "reg" was referenced, but not declared. Nested exception: The entity "reg" was referenced, but not declared.
      

      STEPS TO REPRODUCE
      1. Create structure

      <?xml version="1.0"?>
      
      <root>
      	<dynamic-element name="headline" type="text" index-type="" repeatable="false"/>
      	<dynamic-element name="body" type="text_area" index-type="" repeatable="false"/>
      </root>
      

      2. Create template using the structure in #1
      Template:

      $headline.getData()
      <br>
      <br>
      $body.getData()
      

      3. Create a webcontent for a site using the template.
      4. Add title.
      5. In the text area, add the following text Company®
      6. Click publish

      Attachments

        Issue Links

          Activity

            People

              support-lep@liferay.com SE Support
              marco.abamonga Marco Abamonga
              Rafaela Nascimento Rafaela Nascimento
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10 years, 12 weeks ago

                Packages

                  Version Package
                  6.0.X EE
                  6.1.30 EE GA3
                  6.2.0 CE M5