whatsapp not open when click in joomla

Hello,

somehow whatsapp i installed is not working properly, When you click on the icon to interact, the tab does not open.

can you help?
Resolved
The discussion has been resolved.

Accepted Answer

  • Replied by admin on Thursday, October 15 2020, 11:17 PM
    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)

    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
18 responses Add Yours
     
  • Replied by admin on Friday, October 09 2020, 06:52 AM · Hide· #1
    Hi, can you make the templateplazza account a super admin? I want to add a template override for the WhatsApp module to make some tests but the provided account doesn't have permission for that.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by edylai on Friday, October 09 2020, 07:57 AM · Hide· #2
    done I have changed it
  •  
  • Replied by admin on Friday, October 09 2020, 08:29 AM · Hide· #3
    Hi, I found that you don't have protostar template installed. Is it possible for you to re-install this default template for debuging purpose? I'd like to find out, whether this issue is related to script confliction with template javascript or something else, because I'm unable to replicate the issue at my local computer.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by edylai on Monday, October 12 2020, 06:15 AM · Hide· #4
    sorry I was late to reply,
    but i found protostar template file in cpanel

    Attachments:

  •  
  • Replied by edylai on Monday, October 12 2020, 06:40 AM · Hide· #5
    I have tried to reinstall the template but there is no change
  •  
  • Replied by admin on Monday, October 12 2020, 06:41 AM · Hide· #6
    sorry I was late to reply,
    but i found protostar template file in cpanel
    Hi, It looks like you have ever uninstalled it in the past. You can try to discover it again by accessing : Extensions -> Extension Manager -> Discover
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by edylai on Monday, October 12 2020, 06:50 AM · Hide· #7
    I installed it again from discover but the problem is still the same :(
  •  
  • Replied by admin on Monday, October 12 2020, 07:55 AM · Hide· #8
    Ok I think it's indeed related to template, (possibly javascript conflicts). I changed the template for this item menu to protostar : https://mesindigitalprinting.biz/mesin-cutting-sticker and the module is working great there.
    I'll have a look on your template script
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by edylai on Monday, October 12 2020, 08:29 AM · Hide· #9
    I will wait for the good news :o
  •  
  • Replied by admin on Monday, October 12 2020, 10:24 PM · Hide· #10
    Hi, what module is pweb contact? It looks like there's a javascript confliction with that module.

    <script src="/media/mod_pwebcontact/js/jquery.validate.min.js"></script>
    	<script src="/media/mod_pwebcontact/js/jquery.pwebcontact.min.js"></script>

    Those scripts above is not loaded in the page https://mesindigitalprinting.biz/mesin-cutting-sticker and the whatsapp module works.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by edylai on Tuesday, October 13 2020, 06:27 AM · Hide· #11
    that's the module of shack forms
  •  
  • Replied by admin on Wednesday, October 14 2020, 12:53 AM · Hide· #12
    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&& ...
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by edylai on Wednesday, October 14 2020, 08:42 AM · Hide· #13
    hmm... I have no idea where it came from
  •  
  • Replied by admin on Wednesday, October 14 2020, 09:53 AM · Hide· #14
    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?
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by edylai on Wednesday, October 14 2020, 02:21 PM · Hide· #15
    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
  •  
  • Replied by admin on Wednesday, October 14 2020, 03:49 PM · Hide· #16
    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
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by edylai on Friday, October 16 2020, 10:42 AM · Hide· #17
    ah finally done lol :)

    I'm really frustrated with that, thank you very much
  •  
  •  
    Replied by admin on Friday, October 16 2020, 10:47 AM · Hide· #18
    Haha np glad could help ;)
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments