WordPress.org

Ready to get started?Download WordPress

Forums

WP Ajaxify Comments
[resolved] Plugin having trouble to post comment successfully (18 posts)

  1. Ari
    Member
    Posted 2 years ago #

    Hello,
    I am trying to add the plugin to a new website.

    When I am trying to post a comment, the plugin stops at "Posting comment, please wait". When I reload, the comment did post.
    Here is the console from Chrome:

    [WP-Ajaxify-Comments] Initializing version 0.6.1 wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Found jQuery version '1.7.2' wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Found jQuery blockUI version '2.42' wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Search comment form (selector: '#commentform')... Found: [
    <form action=​"http:​/​/​www.vistoimages.com/​wp-comments-post.php" method=​"post" id=​"commentform">​…​</form>​
    ] wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Search comments container (selector: '#comments')... Found: [
    <div id=​"comments">​…​</div>​
    ] wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Search respond container (selector: '#respond')... Found: [
    <div id=​"respond">​…​</div>​
    ] wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Initialization completed wp-ajaxify-comments.js:68
    Object
     chrome-extension://ipfnecmlncaiipncipkgijboddcdmego/scripts/track.js:24
    [WP-Ajaxify-Comments] Comment has been posted wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Found comment URL 'null' in X-WPAC-URL header. wp-ajaxify-comments.js:68
    Uncaught TypeError: Cannot read property '1' of null

    You can test the issue here: http://www.vistoimages.com/2012/07/16/hello-world/

    I am also using Ajaxify WordPress Site plugin, but even if I desactivate it, it does not work too so I don't think it is the issue.

    Thank you for your time and help!

    http://wordpress.org/extend/plugins/wp-ajaxify-comments/

  2. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    I think there is a conflict with the your other Ajax-Plugin. I posted a comment and your script http://www.vistoimages.com/wp-comments-post.php returns "success" instead of the HTML code of the site including the new comment. Could you please disable the "Ajaxify WordPress Site" plugin and I will try it again.

    Regards,
    Jan

  3. Ari
    Member
    Posted 2 years ago #

    Already tryed but it did the same.
    Just desactivated it try again.
    I have the same issue :

    [WP-Ajaxify-Comments] Found jQuery version '1.7.2' wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Found jQuery blockUI version '2.42' wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Search comment form (selector: '#commentform')... Found: [
    <form action=​"http:​/​/​www.vistoimages.com/​wp-comments-post.php" method=​"post" id=​"commentform">​…​</form>​
    ] wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Search comments container (selector: '#comments')... Found: [
    <div id=​"comments">​…​</div>​
    ] wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Search respond container (selector: '#respond')... Found: [
    <div id=​"respond">​…​</div>​
    ] wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Initialization completed wp-ajaxify-comments.js:68
    Object
     chrome-extension://ipfnecmlncaiipncipkgijboddcdmego/scripts/track.js:24
    [WP-Ajaxify-Comments] Comment has been posted wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Found comment URL 'null' in X-WPAC-URL header. wp-ajaxify-comments.js:68
    Uncaught TypeError: Cannot read property '1' of null wp-ajaxify-comments.js:3
  4. Ari
    Member
    Posted 2 years ago #

    It is weird because it is working fine on another website (was a testing website, a have moved the website from this URL to the live one you are seeing)

    here is the other one :

    http://bedrockimages.com/newwebsite/2012/07/16/hello-world/

    does it have to do with me moving it to the new server?

  5. Ari
    Member
    Posted 2 years ago #

    And it is working with the other ajax plugin, so it is not the issue :/
    (sorry for the multiple posts)

  6. Ari
    Member
    Posted 2 years ago #

    Had to restrat the other ajax plugin as the website is live.
    On the test website, both plugins work together so it is not the issue.
    Could it be the transfer between 2 domains (and therefore 2 databases?)

    Maybe I should make a clean install, what tables/entries do I need to delete from the database?

  7. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    there is a difference between your two sites when sending requests to the wp-comments-post.php. You can examine the server's responses by using a tool like Firebug.

    To find out what causes the difference I would suggest to disable all plugins and re-activating them step-by-step. If this does not help, you could start with a fresh WordPress setup and install the plugins step-by-step.

    Hope this helps...

  8. Ari
    Member
    Posted 2 years ago #

    Thanks for the reponse.
    I cannot really do that as the website is live.
    The websites are both the same (except for minors CSS things and texts changes) so I don't think it will change anything.
    Does the change for domain could affect the plugin?

  9. Ari
    Member
    Posted 2 years ago #

    I really think it is an issue when I changed the domain name as it works on the test server.
    Could you lead me on what tables should I remove for a clean install?

  10. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Please update to the most recent version 0.6.2 and enable the debug mode. The plugin will output a message that shows the unexpected/unsupported response of the wp-comments-post.php script.

  11. Ari
    Member
    Posted 2 years ago #

    I did the updade. Could you check it? I don't really know what to check

  12. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    You will find the following log message:
    [WP-Ajaxify-Comments] Unsupported server response, unable to extract body (data: 'success')

  13. Ari
    Member
    Posted 2 years ago #

    Yes ok but what does that mean.
    I am pretty sure there was an issue when I have moved the website, as it is working on the testing domain (it is the same hosting service).
    Could you tell how to cleanly remove the plugin (which tables/sql to delete with the files) so i can try to reinstall it?

    Or do you have any other idea?

  14. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    You can uninstall/remove the plugin using the plugin page in the WordPress admin backend.
    I don't think that moving you site to a different domain causes the problems.

    As I've written above I suggest to disable all plugins and re-activating them step-by-step to find out the reason of your problems. If this does not help, you could start with a fresh WordPress setup and install the plugins step-by-step.

    Hope this helps...

  15. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Does this problem still exist?

  16. Ari
    Member
    Posted 2 years ago #

    Hi,
    Did not have much time lately, I will to check that next week and will get back to you.

  17. arimk
    Member
    Posted 2 years ago #

    OK you WERE right there was another plugin that i had totally forgot about that was messing all up ...
    So my bad and thank you for your time !

    I have another question so I will make a new topic

    thanks again !!!

  18. janjonas
    Member
    Plugin Author

    Posted 2 years ago #

    Resolved :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags