{"id":9494956,"date":"2017-09-14T02:37:17","date_gmt":"2017-09-14T02:37:17","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-trap\/"},"modified":"2017-09-14T02:37:17","modified_gmt":"2017-09-14T02:37:17","slug":"error-trap","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-trap\/","title":{"rendered":"Error Trap"},"content":{"rendered":"<p>Hi Dan,<\/p>\n<p>Your plugin is working great!  It is invaluable.  Many thanks.<\/p>\n<p>I&#8217;m looking for a way to trap errors.<\/p>\n<p>In the normal course of my use, I will try to access spreadsheet fields that are not yet defined.  E.g, trying to access field Z2, when it is not initialized (empty).<\/p>\n<p>Currently, that creates an error:<br \/>\n&#8220;Undefined index: values in dans-gsheets.php on line 199&#8221;<\/p>\n<p>If there a way to trap or test for this? Perhaps returning &#8220;&#8221; or false?<\/p>\n<p>FWIW, I&#8217;m calling your routine using $data = do_shortcode(&#8230;.)<br \/>\nOf course I test the result, but the call generates the error.<\/p>\n<p>Again, many thanks for a simple, sweet plugin!<\/p>\n<p>-Dave<\/p>\n","protected":false},"template":"","class_list":["post-9494956","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9494956","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\/9494956\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9494956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}