Foren

Home » Mobile

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Mariona Blanch
Mobile Device Rules Theme Modification
21. Mai 2014 03:21
Antwort

Mariona Blanch

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 31. Januar 2014

Neue Beiträge

Hello,

I am using Liferay 6.2 and I created a theme for mobile devices and set the proper mobile device rules to modify the theme on my site, but when i connect through a mobile device, it does apply the theme but I can't see the web content. I get "Web Content Display is temporarily unavailable" and the following error on the log:

11:25:34,496 ERROR [RuntimePageImpl-615][render_portlet_jsp:132] null
java.lang.NullPointerException
at com.liferay.portal.model.impl.ColorSchemeImpl.hashCode(ColorSchemeImpl.java:156)
at java.lang.Object.toString(Object.java:237)
at java.lang.String.valueOf(String.java:2854)
at com.liferay.util.portlet.PortletRequestUtil._isValidAttributeValue(PortletRequestUtil.java:335)
at com.liferay.util.portlet.PortletRequestUtil.toXML(PortletRequestUtil.java:214)
at com.liferay.portlet.journalcontent.action.ViewAction.render(ViewAction.java:80)
at com.liferay.portal.struts.PortletAction.execute(PortletAction.java:119)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at com.liferay.portal.struts.PortletRequestProcessor.processActionPerform(PortletRequestProcessor.java:454)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:234)
at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:296)
at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:157)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:213)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:55)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:618)

After this, if I modify the theme to classic (default or light) it works fine from mobile device, but not with any other theme.

Can anyone help me with this issue? I couldn't find any references of this issue anywhere.

Thanks so much!
siddhant jain
RE: Mobile Device Rules Theme Modification
20. November 2014 00:49
Antwort

siddhant jain

Rang: Junior Member

Nachrichten: 60

Eintrittsdatum: 19. März 2013

Neue Beiträge

hello Mariona,

I know its too late to reply.
I was also having the same issue in using theme modification. I have figured out one solution for this.
I have edited the "liferay-look-and-feel.xml" file in the web-inf folder of my theme and edited the code to below:

 1<?xml version="1.0"?>
 2<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.2.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_2_0.dtd">
 3
 4<look-and-feel>
 5    <compatibility>
 6        <version>6.2.10+</version>
 7    </compatibility>
 8    <theme id="your-theme-id" name="theme-name" >
 9    <color-scheme id="02" name="Night">
10        <css-class>night</css-class>
11    </color-scheme>
12    </theme>
13</look-and-feel>




thanks
Siddhant
Alberto Arenas Toledo
RE: Mobile Device Rules Theme Modification
5. Mai 2015 04:11
Antwort

Alberto Arenas Toledo

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 10. November 2010

Neue Beiträge

You saved my day!
Thank you!