Foren

Mobile Device Rules Theme Modification

HUVH HUVH, geändert vor 9 Jahren.

Mobile Device Rules Theme Modification

New Member Beitrag: 1 Beitrittsdatum: 31.01.14 Neueste 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, geändert vor 9 Jahren.

RE: Mobile Device Rules Theme Modification

Junior Member Beiträge: 69 Beitrittsdatum: 19.03.13 Neueste 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:

<!--?xml version="1.0"?-->


<look-and-feel>
	<compatibility>
		<version>6.2.10+</version>
	</compatibility>
	<theme id="your-theme-id" name="theme-name">
	<color-scheme id="02" name="Night">
        <css-class>night</css-class>
    </color-scheme>
	</theme>
</look-and-feel>




thanks
Siddhant
Alberto Arenas Toledo, geändert vor 8 Jahren.

RE: Mobile Device Rules Theme Modification

New Member Beiträge: 6 Beitrittsdatum: 10.11.10 Neueste Beiträge
You saved my day!
Thank you!
thumbnail
Gunther Verhemeldonck, geändert vor 8 Jahren.

RE: Mobile Device Rules Theme Modification

New Member Beiträge: 7 Beitrittsdatum: 23.11.12 Neueste Beiträge
We had the same issue on a project we migrated from 6.1EE to 6.2EE. The ColorScheme was added, but we still had to remove/add the Theme Switch rule again to make it work.