AEM 6 integration with Adobe Target problems

Avatar

Avatar
Validate 1
Level 1
weltens
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
weltens
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
weltens
Level 1

15-10-2015

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 me why this function in init.js is 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!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 25
Employee
shekhardhiman
Employee

Likes

51 likes

Total Posts

688 posts

Correct reply

330 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
shekhardhiman
Employee

Likes

51 likes

Total Posts

688 posts

Correct reply

330 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
shekhardhiman
Employee

15-10-2015

Hi There,

Here is the answer to this question:

For the future, if someone has this error, please check if you have this lib int the head of the page:

<cq:include script="/libs/cq/cloudserviceconfigs/components/servicelibs/servicelibs.jsp”/>

Thanks!

Answers (6)

Answers (6)

Avatar

Avatar
Employee
zkorczyc
Employee

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Employee
zkorczyc
Employee

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
zkorczyc
Employee

15-10-2015

For the future, if someone has this error, please check if you have this lib int the head of the page:

<cq:include script="/libs/cq/cloudserviceconfigs/components/servicelibs/servicelibs.jsp”/>

Avatar

Avatar
Validate 1
Level 5
Nikhil_Bisne
Level 5

Likes

10 likes

Total Posts

282 posts

Correct reply

131 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
Nikhil_Bisne
Level 5

Likes

10 likes

Total Posts

282 posts

Correct reply

131 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Nikhil_Bisne
Level 5

15-10-2015

Hi Alex and Weltens,

 

I checked on this with the relevant team and would request you to kindly file a ticket with the client care team as this issue would need some more research. Please refer to this doc for more details on how a supported user can log a ticket.

 

Thanks

Nikhil

Avatar

Avatar
Validate 25
Level 3
Alex_Popov1
Level 3

Likes

9 likes

Total Posts

78 posts

Correct reply

5 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Alex_Popov1
Level 3

Likes

9 likes

Total Posts

78 posts

Correct reply

5 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Alex_Popov1
Level 3

15-10-2015

Hello Nikhil,

We have the same issue, do you have any updates?

Thanks.

Avatar

Avatar
Validate 1
Level 5
Nikhil_Bisne
Level 5

Likes

10 likes

Total Posts

282 posts

Correct reply

131 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
Nikhil_Bisne
Level 5

Likes

10 likes

Total Posts

282 posts

Correct reply

131 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Nikhil_Bisne
Level 5

15-10-2015

In this case let me check on this with the relevant team and get back to you.

 

Thanks

Nikhil

Avatar

Avatar
Validate 1
Level 1
weltens
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
weltens
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
weltens
Level 1

15-10-2015

Hi, Nikhil, 

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!

Avatar

Avatar
Validate 1
Level 5
Nikhil_Bisne
Level 5

Likes

10 likes

Total Posts

282 posts

Correct reply

131 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
Nikhil_Bisne
Level 5

Likes

10 likes

Total Posts

282 posts

Correct reply

131 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Nikhil_Bisne
Level 5

15-10-2015

Hi,

 

Please refer to this doc and let us know in case you have other queries.

 

Thanks

Nikhil