ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

IE Error when using SafeCracker

August 31, 2011 2:20pm

Subscribe [6]
  • #16 / Sep 13, 2011 2:22am

    Henrik Eklund

    34 posts

    Sure thing, we got the same javascript error and here is our setup:

    {exp:safecracker channel="registrering" logged_out_member_id="4" return="registrering/URL_TITLE" URL_TITLE="{segment_2}"}
            
        <label>Företagsnamn</label>
        <input type="text" name="title" id="title" value="{title}" />
            
        <label>Organisationsnummer</label>
        <input type="text" name="organisationsnummer" id="organisationsnummer" value="{organisationsnummer}">
            
        <label>Gatuadress huvudkontor</label>
        {field:gatuadress}
            
        <label>Postnummer</label>
        {field:postnummer}
            
        <label>Postort</label>
        {field:postort}
            
        <label class="matrix">Ange län och kommun(er)
        {field:geografi}
    
        <label>Skriv in ordet som du ser i bilden nedan innan du skickar formuläret</label>   
        <input type="text" name="captcha" value="{captcha_word}" maxlength="20" />
        <span class="captcha">{captcha}</span>
    
            
        <button type="submit" class="submit">Skicka formulär</button>
    
    {/exp:safecracker}

    http://www.windindustry.se/index.php/registrering

    Thanks /Henrik

  • #17 / Sep 13, 2011 2:21pm

    Robin Sowell

    13255 posts

    Sigh- yes, I definitely duplicate when I visit the link.  If I copy the code, I don’t duplicate on a new 2.2.  Very puzzling.

    Is it possible to put JUST the above safecracker code in a test template and link me to it?

    Also- are you running 2.2.2?

    Appreciate the help ferreting it out.

  • #18 / Sep 13, 2011 2:33pm

    Henrik Eklund

    34 posts

    Sure -> http://www.windindustry.se/registrering/reg-test

    We’re running 2.2.2

    /Henrik

  • #19 / Sep 15, 2011 5:02am

    John Henry Donovan

    12339 posts

    Hi guys,

    Just some more ground work before Robin is online later on today.

    Can everybody make sure that in your config.php file you have the following variable set.

    $config['debug'] = "1";

    Was everybodys a fresh install of EE or an upgrade from a previous version?

  • #20 / Sep 15, 2011 5:23am

    tidy

    196 posts

    debug variable set and fresh install of EE 2.2.2

  • #21 / Sep 15, 2011 7:25am

    Henrik Eklund

    34 posts

    $config['debug'] = "1";

    It’s done.

    Was everybodys a fresh install of EE or an upgrade from a previous version?

    Fresh install

    Thx Henrik

  • #22 / Sep 16, 2011 10:51am

    Robin Sowell

    13255 posts

    I am just massively puzzled- I appologize for how long it’s taking.  I’ve been trying to replicate on my 2.2.2 install- to the point of copy/pasting the exact code from http://www.windindustry.se/registrering/reg-test

    IE’s debug is… lacking.  Making it beyond difficult to track down where the actual error is.  Since I DO get the error in IE7 on the above link(s) and not on mine- the easy option is to run a bunch of diffs to spot the difference.  After doing this in a variety of ways… I still haven’t spotted it.

    My straight copy/paste into a static template is here: http://media-cow.net/test/index.php/news/form4

    Links externally to the js- it SHOULD be throwing the error.  It doesn’t for me.  There should be NO diffs, and comparing the html from both, there aren’t any.  Double checked the links to the external js work- and they did.

    So… I’m going to give our JS guru a yell and see if he has better luck.  I’m sure it’s an easy fix- the bear is spotting where exactly the error is in IE debug- which is so vague as to be pointless.

  • #23 / Sep 16, 2011 5:24pm

    Wes Baker

    343 posts

    Henrik,

    Could you also post the template code for the slimmed down form?

    Edit: Ignore this, didn’t see the code on the first page.

    Thanks,
    Wes

  • #24 / Dec 28, 2011 9:35am

    Stian Karlsen

    19 posts

    Hey guys. I’m having the same problem in IE7-9.

    You can see the problem here: http://stiankarlsen.me/hundehjelpen/savnet.

    I’m using a date field and a datepicker, and that seems to be what is causing the error. Because if i add safecracker_head=“no” to my form, the error goes away, but then I loose the datepicker.

    Any thoughts?

    (You can see the form in action by clicking “Trykk her for å registrere hunden din som savnet!”)

    Edit:

    The error I’m getting is regarding modernizr, and reads “‘c.body’ is null or not an object” in ie7-8. In ie9 is just get a bunch of “Object is undefined” errors.

    I will try to use a different build later today when i get home, and see what happens then.

    Edit. Other modernizr builds makes noe difference.

    I don’t know what to do.

  • #25 / Dec 28, 2011 3:03pm

    Dan Decker

    7338 posts

    Hi stiankarlsen,

    If you take modernizr out of the equation, do you still receive the errors in IE? Since you have reported that the errors being reported are a result of modernizr, we need to eliminate that for troubleshooting purposes.

    Thanks!

  • #26 / Dec 28, 2011 8:32pm

    Stian Karlsen

    19 posts

    Hey, I tried that, but didn’t make any difference. So I ended up adding safecracker_head=“no” to the form, and including my own version of jquery.ui and the datepicker, so now everything works fine 😊 (Sorry i forgot to mention it).

  • #27 / Dec 29, 2011 3:57pm

    Dan Decker

    7338 posts

    stiankarlsen,

    Thanks for letting us know your solution! If you need anything from us in the future, just let us know.

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases