Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Can't Edit Web Content Display
Hi - we've recently gone live with a Liferay 6.2 deployment. We have developed some portlets and hooks, and also used Web Content Display for various static content. A problem that we are having now is that when we go to Edit any of the Web Content Display on various pages, we are never able to see the editor (DOJO editor?) so that we are unable to change the links and other static content in the WCDs...
In our test instances of Liferay (locally workstations) this is not a problem but in our production server it is a problem. We've found we now have to create portlets just so that we can put static content in JSP pages as we're not able to modify WCD content. This is unfortunately since we prefer to write our own portlets only when we have dynamic content to deal with.
Would appreciate any help at all.
Thanks,
-Mike
In our test instances of Liferay (locally workstations) this is not a problem but in our production server it is a problem. We've found we now have to create portlets just so that we can put static content in JSP pages as we're not able to modify WCD content. This is unfortunately since we prefer to write our own portlets only when we have dynamic content to deal with.
Would appreciate any help at all.
Thanks,
-Mike
Hi
You said you developed some portlets and script. this is mostly happens because of java script problems.. so please make sure all your portlet and hooks java script should be fine other portlet js also make porblem to CKEditor in portlets.
Please avoid Jquery in liferay. and if want test some thing like you keep only web content display portlet in page and test whether its working or not.
Check for some configuration in creditor tag and use latest browsers..
Please refer the following porlet for your reference
https://github.com/liferay/liferay-plugins/tree/master/portlets/wysiwyg-portlet
Regards,
Meera Prince
You said you developed some portlets and script. this is mostly happens because of java script problems.. so please make sure all your portlet and hooks java script should be fine other portlet js also make porblem to CKEditor in portlets.
Please avoid Jquery in liferay. and if want test some thing like you keep only web content display portlet in page and test whether its working or not.
Check for some configuration in creditor tag and use latest browsers..
Please refer the following porlet for your reference
https://github.com/liferay/liferay-plugins/tree/master/portlets/wysiwyg-portlet
Regards,
Meera Prince
Thanks, Meera. We run Liferay 6.2 on another site, using Jquery/javascript without any issues. Thanks for the feedback, I will check out the link.
I built and deployed the wysiwyg portlet. Works in test, but not on our production system.
Hi
The problem in only java script..some other java script may be interrupt editor script so please find where you have written more js in you portal and fins it..
some times in Linux machine due to permission all source files might not load.. please check your all portlets and its permission in OS level.
ans also check the console is there any error message or info with respect to this issue..
Regards,
Meera Prince
The problem in only java script..some other java script may be interrupt editor script so please find where you have written more js in you portal and fins it..
some times in Linux machine due to permission all source files might not load.. please check your all portlets and its permission in OS level.
ans also check the console is there any error message or info with respect to this issue..
Regards,
Meera Prince
Meera - thanks for your input. Interestingly, when we backed up the site and database and restored everything onto a test server, the CKEditor worked ok - was visible/usable etc. I think we're going to try backup/restore on the production server and see if that "cleans" things up. To your point about OS permissions, I agree that is a possibility. I'll let the group know how we resolve this.
Hi Mike Renzi,
Go ahead and please have look into my website about liferay http://www.liferaysavvy.com/.
Regards,
meera prince
Go ahead and please have look into my website about liferay http://www.liferaysavvy.com/.
Regards,
meera prince
After going over all configuration issues with a fine-tooth comb I came upon a solution that definitely solved this problem, and want to share this with others who may encounter the same issue...
To state the problem: the CKEditor would not show up in Liferay - for web content display portlets or anything that uses CKEditor.
Our deployment environment is as follows:
- IIS 7 on Windows 2012
- BonCode AJP 1.3 Tomcat Connector
- Tomcat 7.42, running as a Windows Service
- Liferay 6.2, custom portlets, javascript, and jquery in use
- Additional apps in Tomcat (WAR files)
Solution:
- We would not have an issue when running Tomcat in a command window.
When running Tomcat as a service, you need to specify this environment parameter:
-Dfile.encoding=UTF-8
This parameter was specified in our setenv.bat scripts - but those are only executed when running as a non-service, i.e., command window.
The above parameter should be added to the TomcatW.exe Java Settings tab.
After doing the above, the CKEditor functions normally in all browsers.
-Mike
To state the problem: the CKEditor would not show up in Liferay - for web content display portlets or anything that uses CKEditor.
Our deployment environment is as follows:
- IIS 7 on Windows 2012
- BonCode AJP 1.3 Tomcat Connector
- Tomcat 7.42, running as a Windows Service
- Liferay 6.2, custom portlets, javascript, and jquery in use
- Additional apps in Tomcat (WAR files)
Solution:
- We would not have an issue when running Tomcat in a command window.
When running Tomcat as a service, you need to specify this environment parameter:
-Dfile.encoding=UTF-8
This parameter was specified in our setenv.bat scripts - but those are only executed when running as a non-service, i.e., command window.
The above parameter should be added to the TomcatW.exe Java Settings tab.
After doing the above, the CKEditor functions normally in all browsers.
-Mike
Hi ,
Good Finding..its useful ....
Regards,
Meera Prince
Good Finding..its useful ....
Regards,
Meera Prince
I am Facing same issues in production.Tomcat 9.0.10 , running as a Windows Service.
The below parameter added to the TomcatW.exe
-Dfile.encoding=UTF8
-Djava.net.preferIPv4Stack=true
-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
Still i am unable to edit web content. Anything wrong?
The below parameter added to the TomcatW.exe
-Dfile.encoding=UTF8
-Djava.net.preferIPv4Stack=true
-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
Still i am unable to edit web content. Anything wrong?
Mahammad Ashik A:
As you're answering to a 5 year old post, I'm guessing that the cause of your problem is different from whatever happened back then.
Still i am unable to edit web content. Anything wrong?
I'd recommend to open a new thread and give as much info as you can to reproduce. Which version are you running, what is your configuration, what do you observe, what happens. "it doesn't work" won't be quite enough...
Noted and Thank you.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™