Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
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
Hi no idea
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
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
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
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
Hi,
I have found what's cousing this issue will fix tomorrow together with chrome extension
2013/12/17 Remigijus Kiminas <rem...***.com>
Offline
Hi,
Try this update it should fix your issue.
https://github.com/remdex/livehelperchat/commit/f999afd75531e09a6593f634432ca6bc358b557c
2013/12/17 Remigijus Kiminas <rem...***.com>
Offline
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
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
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
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
The only thing i can suggest you just debug lhchat/getstatus.tpl.php template. Like i just can't reproduce your problem.
Offline