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.

Safecracker issues

March 29, 2012 10:49am

Subscribe [3]
  • #1 / Mar 29, 2012 10:49am

    StayInTouch

    16 posts

    I’ve come across some issues using Safecracker that I can’t seem to over come. Its vital that I get this resolved by today if all possible.

    First of all, I just upgraded from EE 1.6.9 to EE 2.4.0 so I’ve had to convert all of my SAEFs to work with Safecracker.

    I’ve gotten the create entry forms to work fine on my site and entries are being created.

    However, I’ve been wrestling with getting the edit entries forms to work correctly. Here are the issues I’m encountering:

    Issue 1: For some reason, periods in the Edit entry form are being converted to underscores and is giving me a disallow key characters.

    I had to slightly modify the code in the Input.php file to get the Disallow key characters to show me what was actually being disallowed. See this screenshot:

    http://screencast.com/t/Wf2ZSxqKGHwo

    So anyone of our customers who have an email address in one of their entries is going to get this error if they try to save.

    Issue 2:

    For entries that don’t have emails, the form submits but nothing gets updated. There are no errors and everything appears to be fine. However when the page is refreshed or the edit button is clicked again, the entry isn’t updated.

    There isn’t enough room here to post the code so I’ll try posting it in another response.

    There is a javascript in the code that takes the values of the first name field and last name field and updates the title of the entry. I’ve tried removing that and just displaying the title in an input field but the form still won’t update the system.

    This form worked flawlessly in my EE 1 site.

    Please help!

    Thank you,

    Chad Boswell

  • #2 / Mar 29, 2012 10:54am

    StayInTouch

    16 posts

    Ok the code is to long. I’m also getting a “Error Message: The file could not be written to disk.” when trying to upload a text file or word doc file.

    how can I get this code to you?

    Thanks,

    Chad Boswell

  • #3 / Mar 29, 2012 3:47pm

    StayInTouch

    16 posts

    I really need someone to get back with me on this issue described above. I see other requests are getting responses. Please let me know something.

    Thanks,

    Chad Boswell

  • #4 / Mar 29, 2012 4:04pm

    glenndavisgroup

    436 posts

    Hi Chad,

    Put the code in a text file and upload it somewhere online then post the link to the file here. That would be the easiest way.

    Mike

  • #5 / Mar 29, 2012 4:42pm

    StayInTouch

    16 posts

    Ok possible good news… I think I fixed the issue. I converted all of my field inputs like this one:

    <input type="text" name="{client_first_name}" id="{client_first_name}" size="20" value="{client_first_name}" class="titlefield" />

    to this:

    {field:client_first_name}

    It seems to have fixed both issues.

    However, please don’t close this out until I’ve confirmed for certain that its fixed.

    Thanks,

    Chad Boswell

  • #6 / Mar 29, 2012 5:02pm

    ahmad saad

    364 posts

    when you use the code like this

    <input type="text" name="{client_first_name}" id="{client_first_name}" size="20" value="{client_first_name}" class="titlefield" />

    ee will convert all {client_first_name} to the client_first_name field value, so you must write the name and id without {} like this:

    <input type="text" name="client_first_name" id="client_first_name" size="20" value="{client_first_name}" class="titlefield" />
  • #7 / Mar 30, 2012 1:45pm

    Shane Eckert

    7174 posts

    Hi StayInTouch,

    I will keep this open. Please let us know how it goes!

    Also, check out this great tool for showing long bits of anything.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases