• Resolved Thomymaster

    (@thomymaster)


    Hi

    WordPress: 5.5.3
    Theme: Storefront 2.7.0
    CF7: 5.3

    I have issues (and i don’t know where they come from) when using my contact form (for 3 weeks now). The spinning wheel is there forever and no mail is sent.

    I am using the “WP SMTP 1.2.1”

    Anyway, i wanted to set the constant WPCF7_LOAD_JS to false so i added in my functions.php

    define( ‘WPCF7_LOAD_JS’, false);

    It didn’t work so i set it in wp-config.php but it didn’t work either.

    The only possibility to make it work (and mails are sent) is to modify
    wp-content/plugins/contact-form-7/wp-contact-form-7.php

    /*if ( ! defined( ‘WPCF7_LOAD_JS’ ) ) {
    define( ‘WPCF7_LOAD_JS’, true );
    }*/

    define( ‘WPCF7_LOAD_JS’, false);

    What am i doing wrong here? I thought it can also be enabled/disabled using functions.php (i don’t want to change the source code).

    Best,
    Thomas

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘setting WPCF7_LOAD_JS (false) not working’ is closed to new replies.