• Resolved Sanjay Gandhi

    (@sanjay-gandhi)


    Hi Jacques,
    Trying to activate the “Chat” in your plugin (Tchat). Doesn’t seem to work-I tested it out with another user.
    What could be the problem? It just says “Pedido de chat enviada. Experar…” and the chat window just sits there without doing anything.

    Regards,
    Sanjay

    https://ww.wp.xz.cn/plugins/rencontre/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Jacques Malgrange

    (@sojahu)

    • Click the button Chat. Small window appears with “Chat request sent. Wait …”
    • Few seconds after, the other person see the same window with your photo and two buttons : “Accept” & “Ignore”. He click Accept.
    • The message appears in your window : “Demande de Tchat acceptée. Vous pouvez commencer.” (I have to translate this).
    • You can chat.
    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    Hi Jacques,
    Yes, tried this, the window just says “Pedido de chat enviada, esperar…” and doesn’t connect. No “Accept” or “Ignore”.
    It just sits there.
    SOmething with hosting company? Or users need photo? Or it is same IP, could that be a problem? I tried with two different IPs didn’t work either.

    By the way, the Spanish Translation is:

    “Pedido de Tchat aceptado. Puedes empezar”

    Also, note that it is “Pedido de Chat Enviado. Esperar…”
    The word is “Enviado” not “Enviada” [male/female-Pedido is Male]

    Thanks
    Sanjay

    Plugin Author Jacques Malgrange

    (@sojahu)

    Open your website with two differents browsers on the same computer. For example, Firefox and Chromium.
    Log a Rencontre user (men) on Firefox.
    Log another user (girl) on Chromium.
    Then try to chat between this two browsers and tell me what takes place on the two windows.

    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    Hi Jacques,
    Yes, I did that…nothing happens..just the same window saying “Pedido de Chat enviada…esperar”. Both sides show that window if I click on the “Chatear” on the profile.

    Sanjay

    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    You want to try it from your end?
    Try entering using the
    Login juan
    Password france
    I am logged in as Cynthia…see if you can chat with me?

    Plugin Author Jacques Malgrange

    (@sojahu)

    I tried on several sites in several languages (Spanish of Chile) and everything works.
    Do you have a folder wp-content/uploads/tchat/ ?
    Is JQuery loaded in your theme ?

    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    Bon Jour Jacques,

    >>Do you have a folder wp-content/uploads/tchat/ ?
    I have a folder wp-content/uploads/tchat/ , yes. It is empty (no files in it).

    >>Is JQuery loaded in your theme ?

    I believe so, but I am not sure. I am using the standard twentythirteen theme, the one which you have used on at least one site for the plugin. The code for the functions.php file has two lines which have the string “jquery”:

    // Adds Masonry to handle vertical alignment of footer widgets.
    	if ( is_active_sidebar( 'sidebar-1' ) )
    		wp_enqueue_script( 'jquery-masonry' );
    
    	// Loads JavaScript file with functionality specific to Twenty Thirteen.
    	wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '2014-03-18', true );

    It is basically this one here:
    https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentythirteen/functions.php

    I also tried to put the google jquery, as mentioned in this article
    http://www.quickonlinetips.com/archives/2013/11/wordpress-jquery-to-google-hosted-jquery/

    I inserted this code at the bottom of the theme’s function.php

    if( !is_admin()){
    wp_deregister_script('jquery');
    wp_register_script('jquery', ("//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"), array(), null, true);
    wp_enqueue_script('jquery');
    }

    The chat still didn’t work.

    I also tried inserting just the
    wp_enqueue_script('jquery');

    and the chat didn’t work.

    Do you want to look at it from your end, right on my site (solos24.com)?
    I have two test users, one male the other female. You can test with them.
    The userids are
    juan
    lisa
    the password for both is
    france

    I have another plugin which displays a music playlist from soundcloud…I disabled it to rule out a conflict, and it didn’t solve the chat problem either.

    I am using WP 3.9.2 with this twentythirteen theme.

    Thanks as always,
    Sanjay

    Plugin Author Jacques Malgrange

    (@sojahu)

    Hi Sanjay,
    I have tried with your elements. That doesn’t work.
    JQuery is OK.
    There are no files in uploads/tchat/ ; It is not normal.
    Try to see CHMOD and .htaccess. Your website is not clean (it is even unsafe).

    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    Hi Jacques,
    Ok, have asked the hosting company to look into CHMOD and .htaccess.

    About the clean code part-yes I know, I have very little experience in php/css type coding, and to get things off the ground fast I have taken a chance…once traffic gets sticky will clean up the code (or ask someone’s help to do it).

    Regards,
    Sanjay

    Plugin Author Jacques Malgrange

    (@sojahu)

    Oh sorry Sanjay, I just said that it is not clean in term of security. I didn’t speak about the code.
    Regards,

    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    Hi Jacques,
    Ok, no problem…will take up the security issue later…

    Ok, here is what I got from the hosting company.

    I set the CHMOD permissions to 755 for all files and all directories in and below root.

    Created .htaccess, that was not there. It is now in the root directory of the wordpress install.

    Checked the chat..still doesn’t work 🙁 seems to be something else.

    Regards,
    Sanjay

    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    One more thing Jacques…I am using a plugin to display soundcloud playlist on the site
    https://ww.wp.xz.cn/plugins/alligator-popup/

    I hope that is not causing conflict with Rencontre in any way. I have checked it…deactivate Alligatorpopup and tried to use the Chat, it didn’t work. But just so you have the most complete information I thought I would let you know that I am using this plugin.

    Rencontre and Alligatorpopup are the only two plugins I am using.

    Thanks
    Sanjay

    Plugin Author Jacques Malgrange

    (@sojahu)

    Hi Sanjay,
    I confirm that the problem come from your installation.
    Look at this : http://solos24.com/wp-content/plugins/rencontre/
    Primo, it’s not safe to see that.
    Secundo, where is inc/ folder.
    If you test your site with Firebug, rencontre_tchat.php appear “not fond”.
    Regards,

    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    Hello Jacques,
    Here is the reply from the hosting company (Tmzhosting, they have lots of wordpress sites):
    ————————-
    It seems that you have modified all of your files to be with 755 permission which is a strong security issue.

    I have now reverted the changes and set the files with default permissions 644 and the folder with 755 permissions.

    <<an be seen…that is not right…it should not be visible.>>

    The directory is visible as there is no index file in that directory or some .htaccess file with specific rules

    <<Furthermore, the directory “inc” there is not seen.>>

    that directory is invisible as there is an .htaccess file there. I have renamed the

    .htaccess
    to
    htaccess
    and now you can see the inc directory:

    /home/soloscom/public_html/wp-content/plugins/rencontre
    ————————-

    The “inc” folder is visible now.

    Again, if it is an install issue as you say…what is the solution..?
    I can buy another domain and site space and have a duplicate install (something which I Was going to do anyway as a backup and also to test things out before loading on production).

    Tmzhosting wordpress
    http://www.tmdhosting.com/wordpress-hosting.html
    and their free templates
    http://www.tmdhosting.com/templates/free-wordpress-themes.html

    Regards,
    Sanjay

    Thread Starter Sanjay Gandhi

    (@sanjay-gandhi)

    Hi Jacques!
    I posted this, and tried now to chat..and it works!!! 🙂
    Seems like the issue was this with .htaccess being renamed to htaccess, etc. I don’t know…but seems to work now.

    The translations (for your update) are

    “Demande de Tchat acceptée. Vous pouvez commencer.”
    “Pedido de Tchat aceptado. Puedes empezar”

    Also, note that it is “Pedido de Chat enviado. Esperar…”
    The word is “enviado” not “enviada” [male/female-Pedido is Male]

    Let’s hope chat keeps working, if I have other issue, will update here.

    Regards,
    Sanjay

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Chat problem-doesn't work’ is closed to new replies.