{"id":18434270,"date":"2025-04-24T15:42:44","date_gmt":"2025-04-24T15:42:44","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-variable-response-2\/"},"modified":"2025-04-24T15:42:44","modified_gmt":"2025-04-24T15:42:44","slug":"undefined-variable-response-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-variable-response-2\/","title":{"rendered":"Undefined variable response"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The plugin appears to be broken. Getting an error in <code>frontend-script.js<\/code> due to an undeclared <code>response<\/code> variable in the hook attached to the <code>wpcf7invalid<\/code> event.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More specifically, in the unminified file,<br \/><code>wpcf7-redirect\\assets\\js\\wpcf7r-fe.js<\/code> line <code>79<\/code>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>response = event.detail.apiResponse;<\/code><br \/>should be<br \/><code>var response = event.detail.apiResponse;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The module runs in strict mode; therefore global assignment is illegal.<\/p>\n","protected":false},"template":"","class_list":["post-18434270","topic","type-topic","status-publish","hentry","topic-tag-js-error","topic-tag-crash"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18434270","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18434270\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18434270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}