• I am getting the following error appearing in the debug log every time the chat icon slides into view:
    [20-Jan-2020 22:20:16 UTC] wplc_return_chat_id_by_rel_or_id cannot find rel=HkVMzHm-8_1579532812140

    This happens on every page and the “rel=” number can be different for every entry. I have no cache plug-ins and no errors appearing in the JavaScript console. How can I stop this error from filing my log file?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter kelly.s

    (@kellys)

    … I just looked through a backup of my site before doing an upgrade and this error did not exist so it is new from the recent upgrade to 8.1.6

    Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @kellys, sorry for the trouble, we’ll move this log behind a “debug” option.
    If you want to keep error log clean, you can comment out or remove this line

    error_log(‘wplc_return_chat_id_by_rel_or_id cannot find rel=’.$rel);

    in functions.php.

    Be warned that this error indicates there’s something wrong in your website and some features could not work as expected.

    Thread Starter kelly.s

    (@kellys)

    These errors just started happening after I upgraded to 8.1.6 two days ago. I have not made any other changes to the site. Can you elaborate on what could be wrong with my site that would trigger this error after the update? If you say that this error indicates that there is something wrong with my site I would like to fix the problem instead of just blocking the message from appearing in my log.

    Plugin Author wp3cx

    (@wp3cx)

    Hi @kellys ,

    Could you please give more information regarding your setup?

    1. WP Version
    2. PHP Version
    3. Chat server mode (On-Premise or Cloud? Can be found under Settings -> Advanced Featured)
    4. In chat history: a) can you see any recent chats that ended? b) if yes, do they include all user messages?
    5. If you are making tests, please make sure you are using an incognito window to initiate a chat.

    Thread Starter kelly.s

    (@kellys)

    WP Version: 5.3.2
    PHP Version: 7.2.7
    Server Mode: Cloud
    – Yes I see the chats that I currently tested with with all messages (see comments below)
    – Tested with both normal browsing and incognito (same results).

    We are not yet using the live chat in production (hoping to do so in the near future). It is currently installed and users can leave an offline message which gets emailed to a couple of recipients. This works fine with the exception of the logs filling up after the last update as mentioned. For the purpose of doing some testing I went online as an Agent and here are my results:

    1) First off I notice that on the home page only the chat box slides out however I cannot press the Start Chat button. In the console I do not get the [WPLC] Connecting to https://tcx-live-chat.appspot.com message as I do on all the other pages, so it is not connecting on page load. There are no errors in the console though.
    2) The first time I initiate a chat and supply a name and email, this name and email appears in the agents live chat console with the Accept Chat button appearing. The chat appears to go fine, however once the conversation is finished and I look at the chat in history, the name is Guest and it shows no email set. This only happens with the first conversation all others in the test recorded the name and email in history.
    3) In the history list of chats, it showed all my test chats (six in total), however there were pagination indicators at the bottom that suggested there were 8 pages of chat messages. Pressing any of these did not change to another page.
    4) I deleted all history and cleared my debug.log (the pagination indicators went away). I then cleared my browsers cache (as the user on a different machine) started a new session using the same email. Once I accepted this chat as an Agent the old messages were already in it from my previous conversation.
    5) During all tests I received the following 2 error messages in my console when ending the chat as the Agent (I would send screen shots but am not able to with this forum):

    TypeError: undefined is not an object (evaluating 'wplc_aid_group.indexOf')
    
    WebSocket connection to 'wss://tcx-live-chat.appspot.com/socket.io/?link_from_my_site' failed:  WebSocket is closed before the connection is established.

    Any insight into this would be helpful.

    Thanks for your help.

    Plugin Author wp3cx

    (@wp3cx)

    Hi @kellys ,

    Thanks for providing this detailed information. Do you have any caching plugin installed?

    Thread Starter kelly.s

    (@kellys)

    No Caching plugins are installed

    Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @kellys, we just released version 8.1.7 with a fix for the issue you reported. Thanks for your feedback!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘debug.log errors when chat icon appears’ is closed to new replies.