Formulário de Voluntariado O tamanho máximo da pilha de chamadas excedeu

Minha forma estava funcionando bem em um ponto e depois adicionei alguns campos extras de dados de formulário e o boom começou a obter isso.

Aqui está um link para o JS de que se queixa.

Aqui está o que o console me traz quando eu clicar no erro:

function Vc(a, b, c, d) { var e; if (m.isArray(b)) m.each(b, function(b, e) { c || Rc.test(a) ? d(a, e) : Vc(a + "[" + ("object" == typeof e ? b : "") + "]", e, c, d) }); else if (c || "object" !== m.type(b)) d(a, b); else for (e in b) Vc(a + "[" + e + "]", b[e], c, d) } 

Juntamente com isso

 type: function(a) { return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? h[i.call(a)] || "object" : typeof a } 

Aqui está um link para o código HTML para o formulário.

Form JS

 $(function() { $("#contact_form input,#contact_form textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // something to have when submit produces an error ? // Not decided if I need it yet }, submitSuccess: function($form, event) { event.preventDefault(); // prevent default submit behaviour // get values from FORM var name = $("input#name").val(); var lastName = $("input#lastName").val(); var gender = $("select#gender").val(); var phone = $("input#phone").val(); var email = $("input#email").val(); var address = $("input#address").val(); var city = $("input#city").val(); var state = $("select#state").val(); var country = $("select#country").val(); var zip = $("input#zip").val(); var title = $("select#title").val(); var otherTitle = $("input#otherTitle").val(); var specialty = $("select#specialty").val(); var otherSpecialty = $("input#otherSpecialty").val(); var skill = $("select#skill").val(); var otherSkill = $("input#otherSkill").val(); var africa = document.getElementById("africa").checked; // var africa = $("input#africa").checked; var caribbean = document.getElementById("caribbean").checked; // var caribbean = $("input#caribbean").checked; var eSeAsia = document.getElementById("eseAsia").checked; // var eSeAsia = $("input#eseAsia").val(); var europe = document.getElementById("europe").checked; // var europe = $("input#europe").val(); var india = document.getElementById("india").checked; // var india = $("input#india").val(); var latinAmerica = document.getElementById("latinAmerica").checked; // var latinAmerica = $("input#latinAmerica").val(); // var arabic = $("input#arabic").val(); var arabic = document.getElementById("arabic").checked; var arabicLevel = $("select#arabicLevel").val(); // var chinese = $("input#chinese").val(); var chinese = document.getElementById("chinese").checked; var chineseLevel = $("select#chineseLevel").val(); // var english = $("input#english").val(); var english = document.getElementById("english").checked; var englishLevel = $("select#englishLevel").val(); // var french = $("input#french").val(); var french = document.getElementById("french").checked; var frenchLevel = $("select#frenchLevel").val(); // var german = $("input#german").val(); var german = document.getElementById("german").checked; var germanLevel = $("select#germanLevel").val(); // var hindi = $("input#hindi").val(); var hindi = document.getElementById("hindi").checked; var hindiLevel = $("select#hindiLevel").val(); // var korean = $("input#korean").val(); var korean = document.getElementById("korean").checked; var koreanLevel = $("select#koreanLevel").val(); // var lao = $("input#lao").val(); var lao = document.getElementById("lao").checked; var laoLevel = $("select#laoLevel").val(); // var portuguese = $("input#portuguese").val(); var portuguese = document.getElementById("portuguese").checked; var portugueseLevel = $("select#portugueseLevel").val(); // var spanish = $("input#spanish").val(); var spanish = document.getElementById("spanish").checked; var spanishLevel = $("select#spanishLevel").val(); // var vietnamese = $("input#vietnamese").val(); var vietnamese = document.getElementById("vietnamese").checked; var vietnameseLevel = $("select#vietnameseLevel").val(); // var other = $("input#other").val(); var other = document.getElementById("other").checked; var otherLevel = $("select#otherLevel").val(); var otherInput = $("input#otherInput").val(); var volunteerYes = document.getElementById("volunteerYes").checked; var organizationCountry = $("input#volunteerCountry").val(); var volunteerNo = document.getElementById("volunteerNo").checked; var message = $("textarea#message").val(); var firstName = name; // For Success/Failure Message // Check for white space in name for Success/Fail message if (firstName.indexOf(' ') >= 0) { firstName = name.split(' ').slice(0, -1).join(' '); } $.ajax({ url: "./bin/volunteer.php", type: "POST", data: { name: name, lastName: lastName, gender: gender, phone: phone, email: email, address: address, city: city, state: state, country: country, zipcode: zip, Title: title, otherTitle: otherTitle, specialty: specialty, otherSpecialty: otherSpecialty, skill: skill, otherSkill: otherSkill, africa: africa, caribbean: caribbean, eSeAsia: eSeAsia, europe: europe, india: india, latinAmerica: latinAmerica, arabic: arabic, arabiclevel: arabicLevel, chinese: chinese, chineselevel: chineseLevel, english: english, englishlevel: englishLevel, french: french, frenchlevel: frenchLevel, german: german, germanlevel: germanLevel, hindi: hindi, hindilevel: hindiLevel, korean: korean, koreanlevel: koreanLevel, lao: lao, laolevel: laoLevel, portuguese: portuguese, portugueselevel: portugueseLevel, spanish: spanish, spanishlevel: spanishLevel, vietnamese: vietnamese, vietnameselevel: vietnameseLevel, other: other, otherlevel: otherLevel, otherlanguage: otherInput, volunteerYes: volunteerYes, volunteerCountry: volunteerCountry, volunteerNo: volunteerNo, message: message }, cache: false, success: function() { // Success message $('#success').html("
"); $('#success > .alert-success').html(""); $('#success > .alert-success') .append("Your message has been sent. "); $('#success > .alert-success') .append('
'); //clear all fields $('#contact_form').trigger("reset"); }, error: function() { // Fail message $('#success').html("
"); $('#success > .alert-danger').html(""); $('#success > .alert-danger').append("Sorry " + firstName + " it seems that my mail server is not responding... Could you please email me directly to me@example.com ? Sorry for the inconvenience!"); $('#success > .alert-danger').append('
'); //clear all fields $('#contact_form').trigger("reset"); }, }) }, filter: function() { return $(this).is(":visible"); }, }); $("a[data-toggle=\"tab\"]").click(function(e) { e.preventDefault(); $(this).tab("show"); }); }); /*When clicking on Full hide fail/success boxes */ $('#name').focus(function() { $('#success').html(''); });

O php-shape parece aqui:

  $value) { $value = strip_tags(htmlspecialchars($value)); if($value!="" && $value!="false") { $email_body .= "$key : $value \n"; } } /* $email_subject = "Website Volunteer Form: $name"; $email_body = "You have received a new message from your website volunteer form.\n\n". "Here are the details:\nFirst Name: $name\nLast Name: $lastName\nGender: $gender\n\nEmail: $email_address\nPhone: $phone\n\n Address: $address\nCity: $city\nState: $state\nCountry: $country\nZip: $zipcode\n\n Medical Degree/Title: $Title\nSpecality: $specialty\nNon-Medical Skill: $skill\n\n Interested in Africa: $africa\nInterested in Caribbean: $caribbean\nInterested in E. or SE Asia: $eSeAsia\nInterested in Europe: $europe\nInterested in India: $india\nInterested in Latin America: $latinAmerica\n\n Message:\n$message"; */ $headers = "From: noreplyw4wh@gmail.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com. $headers .= "Reply-To: $email_address"; mail($to,$email_subject,$email_body,$headers); return true; ?>