Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter matmattermat

    (@matmattermat)

    I found the issue that is not related with cf7

    I remove wp_dequeue_script(‘js-cookie’) from my function and now the form works fine

    Sorry for wasting your time
    Thank you

    Thread Starter matmattermat

    (@matmattermat)

    I moved website from local to remote server and realized that there was a issue with wp_mail.
    I install wp smtp and I connected it with sendinblue smtp.

    Now wp_mail works and this function return true

    $to = '[email protected]';
    $subject = 'email test';
    $message = 'message';
    $headers = array('Content-Type: text/html; charset=UTF-8');
    $result = wp_mail( $to, $subject, $message, $headers );
    var_dump($result);

    When I try to send message by cf7 the error is the same:

    Uncaught TypeError: window.fetch(...) is undefined
        p https://staging.selvadipaliano.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.1:1
        <anonymous> https://staging.selvadipaliano.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.1:1
        p https://staging.selvadipaliano.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.1:1
        <anonymous> https://staging.selvadipaliano.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.1:1
        p https://staging.selvadipaliano.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.1:1
        p https://staging.selvadipaliano.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.1:1
        v https://staging.selvadipaliano.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.1:1
        g https://staging.selvadipaliano.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.1:1

    I hooked wpcf7_before_send_mail in order to log samething but the error log file is still empty

    This is the link of the website, you can find the form under the green button CONTATTA at the bottom of the page.

    Thread Starter matmattermat

    (@matmattermat)

    I updated to the last version, now on submit the console print this error:

    index.js?ver=5.4.1:1 Uncaught TypeError: Cannot read property 'then' of undefined
        at index.js?ver=5.4.1:1
        at index.js?ver=5.4.1:1
        at d.reduceRight.c (index.js?ver=5.4.1:1)
        at index.js?ver=5.4.1:1
        at d.reduceRight.c (index.js?ver=5.4.1:1)
        at p (index.js?ver=5.4.1:1)
        at Object.v [as submit] (index.js?ver=5.4.1:1)
        at HTMLFormElement.<anonymous> (index.js?ver=5.4.1:1)

    then reridect me on blank page (http://localhost:8080/wp/wp-admin/admin-ajax.php#wpcf7-f11-o1) with response 0 printed on it

    The admin-ajax request status-code is 400 Bad Request, the form-data of the request is:

    _wpcf7: 11
    _wpcf7_version: 5.4.1
    _wpcf7_locale: it_IT
    _wpcf7_unit_tag: wpcf7-f11-o1
    _wpcf7_container_post: 0
    _wpcf7_posted_data_hash: 
    sdp-name: mat
    sdp-email: [email protected]
    sdp-textarea: message in a bottle
    sdp-checkbox[]: privacy ok

    I deactivated all plugin except advanced-custom-field and woocommerce but the result is the same

    Thread Starter matmattermat

    (@matmattermat)

    From firefox the error log after submit print this:

    TypeError: responsePromise is undefined
        defaultFetchHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:894
        _callee$ http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:488
        tryCatch http://localhost:8080/wp/wp-includes/js/dist/vendor/wp-polyfill.js?ver=7.4.4:6517
        invoke http://localhost:8080/wp/wp-includes/js/dist/vendor/wp-polyfill.js?ver=7.4.4:6746
        method http://localhost:8080/wp/wp-includes/js/dist/vendor/wp-polyfill.js?ver=7.4.4:6569
        asyncGeneratorStep http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:168
        _next http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:190
        _asyncToGenerator http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:197
        _asyncToGenerator http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:186
        fetchAllMiddleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:567
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        httpV1Middleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:623
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        namespaceAndEndpointMiddleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:276
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        userLocaleMiddleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:647
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        createRootURLMiddleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:319
        namespaceAndEndpointMiddleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:276
        createRootURLMiddleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:297
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        middleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:239
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        mediaUploadMiddleware http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:755
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        <anonymous> http://localhost:8080/wp/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4:1
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        <anonymous> http://localhost:8080/wp/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4:1
        enhancedHandler http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:931
        apiFetch http://localhost:8080/wp/wp-includes/js/dist/api-fetch.js?ver=4dec825c071b87c57f687eb90f7c23c3:934
        f http://localhost:8080/wp/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4:1
        b http://localhost:8080/wp/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4:1
Viewing 4 replies - 1 through 4 (of 4 total)