Phoca Maps and SSL with Chrome

Phoca Maps - displaying maps in Joomla! CMS
wittiko
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 11 Apr 2013, 12:15

Phoca Maps and SSL with Chrome

Post by wittiko »

I tried different Bowsers and saw that Google Chrome was blocking a non secure script.
The result is that the maps are not displayed.
After i looked a bit in the code i found the problem:

In the file helpers/phocamapsmap.php:

Code: Select all

function loadAPI( $src = 'jsapi') {
		$document	= & JFactory::getDocument();
		$scriptLink	= 'http://www.google.com/'.$src;
		$document->addScript($scriptLink);
	}
This fixed coded http link to the script is causing that the map is not displayed. I changed it to https on my server and it is working now. Can someone update the package that it is working with https? I think i'm not the only one who has problems like this.

edit:
Versions: Phoca Maps 3 with Joomla 3
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Maps and SSL with Chrome

Post by Jan »

Hi, thank you for the info, I will add there new parameter.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Maps and SSL with Chrome

Post by Jan »

Added in 3.0.0 Beta
If you find Phoca extensions useful, please support the project
Post Reply