AEM 6 integration with Adobe Target problems | Community
Skip to main content
October 16, 2015
Solved

AEM 6 integration with Adobe Target problems

  • October 16, 2015
  • 7 replies
  • 1735 views

Hello!

I am integratign AEM 6 with Adobe Target and have some problems with it.

Particularly, when I add "Adobe Target Mbox" component on the page - T&T request is sends but in console there is an error :

Uncaught TypeError: undefined is not a function.

I found that it throws when mboxOfferDefault.prototype.show(content) function is called from /etc/clientlibs/foundation/testandtarget/util/source/init.js.

The problem is that this function calls this.hide(content) which doesn't exists in mboxOfferDefault.prototype and that's why I suppose this error is thrown.

Can anyone tell what is the purpose of overriding default mboxOfferDefault.prototype.show(content) defined in mbox.js and

what will be the risks if i'll remove this function from /etc/clientlibs/foundation/testandtarget/util/source/init.js?

I will be appreciated if some one will help me with this problem.

Thanks!

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

I have asked the Eng members whom implemented this functionality to respond. I am not sure if this is a bug. If there is no response by tomorrow - please open a ticket. 

http://helpx.adobe.com/marketing-cloud/experience-manager.html

7 replies

Level 8
October 16, 2015

I found this issue too.  The work around i found was simply to have the Client Context panel open when you first configure the target parsys.  So the steps would be:

1) Drag and drop the target parsys on the page
2) Turn on client context and refresh the page
3) Configure the target parsys

smacdonald2008
Level 10
October 16, 2015

See the following AEM doc topic:

http://docs.adobe.com/docs/en/aem/6-0/administer/integration/marketing-cloud/target.html

Have you followed all the instructions specified here? 

weltensAuthor
October 16, 2015

Hi,

Thank you for reply. I'm already followed steps from doc to integrate Adobe Target, but  the problem is not gone.

If I replace file /etc/clientlibs/foundation/testandtarget/util/source/init.js from CQ5.6 the problem will be gone but in AEM 6 it is still appears.

Fo my vision there is a lack of mboxOfferDefault.prototype.hide() function in init.js as there is a call to it (316 line of  code in /etc/clientlibs/foundation/testandtarget/util/source/init.js in AEM 6).

Thanks!

smacdonald2008
Level 10
October 16, 2015

My colleague has told me that they are able to get AEM 6 and target working - they do have SP1 pack installed. There were many fixes made in this service pack. Do you have SP 1 installed? See: http://docs.adobe.com/docs/en/aem/6-0/release-notes-sp1.html 

weltensAuthor
October 16, 2015

I installed SP1 as you recommend but the problem still exists. It is reproducing when mboxOfferDefault sets as offer and wcmMode = 'DISABLED', on other offer types it works fine.

Can you or colleague please check on working pair AEM 6 and T&T how mboxOfferDefault works - in developers console please execute mboxFactories.get('default').get(<mbox_name>,0).setOffer(new mboxOfferDefault()).loaded();  (this is come from T&T in my case) to be sure it is the problem of my environment or it is the common problem?

Many Thanks!

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

I have asked the Eng members whom implemented this functionality to respond. I am not sure if this is a bug. If there is no response by tomorrow - please open a ticket. 

http://helpx.adobe.com/marketing-cloud/experience-manager.html

himshu1
New Member
October 16, 2015

Hi

Has this issue been resolved ? I'm facing the same issue, so not sure if need to remove the method as mentioned in the earlier post.