{"id":9783985,"date":"2017-12-14T21:43:03","date_gmt":"2017-12-14T21:43:03","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/solved-javascript-error\/"},"modified":"2017-12-14T21:44:05","modified_gmt":"2017-12-14T21:44:05","slug":"solved-javascript-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/solved-javascript-error\/","title":{"rendered":"Solved Javascript error"},"content":{"rendered":"<p>Being that this plugin is no longer supported, I figured I&#8217;d post my solution for a Javascript error that this plugin was throwing. My error was:<\/p>\n<p>Uncaught TypeError: Cannot read property &#8217;64&#8217; of undefined in gf-repeater.min.js.<\/p>\n<p>I fixed this error by changing lines 286-288 in class-gf-field-repeater.php to:<\/p>\n<pre><code>if (empty($value)) {\n    $value = array();\n    $value[&#039;formId&#039;] = $form_id;<\/code><\/pre>\n<p>The addition of <code>$value = array();<\/code> is the fix.<\/p>\n<p>Hope this helps someone!<\/p>\n","protected":false},"template":"","class_list":["post-9783985","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9783985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9783985\/revisions"}],"predecessor-version":[{"id":9783990,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9783985\/revisions\/9783990"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9783985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}