Forum
Welcome, Guest

Map not showing on live site. PLEASE HELP!!
(1 viewing) (1) Guest
Ask all your version 2.0 questions here.
  • Page:
  • 1

TOPIC: Map not showing on live site. PLEASE HELP!!

Map not showing on live site. PLEASE HELP!! 2 years, 2 months ago #817

  • tommy_ly
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi guys,

Really like the plugin but I've hit a major wall after transferring my site on to the server.

The problem is the map is not showing. Instead I get this error message.
"GoogleMapAPI:createMarkerIcon: Error reading image: www.bikesportz.com.au/components/com_sobi2/plugins/google_axresults/GoogleMapsIcons/icon_big1.png"

Please check out this link to see the problem in action.
http://www.bikesportz.com.au/index.php/find-a-dealer
(Just pick any state in the search to see some search results)

Everything works fine when I tested the site on my localhost.

I've searched through the forum threads and tried changing the write permissions to 755 or 555 but that hasn't helped.

I would really appreciate some help with this.

Thanks!

Re:Map not showing on live site. PLEASE HELP!! 2 years, 2 months ago #818

  • tommy_ly
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Alright, after doing some googling, I've figured out how to fix it.

In the GoogleMapAPI.class.php script, change these lines

$_icon_image_path = strpos($iconImage,'http') === 0 ? $iconImage : $_SERVER['DOCUMENT_ROOT'] . $iconImage;


to

$_icon_image_path = strpos($iconImage,'http') === 0 ?  $_SERVER['DOCUMENT_ROOT'] . 
substr($iconImage,strlen($_SERVER['SERVER_NAME']) + 7) : $_SERVER['DOCUMENT_ROOT'] . $iconImage;


Then do the same for the $_shadow_image_path as well.

This worked for me

Re:Map not showing on live site. PLEASE HELP!! 2 years, 2 months ago #824

  • jerry
  • OFFLINE
  • Moderator
  • Posts: 407
Sorry you had trouble. Not sure what happened there. We have many of these in production and no one has ever had to change the API class before.

Thank you for the follow up post with a solution!

Regards,

Jerry
  • Page:
  • 1
Moderators: jasper, nicholas, henry, jerry
Time to create page: 0.69 seconds

Login