We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

2.5 SafeCracker bug still exists

Developer Preview

Brian Litzinger's avatar
Brian Litzinger
711 posts
about 14 years ago
Brian Litzinger's avatar Brian Litzinger

I’m on an EE 2.4 site and still getting this error: https://support.ellislab.com/bugs/detail/17440

I’ve replaced the entire SC module with the 2.5 version as well as the saef.js file, still same error: Uncaught TypeError: Object [object Object] has no method ‘markItUp’

       
Wes Baker's avatar
Wes Baker
343 posts
about 14 years ago
Wes Baker's avatar Wes Baker

I’m having a hard time reproducing this one, what does your template look like? Anything special?

       
Wes Baker's avatar
Wes Baker
343 posts
about 14 years ago
Wes Baker's avatar Wes Baker

Also, are you using the compressed or uncompressed javascript?

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
about 14 years ago
Brian Litzinger's avatar Brian Litzinger

Compressed JS.

{exp:safecracker 
    channel="blog" 
    json="yes"
    id="share_your_story_safecracker"
    rules:blog_body="required"
    safecracker_head="no"}

    <fieldset>
        {if captcha}
            <label for="name">Name (required)</label>
            {field:blog_guest_name}
        {if:else}
            <label for="name">Name: </label>
            {screen_name}
        {/if}
    </fieldset>

    <fieldset>
        {if captcha}
            <label for="email">Email (required)</label>
            {field:blog_guest_email}
        {if:else}
            <label for="email">Email: </label>
            {email}
        {/if}
    </fieldset>

    <fieldset>
        <label for="title">Title (required)</label>
        <input type="text" name="title" value="{title}" />
    </fieldset>
    
    <fieldset>
        <label for="story">Your Story</label>
        {!-- {field:blog_body} --}
        <textarea class="wyvern" id="blog_body" name="blog_body"></textarea>
    </fieldset>
    {if captcha}
        <fieldset>
            <label for="captcha">Please enter the word you see in the image below:</label>
            {captcha}
            <input type="text" name="captcha" value="{captcha_word}" maxlength="20">
        </fieldset>
    {/if}

    <input type="submit" name="submit" value="Submit" />
{/exp:safecracker}
       
Wes Baker's avatar
Wes Baker
343 posts
about 14 years ago
Wes Baker's avatar Wes Baker

I just did a fresh install with the most recent developer preview of 2.5.0 and I couldn’t replicate. Here’s my adjusted template:

{exp:safecracker 
 channel="news" 
 json="yes"
 id="share_your_story_safecracker"
 rules:news_body="required"
}

 <fieldset>
  <label for="title">Title (required)</label>
  <input type="text" name="title" value="{title}" />
 </fieldset>
 
 <fieldset>
  <label for="story">Your Story</label>
  <textarea class="" id="news_body" name="news_body"></textarea>
 </fieldset>

 <fieldset>
  <label for="story">More Details</label>
  <textarea class="" id="news_extended" name="news_extended"></textarea>
 </fieldset>

 <fieldset>
  <label for="captcha">Please enter the word you see in the image below:</label>
  {captcha}
  <input type="text" name="captcha" value="{captcha_word}" maxlength="20">
 </fieldset>

 <input type="submit" name="submit" value="Submit" />
{/exp:safecracker}

A few things to note: - I took out safecracker_head=”no”, but same result either way - I removed anything with a wyvern class - I removed the {if captcha} conditionals

Could you try using my template and see if you’re still getting any issues. If you are, mind emailing me and we can hop on Skype or AIM to talk about it?

Wes

       
Wes Baker's avatar
Wes Baker
343 posts
13 years ago
Wes Baker's avatar Wes Baker

Any ideas Brian? If I don’t hear back from you and it’s still a problem it will be going out in 2.5.0.

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
13 years ago
Brian Litzinger's avatar Brian Litzinger

I kind of forgot about this…

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.