WordPress.org

Ready to get started?Download WordPress

Forums

Simple Ajax Chat
[resolved] 404 when sending message (3 posts)

  1. igkouts
    Member
    Posted 11 months ago #

    Hi all,

    I'm trying to integrate the plugin into my site using a widget but everytime I hit the "Say it" button I can see my message being added into the messages list followed by a

    POST http://localhost/wordpress/wp-content/plugins/simple-ajax-chat/simple-ajax-chat.php?sacSendChat=yes 404 (Not Found) sac.php:259
    sendComment

    error in Chrome's console.
    I've already tested it using the shortcode and the template tag with no luck. The only clue I have thus far is that the error has to do with the permalinks mechanism. When I've the default option selected (?p=123) everything works fine, but when I select the "Day and name" option (/2013/07/29/sample-post/), I receive the error message mentioned above.
    As far as the overall functionality is concerned, there is no impact; all messages get saved and retrieved correctly, but I cannot figure out how to fix the 404 error.
    Any ideas?

    Thanks in advance

    http://wordpress.org/plugins/simple-ajax-chat/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 8 months ago #

    Hi igkouts,

    Thanks for the feedback. I would like to investigate this. Which method are you using to do the shortcode in a widget?

    Thanks.

  3. Jeff Starr
    Member
    Plugin Author

    Posted 5 months ago #

    Just to follow up with this, I'm currently updating the plugin and tested "shortcode in widget" functionality using the default WP Text Widget and the following line added to the theme's functions.php file:

    add_filter('widget_text', 'do_shortcode');

    With this setup, using the chat shortcode [sac_happens] in the text widget seems to work great, no console/404 errors detected.

    I'll go ahead and mark this topic as resolved, but feel free to follow-up with any further details. Thanks again for the feedback.

Reply

You must log in to post.

About this Plugin

About this Topic