Preview mode not working properly on Author instance | Community
Skip to main content
Level 3
April 30, 2021

Preview mode not working properly on Author instance

  • April 30, 2021
  • 2 replies
  • 1809 views

Hi, 
When I try to open any page in Preview mode on my local Author instance, it gives me below error in error.log and I get two title bars as shown in screenshot for any page on my site. I also tried to preview a page from we-retail and it looks left shifted as per the screenshot. Any help would be appreciated. Thanks in advance!

 

Error log:
GET /content/we-retail/us/en/experience/undefined HTTP/1.1] com.adobe.acs.commons.util.ResourceDataUtil Error creating the String representation for: /content/*******/errors/404.html
org.apache.sling.api.resource.ResourceNotFoundException: Resource at '/content/******/errors/404.html' not found: No resource found
at org.apache.sling.servlets.get.impl.DefaultGetServlet.doGet(DefaultGetServlet.java:288) [org.apache.sling.servlets.get:2.1.38]
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:266) [org.apache.sling.api:2.22.0]
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:342) [org.apache.sling.api:2.22.0]
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:374) [org.apache.sling.api:2.22.0]
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552) [org.apache.sling.engine:2.7.2]
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)



 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Bhuwan_B
Community Advisor
Community Advisor
May 1, 2021

Please check in the system console if all the bundles are active. If its not active then expand the bundle and check which dependency is missing.

aembeeAuthor
Level 3
May 3, 2021
Thanks @bhuwan_b ! All the bundles are active.
Asutosh_Jena_
Community Advisor
Community Advisor
May 1, 2021

Hi @aembee 

 

There is definitely a code issue. I see the request URL is /content/we-retail/us/en/experience/undefined which has undefined path at the end of the request.

Normally when we do any type of redirect from code (preferebly from JS) and the path will be not be defined, these type of error comes.

 

Also please check if there are any console errors which is appearing when you are trying to load the page.

 

Was this working earlier and recently you made any changes to any code which caused this issue? I will suggest to check the last few code commits that you have made which could have possibly broke the instance.

 

Thanks!

aembeeAuthor
Level 3
May 3, 2021

Thanks @asutosh_jena_, checked logs and network calls and looks like there is some issue with user authorization.

 

error from log:

com.adobe.granite.security.user.util.AuthorizableUtil Unable to get display name for c****: Unable to retrieve properties for c****.