Title: Undefined Variable Error
Last modified: July 8, 2017

---

# Undefined Variable Error

 *  Resolved [spinny44](https://wordpress.org/support/users/spinny44/)
 * (@spinny44)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-error-13/)
 * I really appreciate you developing this plugin!
 * I’m experiencing an error on my individual job listing pages. Here is the error,
   which appears at the top of the screen (in mobile only for some reason):
 * Notice: Undefined variable: geolocated in /wp-content/plugins/wpjm-schema/inc/
   outputs/schema-single-job.php on line 119
 * Thoughts on how to fix this?

Viewing 1 replies (of 1 total)

 *  Plugin Author [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-error-13/#post-9305446)
 * Hey Spinny,
 * Thanks for the kind words on the plugin!
 * I’ve pushed an update to the plugin that will check whether the $geolocation 
   variable is set before querying it. Hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Undefined Variable Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpjm-schema.svg)
 * [WPJM Schema](https://wordpress.org/plugins/wpjm-schema/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpjm-schema/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpjm-schema/)
 * [Active Topics](https://wordpress.org/support/plugin/wpjm-schema/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpjm-schema/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpjm-schema/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-error-13/#post-9305446)
 * Status: resolved