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

Smartedit not working OOTB version 6.1.0.2

Marko_salonen
Contributor
0 Kudos
1,194

Hi,

i wonder if anyone else has experience problems with smartedit in latest commerce release. Trying to get it work. Installed with normal b2c_acc receipe and generated my modules. Did a build and init. After this the site is accessible without any problems. I can access smartedit as well and see my sites. But when i try to smartedit a site it just stops working. I see this "We are preparing the page to be edited on SmartEdit" which is not going away. I can see a javascript error TypeError: /smartedit-page-uid-(\S+)/.exec(...) is null .getPageUID() presmartedit.js:34944 The whole stacktrace looks like this :

 enter code here<anonymous>
  cmssmartedit.js:1
 invoke()
  presmartedit.js:4426
 instantiate()
  presmartedit.js:4434
 service/<()
  presmartedit.js:4295
 invoke()
  presmartedit.js:4426
 enforcedReturnValue()
  presmartedit.js:4279
 invoke()
  presmartedit.js:4426
 createInjector/instanceCache.$injector<()
  presmartedit.js:4244
 getService()
  presmartedit.js:4385
 invoke()
  presmartedit.js:4417
 createInjector/<()
  presmartedit.js:4248
 forEach()
  presmartedit.js:336
 createInjector()
  presmartedit.js:4248
 bootstrap/doBootstrap()
  presmartedit.js:1625
 bootstrap()
  presmartedit.js:1646
 <anonymous>
  postsmartedit.js:1
 n.Callbacks/j()
  jquery-2.1.1.min.js:2
 n.Callbacks/k.add()
  jquery-2.1.1.min.js:2
 n.fn.ready()
  jquery-2.1.1.min.js:2
 <anonymous>
  postsmartedit.js:1
  presmartedit.js:34944:15852

But not sure if this is related. Has anyone experience problems with it as well?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello, From what I see in the JS trace, it seems that one of the interceptors of the smarteditaddon is not wired properly into the storefront. It is responsible for exposing the page uid of the page to edit in the body of the sotefront page. Make sure to run the addon command to "install" smarteditaddon onto your specific storefront and clean build your platform. There is a known issue of migrating a 6.0 storefront into a 6.1 commerce suite though. If you are in such a set up, you can maybe investigate why the interceptor is not being merged to the list of beforeview handlers of the storefront. Hope it helps. Frederic, Front end architect of Smartedit.

Marko_salonen
Contributor
0 Kudos

Thank you for your response! 🙂 The thing is that i did totally new installation with b2c_acc receipe, there was nothing else there. I did use modulegen to generate own extensions from templates but checking the configuration files i can see that smarteditaddon is there. Could you guide me what is the name of the interceptor so i could check in intellij what i find.

Former Member
0 Kudos

Hi Fred,

I think I am facing exactly the same problem which you have stated as below:

"There is a known issue of migrating a 6.0 storefront into a 6.1 commerce suite though. If you are in such a set up, you can maybe investigate why the interceptor is not being merged to the list of beforeview handlers of the storefront."

Do you know the specific solution for this?

I think, in every addon which I want to install, this problem is occuring and hence the behaviour/intended functionality of that add on is not working properly due to this.

Thanks

Answers (1)

Answers (1)

Marko_salonen
Contributor
0 Kudos

Something seemed to happen anyway! I was checking the files and i thought all the addons where installed. Then i reinstalled it and it works now. Very strange that there are trouble out of the box 🙂 So what i did was i reinstalled addon smartedit , ant clean all and after that it works