on ‎2018 Apr 23 4:21 AM
With a fresh install b2c_acc everything works well.
If you create a set of extensions (ant modulegen, name=training), and replace the extensions in localextensions.xml starting with yaccelerator* with the generated set (training*), SmartEdit is not working in this setup. Specifically, only one thing is not working - basic/advanced edit. You can see the list of pages, after clicking on any page in the list, you can see this "Loading.." with the website in the background. No elements are active, rebooting or cleaning browser cache doesn't help.
Looks like this guy was experiencing the same. **https://answers.sap.com/questions/12767437/smartedit-endless-loading.html**
The recommendation there to reinstall SmartEdit is not a solution. I need to understand how to troubleshoot and fix the real root cause.
No exceptions in the logs, no errors in the browser console. Just "Loading..." in the middle of the page that never stops rotating.
How to debug such issues? Javascript code is obfuscated, no messages in the logs or console. No broken requests in the network tab of the browser console.
Version 6.7
Request clarification before answering.
Hey Rauf,
Few questions:
Is your storefront based of yacceleratorstorefront ?
Did you install smarteditaddon for your storefront ?
Can you try re-installing smartedit addon for your storefront using the command:
ant addoninstall -Daddonnames="smarteditaddon" -DaddonStorefront.="yourStorefrontName"
You can follow the steps in https://help.hybris.com/6.7.0/hcd/0955af7dd5154a8db28dfce327d8dae5.html for installing smartedit.
For any storefront, the contract is defined in https://help.hybris.com/6.7.0/hcd/622cebcb444b42e18de2147775430b9d.html#loio622cebcb444b42e18de21477...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. "ant modulegen" and default answers.
Reinstalled using <>. After that, I compared the directory custom/ with its backup, and there are only two files changed: .classpath and extensioninfo.xml. DIFF says no changes in files at all. Which leads me to believe that reinstalling is not a solution...
Hi Rauf,
By reinstalling I mean did you install smarteditaddon with your storefront extension in the first place? because, by default when you run the recipes, then smarteditaddon is installed using yacceleratorstorefront extension so it works with base accelerator storefronts. When you create your custom storefront, then you need to install the addon for your storefront extension. If you do that, then the webapplicationinjector is added to your storefront which is responsible for adding smartedit related attributes to the necessary tags.
Also we can do a quick check to see if the contract is fulfilled. 1. Do you see a webapplicationinjector.js added to the storefront when you inspect in your browser. 2. Do you see any smartedit related attributes added to body tag in the iframe such as "smartedit-page-uid-", "smartedit-page-uuid-".
If neither 1 or 2 is satisfied, it means the contract for smartedit is not fulfilled, which in turn means smarteditaddon was not installed for your custom storefront extension.
Hi ,
I am also facing same issue.
as you said earlier I validated the 2 point which is the storefront contract. And It was there and fufilling as well.
I am using V- Hybris 6.6, and I tried installing smart edit from the scratch but still It is not resolving.
anyother activity can you suggest ?
In my case, this issue happened only in our CI and QA environments. We were not running "ant addoninstall" in these environments which resulted in the page load issue.
ant addoninstall generates following properties in smarteditaddon.
xxstorefront.additionalWebSpringConfigs.smarteditaddon=classpath\:/smarteditaddon/web/spring/smarteditaddon-web-spring.xml
xxstorefront.wro4jconfigscan.smarteditaddon=true
We added the properties above to "project.properties" of storefront extension which helped solve the issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try adding the addon assistedservicestorefront to local extensions and then installing it to your storefront.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does any one get any solution for it ? Still I am not able resolve the issue. I Installed the smarteditaddon and also put update system and also tried with initialize but still this not resolve the issue. I am getting an angular error in the browser as below :
prelibraries.js:129 Error: [$controller:ctrlreg] http://errors.angularjs.org/1.6.6/$controller/ctrlreg?p0=Ctrl
at prelibraries.js:12
at prelibraries.js:99
at da (prelibraries.js:82)
at q (prelibraries.js:73)
at f (prelibraries.js:67)
at q (prelibraries.js:76)
at f (prelibraries.js:67)
at q (prelibraries.js:76)
at f (prelibraries.js:67)
at f (prelibraries.js:67)
Can anyone have any idea ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rauf. Unfortunately I have no answer, but I have a problem that is similar to yours.
I have setup my instance using this guide: https://help.hybris.com/6.7.0/hcd/8acc8a5a86691014a20781b3f738213e.html
I cannot open my storefront unless I have smartedit request loading as well. So initially all requests to the storefront will return Server Error. Then I open smartedit ("I attempt to open it" is more accurate), and while that request is loading (it takes many minutes) I can access my storefront.
In the console, this is the Error that is logged:
WARN [hybrisHTTP31] [DefaultCMSComponentRendererRegistry] Error processing component tag. currentComponent [AssistedServiceComponentModel (8796103803964@1)] exception: File [/WEB-INF/views/responsive/cms/assistedservicecomponent.jsp] not found
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
nobodt knows? 😞
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
still waiting... Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.