Title: Error Trap
Last modified: September 14, 2017

---

# Error Trap

 *  [davestein1](https://wordpress.org/support/users/davestein1/)
 * (@davestein1)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-trap/)
 * Hi Dan,
 * Your plugin is working great! It is invaluable. Many thanks.
 * I’m looking for a way to trap errors.
 * 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).
 * Currently, that creates an error:
    “Undefined index: values in dans-gsheets.php
   on line 199”
 * If there a way to trap or test for this? Perhaps returning “” or false?
 * FWIW, I’m calling your routine using $data = do_shortcode(….)
    Of course I test
   the result, but the call generates the error.
 * Again, many thanks for a simple, sweet plugin!
 * -Dave

The topic ‘Error Trap’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dans-gsheets.svg)
 * [Dan's GSheets Data Embedder](https://wordpress.org/plugins/dans-gsheets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dans-gsheets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dans-gsheets/)
 * [Active Topics](https://wordpress.org/support/plugin/dans-gsheets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dans-gsheets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dans-gsheets/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [davestein1](https://wordpress.org/support/users/davestein1/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/error-trap/)
 * Status: not resolved