Hello. I'm developing my project with LR6.0.6. Of course, it works perfectly in FF and Chrome, but here we have our MS friends with IE giving headaches. Apart from themes modifications to get a right user interface, I've found (at this moment) two errors in IE9 and I'd like to share them with you (they work fine in IE8):
1 - Facebook connection URL. My code:
1 <portlet:renderURL var="facebookRedirectURL">
2 <portlet:param name="struts_action" value="/login/facebook_connect_add_user" />
3 </portlet:renderURL>
4
5 <portlet:actionURL var="facebookConnectURL">
6 <portlet:param name="struts_action" value="/login/facebook_connect" />
7 <portlet:param name="redirect" value="<%= facebookRedirectURL %>" />
8 </portlet:actionURL>
9
10 <liferay-ui:icon-list>
11 <liferay-ui:icon
12 src='<%=themeDisplay.getPathThemeImages() + "/home/icoFacebook.png"%>'
13 message="usa-tu-usuario-facebook"
14 url="<%= facebookConnectURL %>"
15 />
16 </liferay-ui:icon-list>
As I say, it works in FF and IE8, but in IE9 we get our famous "unavailable" due to:
107:34:01,561 WARN [PortletRequestProcessor:160] This URL can only be invoked using POST: /web/guest/home?p_auth=ANW4FQcV&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&_58_struts_action=%2Flogin%2Ffacebook_connect&_58_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fhome%3Fp_p_id%3D58%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_58_struts_action%3D%252Flogin%252Ffacebook_connect_add_user
207:34:01,619 ERROR [jsp:154] com.liferay.portal.security.auth.PrincipalException: /web/guest/home?p_auth=ANW4FQcV&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&_58_struts_action=%2Flogin%2Ffacebook_connect&_58_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fhome%3Fp_p_id%3D58%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_58_struts_action%3D%252Flogin%252Ffacebook_connect_add_user
3 at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:165)
4 at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:186)
5 at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
6 at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
7 at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:652)
8 at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:687)
9 at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:360)
10 at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:784)
11 at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:582)
12 at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:232)
13 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
14 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
15 at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:153)
16 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
17 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
18 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
19 at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
20 at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
21 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
22 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2 - In a submit button:
1 <portlet:actionURL name="addPlan" var="addPlanURL" />
2
3 <aui:form action="<%=addPlan.toString() %>" method="post">
4 <aui:fieldset>
5 <aui:input name="name" size="80" />
6 <aui:input type="textarea" name="description" />
7 <aui:input type="checkbox" name="isShared" />
8 <aui:input type="hidden" name="isPublic" value="<%=true %>"/>
9 <aui:input type="hidden" name="state" value="<%=MyConstants.OPENED %>" />
10
11 <aui:button-row>
12 <aui:button type="submit"/>
13 </aui:button-row>
14 </aui:fieldset>
15 </aui:form>
I click the submit button and:
107:41:21,937 ERROR [JDBCExceptionReporter:101] Batch entry 0 update Counter set currentId='2' where name='com.liferay.portal.model.Layout#54501#true' was aborted. Call getNextException to see the cause.
207:41:21,941 ERROR [JDBCExceptionReporter:101] ERROR: no se pudo serializar el acceso debido a dependencias read/write entre transacciones
3(I translate: Access couldn't be serialized due to read/write dependencies between transactions)
4 Detail: Reason code: Canceled on identification as a pivot, during write.
5 Hint: La transacción podría tener éxito si es reintentada.
6(I translate: Transaction could be successufll if you retry
The good news is tha I've found a workaround in some forums. In my portal_normal.vm I've put this in the <head> section:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
Now it works, but I think it's not the best solution. Is there any other solution full compatible with IE9?
Thanks!
Please sign in to flag this as inappropriate.