Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2013-12-16 18:56:06

Wim Roukema
Member
Registered: 2013-12-16
Posts: 6

Error MultipleDefine in a web page build with dojo

For webpages with jquery the live chat is working.
For a secure webpage where dojo is used, dojo gives the error "MultipleDefine".Any idea why this error occurs?

https://groups.google.com/forum/#!topic … RurjBsUHOY

Offline

#2 2013-12-16 18:59:57

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Error MultipleDefine in a web page build with dojo

Hi no idea smile
Live helper should not influence site js at all, like it does not depend on any third party JS library at all.


2013/12/16 Wim Roukema <wim.r...***.com>

For webpages with jquery the live chat is working.
For a secure webpage where dojo is used, dojo gives the error "MultipleDefine".Any idea why this error occurs?


Offline

#3 2013-12-16 19:33:09

Wim Roukema
Member
Registered: 2013-12-16
Posts: 6

Re: Error MultipleDefine in a web page build with dojo

I myself can't also find a link with a javascript framework either. However it's a pity. When I put the following javascript right above the body-tag Firebug displays:


Error: multipleDefine...on(a){return"[object Array]"==o.call(a)},d=function(a,b){if(a)for(var c=0;c<a.le...dojo.js (line 15)ReferenceError: Cookies is not defined...5q1g8lo'};lh_inst.storePersistenCookie();};lh_inst.initSessionStorage();lh_inst....3?r=ht...=69&L=1 (line 14)TypeError: dojo.parser is undefineddojo.parser.parse();<script type="text/javascript">
var LHCChatOptions = {};
LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
var refferer = (document.referrer) ? encodeURIComponent(document.referrer) : '';
var location  = (document.location) ? encodeURIComponent(document.location) : '';
po.src = '//camping.ec/ec_livesupport/livehelperchat/index.php/nld/chat/getstatus/(click)/internal/(position)/bottom_right/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true/(department)/3?r='+refferer+'&l='+location;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
Without the script above, there is no problem at all.


Offline

#4 2013-12-17 14:00:55

Wim Roukema
Member
Registered: 2013-12-16
Posts: 6

Re: Error MultipleDefine in a web page build with dojo

I did a little change. The livechat js is activated now in the dojo/ready function. Now, dojo reports no error. But still there is the error:

ReferenceError: Cookies is not defined...62priws8'};lh_inst.storePersistenCookie();};lh_inst.initSessionStorage();lh_inst...3?r=ht...=69&L=1 (line 1Obviously, there is a link with dojo for "Cookies". Is it possible for you to examine this?

Op maandag 16 december 2013 18:56:06 UTC+1 schreef Wim Roukema:For webpages with jquery the live chat is working.
For a secure webpage where dojo is used, dojo gives the error "MultipleDefine".Any idea why this error occurs?

Offline

#5 2013-12-17 14:04:23

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Error MultipleDefine in a web page build with dojo

As i understand it mixes/conflcts with cookies variable. I try to look at home. Perhaps i find some solution.

2013/12/17 Wim Roukema <wim.r...***.com>

Offline

#6 2013-12-17 22:27:18

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Error MultipleDefine in a web page build with dojo

Hi,

I have found what's cousing this issue will fix tomorrow together with chrome extension smile

2013/12/17 Remigijus Kiminas <rem...***.com>

Offline

#7 2013-12-18 19:43:58

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Error MultipleDefine in a web page build with dojo

Hi,
Try this update it should fix your issue.
https://github.com/remdex/livehelperchat/commit/f999afd75531e09a6593f634432ca6bc358b557c



2013/12/17 Remigijus Kiminas <rem...***.com>

Offline

#8 2013-12-21 13:50:02

Wim Roukema
Member
Registered: 2013-12-16
Posts: 6

Re: Error MultipleDefine in a web page build with dojo

Thank you for the given fixes. It's working now.
Op maandag 16 december 2013 18:56:06 UTC+1 schreef Wim Roukema:For webpages with jquery the live chat is working.
For a secure webpage where dojo is used, dojo gives the error "MultipleDefine".Any idea why this error occurs?

Offline

#9 2014-03-17 19:32:05

Wim Roukema
Member
Registered: 2013-12-16
Posts: 6

Re: Error MultipleDefine in a web page build with dojo

I'm sorry, LHC is still not working on the page with DOJO.

Error:
ReferenceError: lhc_Cookies is not defined
...oUTCString():"";return b+=c.secure?";secure":""};a._getCookieObjectFromString=fu...
URL:
http://wjroukema.myownb3.com/livehelperchat-master/lhc_web/index.php/ger/chat/getstatus/(position)/bottom_right/(hide_offline)/true/(top)/350/(units)/pixels?r=http%3A%2F%2Fpp.extracamp.de%2Fde%2Fcamping%2Fitalien%2Fcamping-gardasee%2Fcampingplatz-park-altomincio%2Funterkuenfte%2Fmobilhome-leonardo-3-sz%2F&l=http%3A%2F%2Fpp.extracamp.com%2F%3Fid%3D69%26L%3D0

And dojo:
Error: multipleDefine
...on(a){return"[object Array]"==o.call(a)},d=function(a,b){if(a)for(var c=0;c<a.le...
Is it possible for you to solve this?


Op zaterdag 21 december 2013 13:50:02 UTC+1 schreef Wim Roukema:

Offline

#10 2014-03-17 20:10:03

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Error MultipleDefine in a web page build with dojo

Sorry, but this time i have no idea. it's your environment issues not lhc itself this time.

2014-03-17 20:32 GMT+02:00 Wim Roukema <wim.r...***.com>:

Offline

#11 2014-03-17 21:10:54

Wim Roukema
Member
Registered: 2013-12-16
Posts: 6

Re: Error MultipleDefine in a web page build with dojo

Without LHC there is no problem. So, obvious there is a connection. 

But if you think otherwise, so be it. Thanks anyway for your answer.

Offline

#12 2014-03-17 21:52:50

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Error MultipleDefine in a web page build with dojo

The only thing i can suggest you just debug lhchat/getstatus.tpl.php template. Like i just can't reproduce your problem.

Offline

Board footer