Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Google Map Places libraries work on locaclhost not on production server

Artens:

I have a problem with google map library "places".

I use an internal function to put javascript source on my template pages, it's like that : " $this -> output -> addJsSource('http://ift.tt/2j2KCmg'); "

It's the exact same file on local host and on the Production Server.

When I use it on my local host, there is no problem, the script is loading well in my page and I can do research.

Here is the proof of the good loading :

Good load of library places

After I put the same file on the Production server, and I load the exact same page it doesn't work and say :

"TypeError: google.maps.places is undefined"

because it doesn't find the library places.

Production load of library places

So here is my question, how is it possible that it's work on my localhost but not on the production server ?

Here is the display of each site :

Local host, the search box is in the right place and work fine : localhost display

Producton server, the search box is not at the right place and the search doesn't work at all, I had to go manually in Paris to look at it : production display

Thanks for your answer.

Artens.



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Google Map Places libraries work on locaclhost not on production server

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×