Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 720
  • Last Modified:

Wordpress map plugin error

I don't have a huge amount of information so I might not be able to get an answer, but I figured I'd see what people could come up with.

I added the plugin "Store Locator Plus" to a WordPress site but can't get it to work.  The help site for the plugin doesn't give me too much information, just saying that if its not working the issues most likely is not having all the PHP modules necessary to run the plugin, bad JavaScript prior to the Store Locator code being called, or themes the overtake all image output.

I don't think the theme in use take over all image output (though if it does I'm not entirely sure how to check for that).  I'm also pretty positive we have all the PHP modules  (I don't see how I could be missing any).  So that leaves a JavaScript problem.  Using firebug I was able to get the error "TypeError: cslmap is undefined" from when it tries to run some JavaScript.

I looked in the code for the plugin and cslmap is a crated variable, the function that's being called (cslmap.searchLocations()) also exists in the code.  I really doubt that its the code from the plugin that's the issue, but I don't really know what else could cause an error to happen within that code (JavaScript is sadly not my strong point).

I know it's very little to go off of, but if anyone has any ideas (including ways to check for errors better or something) that would be great.

(Also the support site for Store Locator Plus suggests going into the store-locator.js file and changing error_reporting(0) to error_reporting(1), but that file doesn't exists in the plugin and I can't find that code in any of the JavaScript files that do exists, but most likely that's just a un-updated support site).
0
mjburgard
Asked:
mjburgard
  • 9
  • 6
1 Solution
 
Jason C. LevineNo oneCommented:
I'm also pretty positive we have all the PHP modules  (I don't see how I could be missing any).

Depending on how the plugin was coded you could be missing a library that is necessary for things to run.  Because the plugin is using AJAX, the dependencies on both PHP and Javascript libraries can be intermingled.

By the way, is it this plugin: http://wordpress.org/extend/plugins/store-locator-le/  or this one: http://www.charlestonsw.com/product-category/slplus/ ?
0
 
mjburgardAuthor Commented:
Its the second one you listed, but I think those are both the same one (if you follow the links you get to the same place).

Is there an easy way to check what libraries I have/need?
0
 
Jason C. LevineNo oneCommented:
No, I meant is it the free or the paid version of it (I fail at clicking)?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
mjburgardAuthor Commented:
We have the paid version (the pro pack specifically).
0
 
Jason C. LevineNo oneCommented:
If you back out to just the free version do the errors persist?
0
 
mjburgardAuthor Commented:
I can't seem to back out of the pro version.  I even tried uninstalling the plugin completely but when I reinstalled it wordpress it activated the pro version right away.
0
 
Jason C. LevineNo oneCommented:
And I can't test the pro version because I don't have it and, even though I like helping on EE, I ain't paying to get it :)
0
 
mjburgardAuthor Commented:
That's understandable.  Thanks for the effort anyway.

I'd hazard a guess that what the pro version adds isn't the issue from what I'm seeing, but that's just a guess.
0
 
mjburgardAuthor Commented:
Just an update, I installed the plugin just called Store-Locator from this site and it works.  It appears to be using the same base coding or something as Store Locator Plus, because all the locations I had imported into Plus carried over into this one with literally no work on my part.

So it works as a temporary solution (doesn't have as many options, and is not being supported right now) but also might give a little help is solving the issue, since I know at least now that a more basic option works.  I'll see if I can get any thing else figured out, but if this gives anyone any ideas feel free to let me know.  Thanks.
0
 
Jason C. LevineNo oneCommented:
Yeah, I was able to get the base Store Locator Plus working on a temp site with only two locations added in so not sure where the error is.  What other plugins are you running?

using the same base coding or something

Probably the same Google Maps feed.
0
 
mjburgardAuthor Commented:
Advanced YouTube Embed Plugin - Embed Plus  http://www.embedplus.com/

Contact Form 7  http://contactform7.com/

WP-PageNavi  http://wordpress.org/extend/plugins/wp-pagenavi/

WP Simple Paypal Shopping cart  http://www.tipsandtricks-hq.com/wordpress-simple-paypal-shopping-cart-plugin-768

and an under construction plugin, but that was added after we were having problems with the Store Locator Plus, so it couldn't be causing it.
0
 
Jason C. LevineNo oneCommented:
Just for kicks and giggles, can you disable all other plugins except Locator Plus and see if the console throws an error?
0
 
mjburgardAuthor Commented:
Still throws cslmap is undefined error even with everything else off.
0
 
mjburgardAuthor Commented:
Closing this question and just going with the Store-Locator plugin (NOT Store-Locator-Plus, they are different).  I wish I could have a solution for anyone else with this issue but I can't spend more time on it.
0
 
mjburgardAuthor Commented:
No one seems to be able to help and I can't afford to spend more time on this issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 9
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now