Hey guys I am trying to send a message through formcraft plugin but i get this error “jquery.js:4 POST http://www.Myurl.co.uk/wp-admin/admin-ajax.php 504 (Gateway Time-out)” and these details

send        @   jquery.js:4
ajax        @   jquery.js:4
(anonymous) @   booking_modal.js:3
dispatch    @   jquery.js:3
r.handle    @   jquery.js:3

But message is sent even if i get ‘Ajax fail’ error. What should i do? I am looking for a solution but cant figure out one. Also in custom.js:1791 undefined error there is this code. Should i change anything?

    jQuery(document).ready(function($) {
        /*  Show mini cart */
        $('#show-mini-cart-button').click(function(event) {
            /* Act on the event */
            return false;

        $('.i-check').on('ifChanged', function(){
            var t = $(this);
            setTimeout(function(){ // I GET THE ERROR HERE I THINK
                var url = t.data('url');
                console.log( url );
                if (url) {
                    window.location.href = url;
            }, 500);

I am new to this… If you need any other option please let me know or dont get mad if dont do rigth question please.. Any ideas would be helpfull

Read more here: Ajax fail but message is sent


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: