Title: WordPress 4.5 Function error when displaying stores.
Last modified: August 31, 2016

---

# WordPress 4.5 Function error when displaying stores.

 *  Resolved [skedoozy](https://wordpress.org/support/users/skedoozy/)
 * (@skedoozy)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wordpress-45-function-error-when-displaying-stores/)
 * I replied to [this post](https://wordpress.org/support/topic/store-display-issue-possible-issue-with-upgrade-to-wp-45?replies=7)
   as I am having the same error that user was.
 * function (n){return o.call(this,n,m)}function (n){return o.call(this,n,m)}function(
   n){return o.call(this,n,m)}
 * When trying to display any store info from the search.
 * We made a lot of template updates to work within our clients site so not sure
   if we can update then entire plugin at this date. We are using version 2.0.3.
 * [https://wordpress.org/plugins/wp-store-locator/](https://wordpress.org/plugins/wp-store-locator/)

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

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wordpress-45-function-error-when-displaying-stores/#post-7309142)
 * I didn’t test this with 2.0.3, but the changes below are the changes to fix the
   underscore issue in 2.1.2. So if you open the wpsl-gmap.js and make the following
   changes.
 *     ```
       // Search for these two lines
       _.template( template, response[index] );
   
       _.template( template, infoWindowData );
   
       // replace it with this
       _.template( template )( response[index] );
   
       _.template( template )( infoWindowData );
       ```
   
 * Then [minify ](http://javascript-minifier.com/)the _wpsl-gmap.js_, and save it
   as _wpsl-gmap.min.js_, flush the server / caching plugin / cloudfront or whatever
   you use to cache the site and it should work again.
 *  Thread Starter [skedoozy](https://wordpress.org/support/users/skedoozy/)
 * (@skedoozy)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wordpress-45-function-error-when-displaying-stores/#post-7309168)
 * You. Are. Amazing. Thank you so much. That did the trick and saved us a LOT of
   extra work.
 *  [lefonk](https://wordpress.org/support/users/lefonk/)
 * (@lefonk)
 * [10 years ago](https://wordpress.org/support/topic/wordpress-45-function-error-when-displaying-stores/#post-7309333)
 * Thank you this worked for me too.

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

The topic ‘WordPress 4.5 Function error when displaying stores.’ 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/)

## Tags

 * [function error](https://wordpress.org/support/topic-tag/function-error/)
 * [WordPress 4.5](https://wordpress.org/support/topic-tag/wordpress-4-5/)

 * 3 replies
 * 3 participants
 * Last reply from: [lefonk](https://wordpress.org/support/users/lefonk/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/wordpress-45-function-error-when-displaying-stores/#post-7309333)
 * Status: resolved