RE: Can't Edit Web Content Display

Mike Renzi, modified 11 Years ago. New Member Posts: 8 Join Date: 12/2/11 Recent Posts
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
thumbnail
meera prince, modified 11 Years ago. Liferay Legend Posts: 1111 Join Date: 2/8/11 Recent Posts
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
Mike Renzi, modified 11 Years ago. New Member Posts: 8 Join Date: 12/2/11 Recent Posts
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.
Mike Renzi, modified 11 Years ago. New Member Posts: 8 Join Date: 12/2/11 Recent Posts
I built and deployed the wysiwyg portlet. Works in test, but not on our production system.
thumbnail
meera prince, modified 11 Years ago. Liferay Legend Posts: 1111 Join Date: 2/8/11 Recent Posts
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
Mike Renzi, modified 11 Years ago. New Member Posts: 8 Join Date: 12/2/11 Recent Posts
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.
thumbnail
meera prince, modified 11 Years ago. Liferay Legend Posts: 1111 Join Date: 2/8/11 Recent Posts
Hi Mike Renzi,

Go ahead and please have look into my website about liferay http://www.liferaysavvy.com/.


Regards,
meera prince
Mike Renzi, modified 11 Years ago. New Member Posts: 8 Join Date: 12/2/11 Recent Posts
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
thumbnail
meera prince, modified 11 Years ago. Liferay Legend Posts: 1111 Join Date: 2/8/11 Recent Posts
Hi ,

Good Finding..its useful ....


Regards,
Meera Prince
thumbnail
Mahammad Ashik A, modified 5 Years ago. Junior Member Posts: 81 Join Date: 7/17/17 Recent Posts
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?
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Mahammad Ashik A:

Still i am unable to edit web content. Anything wrong?
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.
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...
thumbnail
Mahammad Ashik A, modified 5 Years ago. Junior Member Posts: 81 Join Date: 7/17/17 Recent Posts
Noted  and Thank you.