Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Wordpress map plugin error

Posted on 2013-01-09
15
Medium Priority
?
713 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

596 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