{"action":"created","issue":{"url":"https://api.github.com/repos/bezumkin/AjaxForm/issues/20","labels_url":"https://api.github.com/repos/bezumkin/AjaxForm/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/bezumkin/AjaxForm/issues/20/comments","events_url":"https://api.github.com/repos/bezumkin/AjaxForm/issues/20/events","html_url":"https://github.com/bezumkin/AjaxForm/issues/20","id":90558033,"number":20,"title":"AjaxForm memory leak","user":{"login":"bschwenk","id":8420188,"avatar_url":"https://avatars.githubusercontent.com/u/8420188?v=3","gravatar_id":"","url":"https://api.github.com/users/bschwenk","html_url":"https://github.com/bschwenk","followers_url":"https://api.github.com/users/bschwenk/followers","following_url":"https://api.github.com/users/bschwenk/following{/other_user}","gists_url":"https://api.github.com/users/bschwenk/gists{/gist_id}","starred_url":"https://api.github.com/users/bschwenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bschwenk/subscriptions","organizations_url":"https://api.github.com/users/bschwenk/orgs","repos_url":"https://api.github.com/users/bschwenk/repos","events_url":"https://api.github.com/users/bschwenk/events{/privacy}","received_events_url":"https://api.github.com/users/bschwenk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-24T04:01:51Z","updated_at":"2015-06-24T22:29:49Z","closed_at":null,"body":"* MODX Revolution 2.3.3-pl (traditional)\r\n* FormIt 2.2.6-pl\r\n* AjaxForm 1.1.1-pl\r\n\r\nWith the below form and AjaxForm call, I get a fatal memory error from PHP.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8420188/8322445/22f6db66-1a03-11e5-9512-443e019e4636.png)\r\n\r\nAfter refreshing, I get a similar error but with a different file:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8420188/8322456/57fe1432-1a03-11e5-8e32-0248eb8aa9cb.png)\r\n\r\nCode below:\r\n\r\n```html\r\n<form method=\"post\" id=\"inquiry-form\" class=\"ajax_form\" action=\"[[~[[*id]]]]#inquiry-form\">\r\n\r\n  [[!+fi.validationErrorMessage:notempty=`<p id=\"if-main-error\">[[!+fi.validationErrorMessage]]</p>`]]\r\n  [[!+fi.successMessage:notempty=`<p id=\"if-success\">[[!+fi.successMessage]]</p>`]]\r\n\r\n  <div>\r\n    <label for=\"if-name\">Your name:</label><span class=\"if-error\">[[!+fi.error.if-name]]</span>\r\n    <input type=\"text\" id=\"if-name\" name=\"if-name\" />\r\n  </div>\r\n  <div>\r\n    <label for=\"if-email\">E-mail:</label><span class=\"if-error\">[[!+fi.error.if-email]]</span>\r\n    <input type=\"email\" id=\"if-email\" name=\"if-email\"/>\r\n  </div>\r\n  <div>\r\n    <label for=\"if-phone\">Phone:</label><span class=\"if-error\">[[!+fi.error.if-phone]]</span>\r\n    <input type=\"text\" id=\"if-phone\" name=\"if-phone\"/>\r\n  </div>\r\n  <div>\r\n    <label for=\"if-address\">Address:</label>\r\n    <input type=\"text\" id=\"if-address\" name=\"if-address\"/>\r\n  </div>\r\n  <div>\r\n    <label for=\"if-city\">City, State, Zip:</label>\r\n    <input type=\"text\" id=\"if-city\" name=\"if-city\"/>\r\n  </div>\r\n\r\n  <div>\r\n    <label for=\"if-program\">Program:</label>\r\n    <select id=\"if-program\" name=\"if-program\">\r\n      <option value=\"Music Pups\" rel=\"none\">Music Pups</option>\r\n      <option value=\"Young Musicians\" rel=\"none\">Young Musicians</option>\r\n      <option value=\"Music for Young Children\" rel=\"none\">Music for Young Children</option>\r\n      <option value=\"Private lessons\" rel=\"which-instrument\">Private music lessons</option>\r\n      <option value=\"Dance classes\" rel=\"which-class\">Dance classes</option>\r\n      <option value=\"Gymnastics\" rel=\"none\">Gymnastics</option>\r\n      <option value=\"Musical theatre\" rel=\"none\">Musical theatre</option>\r\n      <option value=\"Acting classes\" rel=\"none\">Acting classes</option>\r\n    </select>\r\n  </div>\r\n  <div id=\"if-which-instrument\">\r\n    <label for=\"if-instrument\">Instrument:</label>\r\n    <input type=\"text\" id=\"if-instrument\" name=\"if-instrument\"/>\r\n  </div>\r\n  <div id=\"if-which-class\">\r\n    <label for=\"if-type\">Type:</label>\r\n    <select id=\"if-type\" name=\"if-type\">\r\n      <option value=\"Pre-school\" rel=\"none\">Pre-School</option>\r\n      <option value=\"Ballet\" rel=\"none\">Ballet</option>\r\n      <option value=\"Jazz\" rel=\"none\">Jazz</option>\r\n      <option value=\"Tap\" rel=\"none\">Tap</option>\r\n      <option value=\"Hip Hop\" rel=\"none\">Hip Hop</option>\r\n      <option value=\"Tumble\" rel=\"none\">Tumbling</option>\r\n      <option value=\"Irish\" rel=\"none\">Irish Step</option>\r\n      <option value=\"Bollywood\" rel=\"none\">Bollywood</option>\r\n      <option value=\"Musical Theatre\" rel=\"none\">Musical Theatre</option>\r\n      <option value=\"Latin/Salsa\" rel=\"none\">Latin/Salsa</option>\r\n      <option value=\"Competitive\" rel=\"none\">Competitive/team</option>\r\n    </select>\r\n    <label for=\"if-age\">Student's Age:</label>\r\n    <input type=\"text\" id=\"if-age\" name=\"if-age\">\r\n    <input type=\"hidden\" name=\"workemail\" value=\"\">\r\n  </div>\r\n  <div>\r\n    <input type=\"submit\" class=\"button\" id=\"if-submit\" name=\"if-submit\" value=\"Submit\"/>\r\n  </div>\r\n            \r\n</form>\r\n\r\n[[!AjaxForm?\r\n  &form=`inquiry-form`\r\n  &snippet=`FormIt`\r\n  &submitVar=`if-submit`\r\n  &hooks=`spam,if-custom,email`\r\n  &emailTpl=`inquiry-form-report`\r\n  &emailSubject=`Site inquiry regarding [[+if-program]]`\r\n  &emailTo=`s*******l@gmail.com`\r\n  &emailFrom=`no-reply@******.com`\r\n  &successMessage =`<strong>Thanks for your inquiry!</strong><br>We will respond to you shortly.`\r\n  &validate=`workemail:blank,\r\n    if-name:required:minLength=^3^,\r\n    if-email:email:required`\r\n]]\r\n```"},"comment":{"url":"https://api.github.com/repos/bezumkin/AjaxForm/issues/comments/115031718","html_url":"https://github.com/bezumkin/AjaxForm/issues/20#issuecomment-115031718","issue_url":"https://api.github.com/repos/bezumkin/AjaxForm/issues/20","id":115031718,"user":{"login":"bschwenk","id":8420188,"avatar_url":"https://avatars.githubusercontent.com/u/8420188?v=3","gravatar_id":"","url":"https://api.github.com/users/bschwenk","html_url":"https://github.com/bschwenk","followers_url":"https://api.github.com/users/bschwenk/followers","following_url":"https://api.github.com/users/bschwenk/following{/other_user}","gists_url":"https://api.github.com/users/bschwenk/gists{/gist_id}","starred_url":"https://api.github.com/users/bschwenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bschwenk/subscriptions","organizations_url":"https://api.github.com/users/bschwenk/orgs","repos_url":"https://api.github.com/users/bschwenk/repos","events_url":"https://api.github.com/users/bschwenk/events{/privacy}","received_events_url":"https://api.github.com/users/bschwenk/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T22:29:49Z","updated_at":"2015-06-24T22:29:49Z","body":"It just so happens that my chunk is named the same.  So I was using this parameter correctly, even though I didn't realize it.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8420188/8342993/f5a84720-1a9e-11e5-911a-1702dc9933ee.png)\r\n"}}