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

Smartedit stops responding with "Loading..." in the middle after opening a page editor when custom storefront modules is used

RaufAliev
Participant
0 Likes
3,177

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hey Rauf,

Few questions:

  1. Is your storefront based of yacceleratorstorefront ?

  2. 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...

RaufAliev
Participant
0 Likes
  1. Yes. "ant modulegen" and default answers.

  2. 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...

Former Member
0 Likes

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.

Former Member
0 Likes

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.

RaufAliev
Participant
0 Likes

Thanks.. Unfortunately, I reinitialized the system, and the issue has gone... Thank you for the detailed explanation, will try next time, I face it from time to time..

Former Member
0 Likes

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 ?

Former Member
0 Likes

Hi Sachi,

i am also facing same issue , did you fix this issue.

if fixed please let me know the steps.

Former Member
0 Likes

Hi Rafu,

i am facing same issue , i tried with reinstall smarteditaddon but not resolved .

Please let me know any other solution.

Former Member
0 Likes

Hi Siddharth Reddy,

i am also facing same issue , please help me out to fix this issue.

Answers (6)

Answers (6)

0 Likes

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

Former Member
0 Likes

Try adding the addon assistedservicestorefront to local extensions and then installing it to your storefront.

Former Member
0 Likes

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 ?

Former Member
0 Likes

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

RaufAliev
Participant
0 Likes

nobodt knows? 😞

RaufAliev
Participant
0 Likes

still waiting... Thanks!