cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartedit endless loading

Former Member
5,211

Hi,

Im trying to edit my homepage from smartedit but when i go to the navigation node, the screen show a endless loading,

There are no visible errors in console, Any idea? Im using Hybris6.5

Thanks in advance.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member

Hi,

please, check if in local.properties you have this properties:

 website.{site}.http=http://apparel-uk.local:9001/{storefront}/?site={site}
 
 website.{site}.https=https://apparel-uk.local:9002/{storefront}/?site={site}

(Replace {site} and {storefront} with your local site id and storefront id.)

Also, you can check in HMC or Backoffice your site configuration. It must be set in the cockpit section: a preview url, default homepage and default content catalog like this images:

Do you have a Javascript errors in the browser console when you open the site in the smartedit?

Thanks, Tommy.

maciej_dabrowski
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,
Check if you have proper PreviewURL set for your CMSSite. The details are here https://help.sap.com/viewer/86dd1373053a4c2da8f9885cc9fbe55d/1811/en-US/0e897cfaecb6445dba48ef18d8b5...

Previously I had something similar to:

/?site=electronics

and I changed it to include full path:

https://electronics.cloud/?site=electronics


That solved my endless loading issue

0 Likes

Hi, I have the same problem, endless loading, no error, I include js manually in my master tag, but it doesn't work. Any solution? BTW I am using Hybris 6.6

bbardakov
Discoverer
0 Likes

Hi Edvin. Endless loading means that smartedit addon were not installed correctly. Reasons can be different and browser consol where you certainly have warning does not really give clues. I faced with such issue after migration from older hybris version where desktop UI experience level was used. If you have the same problem you just need to customize a little bit smarteditaddon/web/spring/smarteditaddon-web-spring.xml to use correct beforeViewHandler. I have also found cases when sometimes there problems with storefront extensions generated from b2baccelerator - in such case you I assume there are some ways to overcome this problem either. Wish you luck!

0 Likes

Thank you very much, I will try to change beforeViewHandler. Hope it works 🙂

0 Likes

Unfortunately nothing helped. I still have the same problem. Tried everything that I found on exeperts but smartedit doesn;t work :S

bbardakov
Discoverer
0 Likes

Hi Edvin. I checked our changes - we had changed xml by substitution of beforeViewHandlersList to defaultBeforeViewHandlersList (there are two places in xml). I really did not remember why it got incorrect bean when used beforeViewHandlersList but after this change everything worked correctly for Desktop UI Experience level. I hope it will help you!

former_member692910
Discoverer
0 Likes

Hi Edvin ..

Make sure the configuration on SmartEdit has just the following,

storefrontPreviewRoute:"cx-preview"
previewTicketURI:"/previewwebservices/v1/preview"
applications.cmssmartedit:{"smartEditLocation": "/cmssmartedit/cmssmartedit/js/cmssmartedit.js" }
applications.cmssmarteditContainer:{"smartEditContainerLocation": "/cmssmartedit/cmssmartedit/js/cmssmarteditContainer.js" }
defaultToolingLanguage:"en"
whiteListedStorefronts:[]
applications.<yourextensionname>:{"smartEditLocation": "/<yourextensionname>/<yourextensionname>/js/<yourextensionname>.js"}
applications.<yourextensionname>Container:{"smartEditContainerLocation": "/<yourextensionname>/<yourextensionname>/js/<yourextensionname>Container.js"}

Note:

  1. Make sure you remove all other configurations, check before you hit the storefront that all the unwanted config has been removed completely
  2. You might want to clear the cache on the server that is running smartedit.

Hope this helps ! Good luck.

alex_alvarez1
Product and Topic Expert
Product and Topic Expert
0 Likes

Make sure that you have all the necessary host file entries, i.e.:

127.0.0.1 powertools.local electronics.local

Former Member
0 Likes

Hi,

I would say that one possible way is to reinstall the smartedit extension. I was facing that problem sometimes, I don't know the reason, but reinstalling helped me out.