Solved

Wordpress map plugin error

Posted on 2013-01-09
15
699 Views
Last Modified: 2013-01-30
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
Comment
Question by:mjburgard
  • 9
  • 6
15 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38761125
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
 
LVL 1

Author Comment

by:mjburgard
ID: 38761150
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38761152
No, I meant is it the free or the paid version of it (I fail at clicking)?
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:mjburgard
ID: 38761184
We have the paid version (the pro pack specifically).
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38761193
If you back out to just the free version do the errors persist?
0
 
LVL 1

Author Comment

by:mjburgard
ID: 38761236
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38761333
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
 
LVL 1

Author Comment

by:mjburgard
ID: 38768642
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
 
LVL 1

Author Comment

by:mjburgard
ID: 38768939
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38768945
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
 
LVL 1

Author Comment

by:mjburgard
ID: 38768960
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38768968
Just for kicks and giggles, can you disable all other plugins except Locator Plus and see if the console throws an error?
0
 
LVL 1

Author Comment

by:mjburgard
ID: 38769014
Still throws cslmap is undefined error even with everything else off.
0
 
LVL 1

Accepted Solution

by:
mjburgard earned 0 total points
ID: 38820938
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
 
LVL 1

Author Closing Comment

by:mjburgard
ID: 38834576
No one seems to be able to help and I can't afford to spend more time on this issue.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question