Title: Location page not loading google map
Last modified: August 31, 2016

---

# Location page not loading google map

 *  Resolved [notnicecream](https://wordpress.org/support/users/notnicecream/)
 * (@notnicecream)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/)
 * Hi I am having problems all of a sudden with the locations page not loading the
   google map, it just suddenly stopped working a week ago. here is a link to a 
   page [http://refinedlifestylessaskatoon.com/location/joes-pizza/](http://refinedlifestylessaskatoon.com/location/joes-pizza/).
 * I’ve tried disabling all other plugin and that didn’t work to fix it. I also 
   tested it on another site and it worked. So i’m thinking maybe it’s a theme problem?
   Is there anyway you can see to get it to work?
 * Thanks
 * [https://wordpress.org/plugins/simple-locator/](https://wordpress.org/plugins/simple-locator/)

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

 *  Plugin Author [Kyle Phillips](https://wordpress.org/support/users/kylephillips/)
 * (@kylephillips)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7299972)
 * It looks like an issue with your theme.
 * The JS console is showing an error from an undefined function “stickyMojo”. It
   doesn’t look like the theme is including that jQuery plugin.
 * You could try removing those lines from your theme’s scripts.js.
 *  Thread Starter [notnicecream](https://wordpress.org/support/users/notnicecream/)
 * (@notnicecream)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7299976)
 * ok. I commented it out, doesn’t seem to be giving anymore errors. But it’s still
   loading endlessly sadly.
 *  Plugin Author [Kyle Phillips](https://wordpress.org/support/users/kylephillips/)
 * (@kylephillips)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7299985)
 * Viewing the source, it looks like multiple posts are being output in the JS data
   the plugin uses… it makes me think there is a loop somewhere that either isn’t
   closed, or isn’t being reset properly.
 * You may need to go through your theme files and double check that. The single.
   php template would be a good place to start.
 *  Thread Starter [notnicecream](https://wordpress.org/support/users/notnicecream/)
 * (@notnicecream)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7300000)
 * alright, I’ve checked out most of the theme files but I couldn’t find any real
   problem. So I decided to delete certain files one by one to see where the problem
   might be. I found that after deleting the theme widget.php files it instantly
   started working again. I put the widget files back and it’s still working oddly
   enough. So I am gonna check more into it to see which file might be causing some
   problem.
    Thanks for all the help so far.
 *  Thread Starter [notnicecream](https://wordpress.org/support/users/notnicecream/)
 * (@notnicecream)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7300011)
 * ok. So this widget is causing problems with the map loading when this widget 
   is actively on a page. Here is a pastebin of that file [http://pastebin.com/RLxKxXCw](http://pastebin.com/RLxKxXCw).
   I’m not sure what i’m looking for maybe you can help me out to resolve it because
   I kinda need to use this widget file as well.
    Thanks!
 *  Plugin Author [Kyle Phillips](https://wordpress.org/support/users/kylephillips/)
 * (@kylephillips)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7300020)
 * Try changing line 65 to:
 * `<?php endwhile; reset_post_data(); ?>`
 *  Thread Starter [notnicecream](https://wordpress.org/support/users/notnicecream/)
 * (@notnicecream)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7300039)
 * hmm, that actually made things a bit worse haha. when I put that in place of 
   line 65 I get “Failed to load resource: the server responded with a status of
   500 (Internal Server Error)” I’ll keep trying to figure it out.
 *  Thread Starter [notnicecream](https://wordpress.org/support/users/notnicecream/)
 * (@notnicecream)
 * [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7300046)
 * So I took out line 61 `<p><?php echo excerpt(19); ?></p>` and it didn’t seem 
   to affect the widget in anyway and it seems to be the culprit for making the 
   map not load. It works now that I have removed it.
    Thanks for the help!

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

The topic ‘Location page not loading google map’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-locator_279078.svg)
 * [Simple Locator](https://wordpress.org/plugins/simple-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-locator/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [notnicecream](https://wordpress.org/support/users/notnicecream/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/location-page-not-loading-google-map/#post-7300046)
 * Status: resolved