• Hi and thank for your work!

    I use your plugin for hide/show just 3 fields on my inscription form.

    On Firefox & Google Chrome on Windows 7 i have no problem, the form work nice.

    On Chrome with an Android smartphone, this work also.

    But with IOS on Iphone & Ipad on Safari the form don’t work.

    The console say : TypeError: null is not an object (evaluating ‘xhr.response.JSON.mailSent’) and Failed to load resource: The operation couldn’t be completed. Protocol error

    the debugger say the error is on scripts.php in your plugin at the line 288

    You can see many captures here :

    My system :

    – WordPress 4.9.8
    – Contact form 7 5.0.4
    – Contact form 7 conditional Fields 1.4.1

    I hope you have enough informations for help me and other that impacted by this bug. Don’t hesitate to tell me more informations if you need.

    Have a good day!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    The two last screenshots are not showing. I don’t own any apple products. Do you know a good iphone simulator to test this out?

    The mailsend code appears on line 176 and not on line 288 btw. So it looks like the autoptimize script is merging code together. This could be causing the problem. What happens if you disable autoptimize?

    Oh, and do you experience any problems on this page with your iphone? https://conditional-fields-cf7.bdwm.be/simple-form/

    • This reply was modified 6 years, 6 months ago by Jules Colle.
    Thread Starter Bessonweb

    (@besky)

    Hi and thank you for your time,

    For me the 3 screenshot works fine. It’s curious. You can test on lambdatest.com for free (6 x 10 min per month) on an Iphone 6s. I have no apple device too.

    I have try to unactive autoptimize with no success, i get the same message.

    Here is the code that have a problem :

    //reset the form completely
    $( document ).ajaxComplete(function(e,xhr) {
        if( typeof xhr.responseJSON !== 'undefined' &&
            typeof xhr.responseJSON.mailSent !== 'undefined' && /* Here is the error message (line 288) */
            typeof xhr.responseJSON.into !== 'undefined' &&
            xhr.responseJSON.mailSent === true)
        {
            $( xhr.responseJSON.into + ' input, '+xhr.responseJSON.into+' select, ' + xhr.responseJSON.into + ' textarea, ' + xhr.responseJSON.into + ' button' ).change();
        }
    });

    I can’t test your page but i can ask to my client to test if that work in he’s Iphone or Ipad. I back to you soon.

    Have a good day!

    • This reply was modified 6 years, 6 months ago by Bessonweb.
    Thread Starter Bessonweb

    (@besky)

    Hi,

    My client have tested your form without any problem.

    But in his website this don’t work.

    I use two plugins for extend Contact Form 7 :

    – Send PDF for Contact Form 7
    – Flamingo

    Do you think they can caused an incompatibility with your plugin?

    Thread Starter Bessonweb

    (@besky)

    My client was return to me at the instant for tell me the form work nice only when he filled all the fields but when he don’t filled the files fields the form don’t work.

    Have you an idea?

    Plugin Author Jules Colle

    (@jules-colle)

    Only with their specific form? Or also on this page? https://conditional-fields-cf7.bdwm.be/simple-form/

    Thread Starter Bessonweb

    (@besky)

    Your example don’t include files fields, so i suppose that work.

    Plugin Author Jules Colle

    (@jules-colle)

    OK, could you check this page? https://conditional-fields-cf7.bdwm.be/file/

    Thread Starter Bessonweb

    (@besky)

    Sorry but i don’t understand what do you want to know with this link because we have just one file field, so we can’t test anything without filled the field.

    While our problem is the form is don’t sended when we don’t filled the files fields.

    If you want i can create a basic installation of wordpress with just Contact Form 7 and conditionnal fields for test?

    Thanks again for your time and your work.

    Plugin Author Jules Colle

    (@jules-colle)

    yes that would be helpful. thanks!

    Thread Starter Bessonweb

    (@besky)

    Hi,

    I have created a website for test.

    Here is the specifications of my test site :

    Hoster : Infomaniak Network
    Apache : 2.4.34
    PHP : 7.0.31
    Mysql : 5.6
    allow_url_fopen : off
    default_charset : UTF8
    exec, shell_exec, popen, proc_open : off
    WordPress : 4.9.8
    Theme : Divi
    Plugins : Contact Form 7, Contact Form 7 Conditional Fields, Divi Builder, Duplicate Post, Instant Images, Really Simple SSL, WordPress Importer

    I have created the form bellow :

    <label>Activer le champ caché
         [select Activer "Oui" "Non"]</label>
    
    [group condition]
    <label>Le champ caché
         [text champ-cache]</label>
    [/group]
    
    <label> Votre nom
        [text your-name] </label>
    
    <label> Votre adresse de messagerie
        [email your-email] </label>
    
    <label> Fichier
        [file fichier] </label>
    
    <label> Objet
        [text your-subject] </label>
    
    <label> Votre message
        [textarea your-message] </label>
    
    [submit "Envoyer"]

    With the condition :

    Show “condition” if “activer” equals “Oui”

    My client was tested the form and when he fill all the fields, that work fine, but when he don’t fill the file field, the form don’t work.

    You can test on : https://wptest.bessonweb.fr/formulaire-conditionnel/

    Thank again for your great support.

    Plugin Author Jules Colle

    (@jules-colle)

    I just tested on an ipod touch and on iphone6 with the lambdatest site. But it all looks to work fine..

    Have you tested it yourself?

    Thread Starter Bessonweb

    (@besky)

    My client have an Iphone X and he was make a screen recording :

    https://youtu.be/mvzY2jvWxPA

    Thread Starter Bessonweb

    (@besky)

    Idem on Safari and Firefox browsers.

    ??

    I will find new testers and back to you soon.

    Plugin Author Jules Colle

    (@jules-colle)

    Thanks for the video! Very useful! It’s pretty strange. Please do check on other apple devices, just to make sure it’s not some kind of bug in an app the user installed.

    Also, could you create a form without the conditional fields plugin activated? I would expect that a form without conditional fields will pose the same problem.

    Thread Starter Bessonweb

    (@besky)

    Hi @jules-colle !

    I asked my friends to test the form with the conditional field.

    There are the result of the tests :

    – Iphone 6 (Safari) = Bug
    – Iphone 6 (Safari) = Bug
    – Iphone 8 (Safari) = Bug
    – Ipad = Bug

    I have created a form without conditional field and it work fine with or without file in the file field.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘TypeError null is not an object’ is closed to new replies.