{"id":626,"date":"2022-08-30T15:04:29","date_gmt":"2022-08-30T15:04:29","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/when-redirect-gives-an-error-undefined-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:04:29","modified_gmt":"2022-08-30T15:04:29","slug":"when-redirect-gives-an-error-undefined-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/when-redirect-gives-an-error-undefined-collection-of-common-programming-errors\/","title":{"rendered":"when redirect gives an error &ldquo;undefined&rdquo;-Collection of common programming errors"},"content":{"rendered":"<p>I have an odd problem. When I click my button to redirect to a certain controller method it gives me an error &#8220;UNDEFINED&#8221; but when I refresh the page it gives me the right output.<\/p>\n<p>You can access my site here: http:\/\/apps.stratpoint.com:9114\/login<\/p>\n<p>Don&#8217;t know where to debug this kind of problem. Help anyone.<\/p>\n<ol>\n<li>\n<p>One scenario when redirect undefined comes is when the helper class has not been loaded. Make sure you have loaded url helper- this is needed for redirect to work.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-11-09 21:08:42. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have an odd problem. When I click my button to redirect to a certain controller method it gives me an error &#8220;UNDEFINED&#8221; but when I refresh the page it gives me the right output. You can access my site here: http:\/\/apps.stratpoint.com:9114\/login Don&#8217;t know where to debug this kind of problem. Help anyone. One scenario [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-626","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=626"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/626\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}