Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Evan Jardine 108 posts 168 karma points
    Oct 26, 2010 @ 05:23
    Evan Jardine
    0

    Contour Failed to save form

    I keep getting the message "Failed to Save Form" pop up when trying to save a form that has multiple custom prevalues on it.

    Where can I look to debug this? (I can't find anthing in the log table)

    • Umbraco 4.5.2 (.Net 3.5)
    • Contour 1.1.3

    To replicate the problem I have;

    1. Created a new test form
    2. Added two dropdown lists 
    3. Saved
    4. Change the prevalues to my custom ones
    5. Tried to save Failed

    Hope someone can help with this.

    Cheers

    Evan

  • Comment author was deleted

    Oct 26, 2010 @ 07:55

    Hi Evan,

    Your custom prevalue sources, do they have lots of items?

    If so, try increasing the maxJsonLength in the web.config (I think that will do the trick)

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Oct 26, 2010 @ 12:37
    Ismail Mayat
    0

    Tim,

    I am getting exact same issue although my form is a new form based on contact template not added any new fields yet just tried updating the form field labels. I am on .net4

    Regards

    Ismail

  • Comment author was deleted

    Oct 26, 2010 @ 12:44

    @Ismail,

    Could you try seeing with firefox if you can see the respone from the save method call ?

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Oct 26, 2010 @ 12:51
    Ismail Mayat
    0

    Tim,

    Looking at firebug when i save the post data is

    {"guid":"d35598ff-89a6-46d6-ac51-11fa6c586106","name":"Request literature","manualapproval":false,"message":"Thank you","nodeid":"","requiredmessage":"{0} is mandatory","invalidmessage":"{0} is not valid","showvalsum":false,"hidefieldval":false,"value":"\n \n <div rel=\"e6e801e2-0725-4a26-a94e-5bc3272ec6ed\" id=\"e6e801e2-0725-4a26-a94e-5bc3272ec6ed\" class=\"page\" style=\"\">\n <div class=\"pageheader\">\n <strong class=\"pagename editable\">\n Contact</strong> <a class=\"iconButton update\" style=\"display: none;\" href=\"javascript:ShowUpdatePageDialog('e6e801e2-0725-4a26-a94e-5bc3272ec6ed');\">\n update</a> <a class=\"iconButton add\" href=\"#\" onclick=\"javascript:ShowAddFieldsetDialog('e6e801e2-0725-4a26-a94e-5bc3272ec6ed');\">\n add fieldset</a> <a style=\"display: none;\" class=\"iconButton delete\" href=\"#\" onclick=\"javascript:DeletePage('e6e801e2-0725-4a26-a94e-5bc3272ec6ed');\">\n delete</a> <span class=\"handle\" style=\"display: none;\">handle</span>\n </div>\n <div class=\"pageeditcontainer\">\n </div>\n <div style=\"\" id=\"fieldsetcontainere6e801e2-0725-4a26-a94e-5bc3272ec6ed\" class=\"fieldsetcontainer ui-sortable\">\n \n <div style=\"\" rel=\"12dc66f3-2e31-40c7-a4ef-e55e4c4f85f2\" id=\"12dc66f3-2e31-40c7-a4ef-e55e4c4f85f2\" class=\"fieldset\">\n <div class=\"fieldsetheader\">\n <strong class=\"fieldsetname editable\">Request</strong> <a class=\"iconButton update\" style=\"display: none;\" href=\"#\" onclick=\"javascript:ShowUpdateFieldsetDialog('12dc66f3-2e31-40c7-a4ef-e55e4c4f85f2');\">\n update</a> <a class=\"iconButton delete\" href=\"#\" onclick=\"javascript:DeleteFieldset('12dc66f3-2e31-40c7-a4ef-e55e4c4f85f2');\">\n delete</a> <span class=\"handle\">Move</span>\n </div>\n <div class=\"fieldseteditcontainer\">\n </div>\n <div style=\"\" class=\"fieldcontainer ui-sortable\">\n \n <div style=\"\" rel=\"d2bfe089-1a38-4ed1-9c33-069a32e5a121\" id=\"d2bfe089-1a38-4ed1-9c33-069a32e5a121\" class=\"field\" fieldcaption=\"Name\" fieldtype=\"3f92e01b-29e2-4a30-bf33-9df5580ed52c\" fieldmandatory=\"True\" fieldregex=\"\" fieldsupportsprevalues=\"0\" fieldsupportsregex=\"1\" fieldtooltip=\"\" fielddatasourcefield=\"\" fieldrequirederrormessage=\"\" fieldinvaliderrormessage=\"\">\n \n <a class=\"iconButton update\" href=\"#\" onclick=\"javascript:ShowUpdateFieldDialog('d2bfe089-1a38-4ed1-9c33-069a32e5a121');\">\n update</a> <a class=\"iconButton copy\" href=\"#\" onclick=\"javascript:CopyField('d2bfe089-1a38-4ed1-9c33-069a32e5a121');\">\n copy</a> <a class=\"iconButton delete\" href=\"#\" onclick=\"javascript:DeleteField('d2bfe089-1a38-4ed1-9c33-069a32e5a121');\">\n delete</a> <span class=\"handle\">handle</span>\n <div class=\"fieldprevalues\" style=\"display: none;\">\n \n </div>\n <div class=\"fieldadditionalsettings\" style=\"display: none;\">\n \n </div>\n <div class=\"fieldexample\">\n <label class=\"fieldexamplelabel\">\n <span>\n Name</span>\n <span id=\"body_ctl01_rptPages_rptFieldsets_0_rptFields_0_lblFieldMandatory_0\" class=\"mandatory\">*</span>\n </label>\n <div class=\"fieldControl\">\n <input class=\"textfield\" type=\"text\">\n <div class=\"fieldeditprevalues\" style=\"display: none;\">\n <a href=\"#\" onclick=\"javascript:ShowUpdatePrevaluesDialog('d2bfe089-1a38-4ed1-9c33-069a32e5a121')\">\n Edit items</a>\n ... Firebug request size limit has been reached by Firebug. ... </label>\n <div class=\"fieldControl\">\n <input class=\"textfield\" type=\"text\">\n <div class=\"fieldeditprevalues\" style=\"display: none;\">\n <a href=\"#\" onclick=\"javascript:ShowUpdatePrevaluesDialog('e7fb84fd-bcbe-4f26-96d8-0d359cca793b')\">\n Edit items</a>\n </div>\n </div>\n <br style=\"clear: both;\">\n </div>\n <div style=\"clear: both;\"></div>\n </div>\n <div style=\"\" class=\"fieldeditcontainer\" id=\"fieldeditcontainere7fb84fd-bcbe-4f26-96d8-0d359cca793b\">\n </div>\n \n <div style=\"\" rel=\"fa0ef544-178a-4522-81ba-b98f0163d63d\" id=\"fa0ef544-178a-4522-81ba-b98f0163d63d\" class=\"field\" fieldcaption=\"Message\" fieldtype=\"023f09ac-1445-4bcb-b8fa-ab49f33bd046\" fieldmandatory=\"True\" fieldregex=\"\" fieldsupportsprevalues=\"0\" fieldsupportsregex=\"1\" fieldtooltip=\"\" fielddatasourcefield=\"\" fieldrequirederrormessage=\"\" fieldinvaliderrormessage=\"\">\n \n <a class=\"iconButton update\" href=\"#\" onclick=\"javascript:ShowUpdateFieldDialog('fa0ef544-178a-4522-81ba-b98f0163d63d');\">\n update</a> <a class=\"iconButton copy\" href=\"#\" onclick=\"javascript:CopyField('fa0ef544-178a-4522-81ba-b98f0163d63d');\">\n copy</a> <a class=\"iconButton delete\" href=\"#\" onclick=\"javascript:DeleteField('fa0ef544-178a-4522-81ba-b98f0163d63d');\">\n delete</a> <span class=\"handle\">handle</span>\n <div class=\"fieldprevalues\" style=\"display: none;\">\n \n </div>\n <div class=\"fieldadditionalsettings\" style=\"display: none;\">\n \n </div>\n <div class=\"fieldexample\">\n <label class=\"fieldexamplelabel\">\n <span>\n Message</span>\n <span id=\"body_ctl01_rptPages_rptFieldsets_0_rptFields_0_lblFieldMandatory_2\" class=\"mandatory\">*</span>\n </label>\n <div class=\"fieldControl\">\n <textarea class=\"textarea\"></textarea>\n <div class=\"fieldeditprevalues\" style=\"display: none;\">\n <a href=\"#\" onclick=\"javascript:ShowUpdatePrevaluesDialog('fa0ef544-178a-4522-81ba-b98f0163d63d')\">\n Edit items</a>\n </div>\n </div>\n <br style=\"clear: both;\">\n </div>\n <div style=\"clear: both;\"></div>\n </div>\n <div style=\"\" class=\"fieldeditcontainer\" id=\"fieldeditcontainerfa0ef544-178a-4522-81ba-b98f0163d63d\">\n </div>\n \n </div>\n <button class=\"addfield\" onclick=\"javascript:ShowAddFieldDialog('12dc66f3-2e31-40c7-a4ef-e55e4c4f85f2'); return false;\">\n <img src=\"css/img/add_small.png\" style=\"vertical-align: middle;\">\n <span>Add Field</span></button>\n </div>\n \n </div>\n \n </div>\n \n","indicationtype":0,"indicator":"","disablestylesheet":false,"saverecordlocaly":true}

    and the response is

    {"d":false}

    Regards

    Ismial

  • Comment author was deleted

    Oct 26, 2010 @ 12:52

    Owkey, so you don't see any errors?

    Did you just update the contour version perhaps?

     

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Oct 26, 2010 @ 13:06
    Ismail Mayat
    0

    Tim,

    I am currently using 1.1.0 think it was from a nightly build though not latest nightly build is it worth pulling down latest nightly build and trying that? If so what is nightly url?

    regards

    Isamil

  • Comment author was deleted

    Oct 26, 2010 @ 13:12

    Latest stable atm is http://nightly.umbraco.org/Umbraco%20Contour/1.1.3/

    Be sure to clear browser cache after update

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Oct 26, 2010 @ 13:21
    Ismail Mayat
    0

    Tim,

    Bingo that did the trick!

    Regards

    Ismail

  • Evan Jardine 108 posts 168 karma points
    Oct 26, 2010 @ 23:53
    Evan Jardine
    0

    Hi Tim

    Yes my prevalues have 400+ employee names, increasing the maxJsonLength length did the trick!

    Thanks a lot for pointing me in the right direction :)

    Cheers

    Evan

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Nov 04, 2010 @ 16:59
    Sebastiaan Janssen
    1

    I don't know what happened, but i suddenly had this same problem in an existing site, it used to work fine before. I copied the /bin and /umbraco/plugin directories (from the 1.1.4 update zip) over the existing ones and it started working again.

  • Fredrik Sewén 39 posts 106 karma points
    Dec 16, 2010 @ 15:56
    Fredrik Sewén
    0

    I had the same problem as described above. I followed Sebastiaan Janssens suggestion and copied the files from 1.1.4 update zip and after that everything is working fine. 

    Thanks Sebastiaan, high five och that!

    /Fredrik

  • Scott McClannahan 10 posts 30 karma points
    Aug 09, 2014 @ 17:21
    Scott McClannahan
    0

    Hey - if you're having the same problem, MAKE SURE Contour is 'actually installed' on the machine you are on. We were working with another DB on one of our DEV machines that didn't yet have Contour installed for some reason.

    After several hours of troubleshooting, it turns out that if you install Contour, it works!

Please Sign in or register to post replies

Write your reply to:

Draft