Title: Uncaught reference error
Last modified: October 14, 2020

---

# Uncaught reference error

 *  [concepthub](https://wordpress.org/support/users/concepthub/)
 * (@concepthub)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/uncaught-reference-error-5/)
 * Hi Tijmen,
    I have been using this plugin for quite some time now with great 
   results until the last couple of days and I am now experiencing some difficulties.
 * Problem: The store locator plugin seems to be working to a point in that the 
   category search options are all displaying and the map is showing and then when
   you click on search it seems to completing the search function as the little 
   search icon appears and then disappears and nothing else happens. The other peculiar
   thing is that the default map location is showing but none of the map zoom settings
   are working.
 * In the browser console I can see that there is the following js error Uncaught
   Reference Error: description is not defined. This is the mentioned url :[https://www.example.com/wp-content/plugins-wp-store-locator/js/wpsl-gmap.min.js?ver=2.2.233:1](https://www.example.com/wp-content/plugins-wp-store-locator/js/wpsl-gmap.min.js?ver=2.2.233:1)
 * Unfortunately Java Script is not my area and I dont know if this is a caching
   issue or something else. Any pointers/directions you can provide would be greatly
   appreciated.
    Cheers Rob
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-reference-error-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/uncaught-reference-error-5/#post-13531531)
 * Can you make sure this code exists in the in functions.php inside your active
   theme folder.
 * `add_filter( 'wpsl_include_post_content', '__return_true' );`
 *  Thread Starter [concepthub](https://wordpress.org/support/users/concepthub/)
 * (@concepthub)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/uncaught-reference-error-5/#post-13531722)
 * Hey Tijmen,
    Perfect! Nailed it first go. Is this something that I would have
   inadvertently removed with something I have done? Cheers Rob
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/uncaught-reference-error-5/#post-13532735)
 * If you add this code, and then update your theme, then the functions.php is overwritten.
   So you will have to add it back again.
 * This won’t be necessary anymore after the next plugin update, including the description
   text will simply be an option on the WPSL settings page.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught reference error’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/uncaught-reference-error-5/#post-13532735)
 * Status: not resolved