Menu

tawk.to integration not working

2021-01-08
2021-04-08
  • Wilbur van den Hoven

    Hi Guillaume,

    I've installed the tawk integration extension on our iTop but it isn't working.
    The extension is installed and I put this in the config file:

    After deinstalling the extension, renaming the extension to "combodo-tawk-integration" and installing it again the tawk icon is still not showing.

    When checking the dev tools (F12) there is no line for combodo-tawk under network.
    In the console tab there are some errors, see attachment.

    Hope you can help me.

     
  • Guillaume Lajarige

    Hello Wilbur,

    The error in the JS console is "normal", it's due to a bug in the iTop SCSS compiler and has nothing to do with your issue.

    Having nothing in the "Network" troubles me more. Actually, I think I read your configuration too fast yesterday. You said that it was:

    'combodo-tawk-integration' => array (
        'site_id' => '00000000000000000000',
        'enabled_portals' => array (
          0 => 'backoffice,itop-portal',
        ),
        'allowed_profiles' => array (
          0 => 'Administrator,Portal user',
        ),
    )
    

    The "enabled_portals" and "allowed_profiles" parameters are arrays, they should be like:

    'combodo-tawk-integration' => array (
        'site_id' => '00000000000000000000',
        'enabled_portals' => array (
             'backoffice',
             'itop-portal',
        ),
        'allowed_profiles' => array (
              'Administrator',
              'Portal user',
        ),
    )
    

    PS: Note that iTop will reformat it, but the key is that they should not be in the same string, but different array elements

     

    Last edit: Guillaume Lajarige 2021-01-08
  • Wilbur van den Hoven

    Hi Guillaume,

    I have changed my configuration file and iTop reformatted it to this:

    'combodo-tawk-integration' => array (
        'site_id' => '00000000000000000000000',
        'enabled_portals' => array (
          0 => 'backoffice',
          1 => 'itop-portal',
        ),
        'allowed_profiles' => array (
          0 => 'Administrator',
          1 => 'Portal user',
        ),
    ),
    

    Unfortunately still no chat icon available :-(

    Do I have to change anything in the 'datamodel.combodo-tawk-integration.xml'file of the extension? Under extensions/combodo-tawk-integration and / or env-production/combodo-tawk-integration?

     
  • Wilbur van den Hoven

    Hi Guillaume,

    I looked at the dev tools again and did a filter on 'tawk'.
    Now I have som lines there (see attachment).

    The logfile says: {"ok":false,"error":{"code":"MethodNotAllowedError","message":"GET is not allowed"}}

    Is this something we have to look at?

    Greetz Wilbur

     
  • Guillaume Lajarige

    Great! So now the extension is loading! Now we have a log showing the error, I never saw this error, but to be honest I did not try this extension in a long time, maybe their API changed, I'll try it on my instance.

    Guillaume

     
  • Pablo Muñoz Rojas

    Greetings!!.

    After a couple of hours of researching I have found an http access error in the Chrome console. My problem was the same as Guillaume Lajarige and I solved it by editing the ConfigHelper.php file

    sudo vi extensions/combodo-tawk-integration/src/Helper/ConfigHelper.php

    on line 132 I replaced the original line with:
    s1.src = 'https: //embed.tawk.to/ {$ sSiteId} / 1f0jdgv5t';

    and it worked right away

    Apparently the url changed in tawk.to, you can confirm if the last code in the row (1f0jdgv5t) is correct by looking at the widget code in your tawk.to dashboard

    Best regards!

     
    • Guillaume Lajarige

      Hello Pablo,

      Thank yo very much for that feedback, I'll try the extension again and fix it regarding your information 👍

      Take care,
      Guillaume

       
  • Guillaume Lajarige

    Hello everyone!

    Thanks to your feedbacks, we made a new beta version of the extension which fixes the wrong URL. Widget ID can now be set in the extension's settings so you don't have to modify the files.

    I'll post on the dedicated thread as well.

    Take care 😊
    Guillaume

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.