whatsapp not open when click in joomla

  • Posted by TemplatePlazza (5261) Offline
I have spent several hours checking several suspected things and codes but still no luck. Shack form, widgetkit are not causing the problem. It looks like it's related to template, but I have no clue as I'm not familiar with gantry.

One thing, can you tell me what part is producing these lines of code below? I can't find it on modules, plugin and also in template part
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });

and this one
<!-- start Mixpanel --><script type="text/javascript">(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&& ...
4 years 2 months ago #13 by TemplatePlazza

Please Log in or Create an account to join the conversation.

hmm... I have no idea where it came from
4 years 2 months ago #14 by Edy Indranusa

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline

hmm... I have no idea where it came from

Then how did you add the mixpanel script?

Anyway, can you duplicate the mes**ting.biz installation to the dev.mes**nting.biz, then share me the ftp access to dev.mes**ting.biz so I can check some files?
4 years 2 months ago #15 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Then how did you add the mixpanel script?


that's the problem, I feel like I never added anything before and after installing whatsapp

done ftp access create
4 years 2 months ago #16 by Edy Indranusa

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline

that's the problem, I feel like I never added anything before and after installing whatsapp

Quite strange. Then who are using that statistic tool on your website?

done ftp access create

ok thanks
4 years 2 months ago #17 by TemplatePlazza

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi, It's your mixpanel script caused the problem. Even when I unpublished the WhatsApp module, the Error message unexpected token is still exist.

I don't know what part is producing this mixpanel script and I can't find any configuration on your website to enter this script.
I ended by downloading your template folder to search the whole code, and finally I found that code in the some files in ../templates/g5_hydrogen/custom/config/XX/page/head.yaml and body.yaml

I'm not familiar with gantry. I think this yaml file must be generated from the template backend but I can't find on what part to enter it in the gantry configuration. So confusing.

Then I tried to delete that mixpanel code manually from file : /templates/g5_hydrogen/custom/config/20/page/head.yaml (config file for Home Baru style) and voila, it's working good now.

Please have a look at dev.mesindigitalprinting.biz the whatsapp module is now working properly on that page.

So the solution is to remove all mixpanel scripts from gantry yaml files. If you think never add this mixpanel script, then you can remove that lines manually from these files :
/templates/g5_hydrogen/custom/config/16/page/body.yaml
/templates/g5_hydrogen/custom/config/18/page/head.yaml
/templates/g5_hydrogen/custom/config/19/page/body.yaml
/templates/g5_hydrogen/custom/config/20/page/head.yaml

To see what mixpanel part I removed you can compare these files :
http://dev.mesi**nting.biz/templates/g5_hydrogen/custom/config/20/page/head.yaml (removed one)

with
http://mesi**nting.biz/templates/g5_hydrogen/custom/config/20/page/head.yaml. (original file)
4 years 2 months ago #18 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum