Information about products not created by Liferay is provided for informational purposes only and does not constitute Liferay Support recommendation nor endorsement. Liferay also does not assume any responsibility for any instructions herein or referenced regarding these products.
Portlets that use the WYSIWYG editor to publish content (e.g. Web Content, Blogs, Wikis, Message Boards) have a limit on the size of articles published. This is due to the default maxPostSizenbsplimitnbspwhich is specified in the server.xml of Tomcat (http://tomcat.apache.org/tomcat-7.0-doc/config/http.html). An article will not be published if it exceeds this setting.nbspTo overcome this issue, follow the steps provided in the below resolution.
Note: This workaround is limited to Tomcat and comparable products.
Resolution
- Navigate to the Tomcat ROOT folder -> conf -> server.xml
- Edit the property:
Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />
withConnector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" maxPostSize="0" redirectPort="8443" URIEncoding="UTF-8" />
- Save the file.
- Start the Liferay Portal.
- Add the Wiki portlet to the page.
- Select "This page is empty. Edit it to add some text."
- Select HTML from the Format drop-down menu.
- Select Source from the tabs above the text box.
- Enter a large amount of HTML code (e.g. create a web page with more than 16,000 lines).
- Click Publish.