This page didn't load Google Maps correctly. See the JavaScript console for technical details.
js?key=AIzaSyAai1kJAVMjvOAuiM1ZKFX5A87LwnwMj-4&sensor=false&libraries=places:34 Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: http://gsx1400owners.org/forum/index.php?action=profile;area=forumprofile
_.lb @ js?key=AIzaSyAai1kJAVMjvOAuiM1ZKFX5A87LwnwMj-4&sensor=false&libraries=places:34
(anonymous) @ common.js:54
(anonymous) @ common.js:196
c @ common.js:50
(anonymous) @ AuthenticationService.Authenticate?1shttp%3A%2F%2Fgsx1400owners.org%2Fforum%2Findex.php%3Faction%3D…:1
util.js:210 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
Member's viewing others (and subsequently their own) profile to see their pin location - NOT working.
...
Any idea what may be going wrong?
<dd>', $context['member']['last_login'], '</dd>
</dl>';
<dd>', $context['member']['last_login'], '</dd>';
if (!empty($modSettings['googleMap_Enable']) && allowedTo('googleMap_view'))
{
if (!empty($context['member']['googleMap']['longitude']) && !empty($context['member']['googleMap']['latitude']))
{
echo '
</dl>
<hr />
<br />
<dl>
<dt><strong>' . $txt['googleMap_Where'] . ' ' . (preg_match('~\s(and|&|&)\s~i', $context['member']['name']) ? $txt['googleMap_Whereare'] : $txt['googleMap_Whereis']) . ' ' . $context['member']['name'] . ':</strong></dt>
<dd>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>
<div id="map_canvas" style="width: 100%; height: 350px; color: #000000;"></div>
<input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
<input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
<input type="hidden" name="pindate" size="50" value="', $context['member']['googleMap']['pindate'], '" />
<script type="text/javascript"><!-- // --><', '', '![CDATA[
var latlng = new google.maps.LatLng(', $context['member']['googleMap']['latitude'], ', ', $context['member']['googleMap']['longitude'], ');
var options = {
zoom: 14,
center: latlng,
scrollwheel: false,
mapTypeId: google.maps.MapTypeId.HYBRID,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
},
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.DEFAULT
},
};
map = new google.maps.Map(document.getElementById("map_canvas"), options);
var marker = new google.maps.Marker({
position: latlng,
map: map
});
// ]]', '', '></script>
</dd>';
}
}
echo '
</dl>';
"Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required"
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>
8) the script in that last message as been corrected with the last version of the MOD ...What is the latest version of the mod?
So removing it doesn't help?
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . ></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '"></script>
</div>
<span class="botslice"><span></span></span>
</div>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?key=##################&sensor=false"></script>
<script type="text/javascript" src="http://jular.ca/simplementvr.com/Themes/default/scripts/markerclusterer_compiled.js"></script>
<script type="text/javascript" src="http://jular.ca/testforumclone/index.php?action=googlemap;sa=.js;count=19"></script><table cellpadding="7" cellspacing="0" id="footermenu">
BTW .. ... i did not have to touch the whole code in the in the Profil.template.php as proposed by GL700Wing , it was already done with the last version on the board. AND i can't tell about the Note Pad MOD .. i do not use it in my forum !The problem I described *specifically* relates to the use of these two mods together - the bug exists in the version 3.0 of the Google Member Map mod but if you don't use Member Notepad you won't have the problem!
The problem I described *specifically* relates to the use of these two mods together - the bug exists in the version 3.0 of the Google Member Map mod but if you don't use Member Notepad you won't have the problem!
http://www.---.com/index.php?
8: Undefined variable: modSettings
File: /home/--------/htdocs/Themes/default/TPsubs.template.php(127) : eval()'d code
Line: 42
http://www.xxx.com/index.php?
8: Undefined variable: modSettings
File: /home/xxx/user/htdocs/Themes/default/languages/GoogleMap.english.php (tp_below sub template - eval?)
Line: 42
$txt['googleMap_DefaultZoom'] = 'The default Zoom Level';
that is from a different mod, you would need to post in that mods support topic.was the response i got when posting in their mod support.http://www.simplemachines.org/community/index.php?topic=27642.msg3918596#msg3918596 (http://www.simplemachines.org/community/index.php?topic=27642.msg3918596#msg3918596)
Dan if you have a look back at the previous page of this thread I had the same error and it came down to not having the correct URLs authorised. I ended up doing all the variations on mine (i.e whole domain AND forum url) and it now works fine.I read (skimmed) your posts and did not see where to authorize anything. I now suppose it is somewhere in getting the api key.
Anyway there is some more discussion on the matter there which will likely be of assistance.
Any errors in javascript error log
Are you on https?
<script type="text/javascript" src="http://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>
// Load all of the data for these 'pined' members
loadMemberData($temp);
foreach ($temp as $v)
loadMemberContext($v);
unset($temp);
while ($row = $smcFunc['db_fetch_assoc']($request)){
$ID = $row['id_member'];
$realName = $row['real_name'];
$longitude = $row['longitude'];
$latitude = $row['latitude'];
$gender = $row['gender'];
html = markers[i].childNodes[0].nodeValue;
html = markers[i].getAttribute("html");
scrollwheel: true,
Do you have api key setup? Take a screenshot or provide link.What do you mean about this?
#mapWindow { margin-bottom: 10px; height: 512px; }
#map_leftSidebar { white-space: nowrap; display: inline-block; padding-right: 10px; }
#map_rightSidebar { display: inline-block; white-space: nowrap; padding-left: 10px; }
#map_main { display: inline-block; width: 80%; }
#map { height: 500px; }
.mapFloatingbox { display: inline-block; padding: 5px; }
<?php
// Google Member Maps Modification
function template_map()
{
global $context, $modSettings, $scripturl, $txt, $settings;
if (!empty($modSettings['googleMap_Enable']))
{
echo '
<div id="main_container">
<div class="cat_bar">
<h3 class="catbg">', $txt['googleMap'], '</h3>
</div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">';
// Show a left sidebar?
if ((!empty($modSettings['googleMap_Sidebar'])) && $modSettings['googleMap_Sidebar'] == 'left')
{
echo '
<div id="map_leftSidebar">
<div class="centertext"><em><strong>', $txt['googleMap_Pinned'], '</strong></em></div>
<hr style="width: 94%;" />
<div id="googleSidebar" class="googleMap_Sidebar" ></div>';
if (!empty($modSettings['googleMap_BoldMember']))
echo '
<div class="centertext googleMap_Legend">
<strong>' . $txt['googleMap_bold'] . '</strong> ' . $txt['googleMap_OnMove'] . '
</div>';
echo '
</div>';
}
// our map
echo '
<div id="map_main">
<div id="mapWindow">
<div id="map"></div>
<div id="googleMapReset" onclick="resetMap(); return false;" title="'. $txt['googleMap_Reset'] . '"></div>
</div>';
// Set the text for the number of pins we are, or can, show
if ($context['total_pins'] >= $modSettings['googleMap_PinNumber'] && $modSettings['googleMap_PinNumber'] != 0)
echo
sprintf($txt['googleMap_Thereare'], '<strong>(' . $modSettings['googleMap_PinNumber'] . '+)</strong>');
else
echo
sprintf($txt['googleMap_Thereare'], '<strong>(' . $context['total_pins'] . ')</strong>');
echo '
</div>';
// Show a right sidebar?
if (!empty($modSettings['googleMap_Sidebar']) && $modSettings['googleMap_Sidebar'] == 'right')
{
echo '
<div id="map_rightSidebar">
<div class="centertext"><em><strong>', $txt['googleMap_Pinned'], '</strong></em></div>
<hr style="width: 94%;" />
<div id="googleSidebar" class="googleMap_Sidebar"></div>';
if (!empty($modSettings['googleMap_BoldMember']))
echo '
<div class="centertext googleMap_Legend">
<strong>' . $txt['googleMap_bold'] . '</strong> ' . $txt['googleMap_OnMove'] . '
</div>';
echo '
</div>';
}
// Show a legend?
if (!empty($modSettings['googleMap_EnableLegend']))
{
echo '
<div class="cat_bar">
<h4 class="catbg"><span class="align_left">', $txt['googleMap_Legend'], '</span></h4>
</div>
<div class="centertext">';
if (empty($modSettings['googleMap_PinGender']))
echo '
<div class="mapFloatingbox"><img src="https://chart.apis.google.com/chart', $modSettings['npin'], '" alt="" />', $txt['googleMap_MemberPin'], '</div>';
else
echo '
<div class="mapFloatingbox"><img src="https://chart.apis.google.com/chart', $modSettings['npin'], '" alt="" />', $txt['googleMap_AndrogynyPin'], '</div>
<div class="mapFloatingbox"><img src="https://chart.apis.google.com/chart', $modSettings['mpin'], '" alt="" />', $txt['googleMap_MalePin'], '</div>
<div class="mapFloatingbox"><img src="https://chart.apis.google.com/chart', $modSettings['fpin'], '" alt="" />', $txt['googleMap_FemalePin'], '</div>';
if (!empty($modSettings['googleMap_EnableClusterer']) && ($context['total_pins'] > (!empty($modSettings['googleMap_MinMarkertoCluster']) ? $modSettings['googleMap_MinMarkertoCluster'] : 0)))
{
$codebase = 'https://raw.githubusercontent.com/googlemaps/v3-utility-library/master/markerclusterer';
$chartbase = "https://chart.apis.google.com/chart";
switch ($modSettings['cpin'])
{
case 1:
$pinsrc = $codebase . '/images/m1.png';
break;
case 2:
$pinsrc = $codebase . '/images/people35.png';
break;
case 3:
$pinsrc = $codebase . '/images/conv30.png';
break;
default:
$pinsrc = $chartbase . $modSettings['cpin'];
}
echo '
<div class="mapFloatingbox"><img src="' . $pinsrc . '" height=37 />', $txt['googleMap_GroupOfPins'], '</div>';
}
echo '
</div>';
}
echo '
<div class="centertext">';
// If they can place a pin, give them a hint
if (allowedTo('googleMap_place'))
echo '
<a href="', $scripturl, '?action=profile;area=forumprofile">', $txt['googleMap_AddPinNote'], '</a>
';
// Google earth klm output enabled?
if (!empty($modSettings['googleMap_KMLoutput_enable']))
echo '
<br><a href="', $scripturl, '?action=.kml"><img src="', $settings['default_theme_url'], '/images/google_earth_feed.gif" border="0" alt="" /></a>
';
echo '
</div>';
// Close it up jim
echo '
</div>
<span class="botslice"><span></span></span>
</div>
</div>';
// Load the scripts so we can render the map
echo '
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=' . $modSettings['googleMap_Key'] . '&sensor=false"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/markerclusterer_compiled.js"></script>
<script type="text/javascript" src="', $scripturl, '?action=googlemap;sa=.js;count='. $context['total_pins'] .'"></script>';
}
}
?>
.googleMap img.avatar { max-width: 240px; max-height: 240px; }
<div class="floatright" style="height:' . $div_height . 'px">' . $marker['avatar']['image'] . '<br /></div>';
to <div class="floatright" style="max-height:' . $div_height . 'px">' . $marker['avatar']['image'] . '<br /></div>';
// Show the PM tag
$datablurb .= '
<li>
<a href="' . $scripturl . '?action=pm;sa=send;u=' . $marker['id'] . '">';
$datablurb .= $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($marker['online']['is_online'] ? 'on' : 'off') . '.gif" height="16" border="0" />' : ($marker['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']);
$datablurb .= '</a>
</li>
but no pins show on the mapThe pins do show on the map, but apparently all appear at 0.0S 0.0E somewhere off the coast of Africa. Are the coordinates still correct in the database? (Would be surprised if not, but asking anyway)
Yes the coordinates appear to be correct, longitude in the -84 to -77 and latitude 26-40 range which is continental USA, certainly not the Gulf of Guinea. I think that spot where the pins display is probably lat 0 and long 0but no pins show on the mapThe pins do show on the map, but apparently all appear at 0.0S 0.0E somewhere off the coast of Africa. Are the coordinates still correct in the database? (Would be surprised if not, but asking anyway)
Unable to read the map pin data, result was - 500I have checked in a number of profiles and the pins are showing ok.
14. Execute Modification ./Themes/default/languages/Who.english-utf8.php Test failed
1. Replace ./Themes/default/languages/Who.english-utf8.php Test failed
'website' => array(
'title' => $profile['website_title'],
'url' => $profile['website_url'],
),
'googleMap' => array(
'latitude' => !isset($profile['latitude']) ? 0 : (float) $profile['latitude'],
'longitude' => !isset($profile['longitude']) ? 0 : (float) $profile['longitude'],
'pindate' => !isset($profile['pindate']) ? '' : $profile['pindate'],
),
'website' => array(
'title' => $profile['website_title'],
'url' => $profile['website_url'],
),
I would check in firefox or chrome developer tools and try to trace the remote 500 call and see what the true error code is.I have the same and @vbgamer45 suggested the above, but I can't work out how to use the tools.
Did you problem just pop up after having worked before? I kinda associate mine to upgrading from 2.0.13 to 2.0.15 but that may be mere coincidenceI had just upgraded from 2.0.14 to 2.0.15 and I have discovered the host did a server upgrade on the same day, the map was first reported to be "not working" the next day.
Interesting, I have taken a backup of the files and database and installed them on a different hosts server.Finally tracked it down, when the host did the server upgrade somehow my PHP INI memory was reduced to 32M
It works perfectly without any errors, all pins showing ok.
In my case at least it has to do with the server, but no idea what at present. ??? :-\
HP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 79 bytes) in................Sadly it doesn't seem to be the same problem that you have.
mem.buddy_list, mg.online_color AS member_group_color, IFNULL(mg.group_name, {string:blank_string}) AS member_group,
Places to check first enable the php error log in the php.ini
You can set a file for it to write to.
You can also check your apache error log but I would do the php one first.
XML Parsing Error: no root element found
Location: http://mysite/board/index.php?action=googlemap;sa=.xml
Line Number 1, Column 1:
index.php:1:1
TypeError: xmldoc is null
[Learn More]
index.php:146:6
Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
Enough to take your significant other out for Dinner on Valentines day!
Nibogo is the hero on this one. He was able to get my members map working. Hopefully he can fill you in on exactly what was going on, but it had something to do with the member blurbs for the pins breaking it.
On a side note, where could I go edit the code to remove everything in those blurbs other than the username and link to profile? They never did format well. Stuff on top of stuff.
I just LOVE this mod. It's one of my favourite enhancements.
Is a 2.1 version likely?
When SMF 2.1 goes final.
Yes it is.
What does the error line look like?
googleMap_view
Strange do you have this line in your googlemap.english.php fileCode: [Select]googleMap_view
$txt['cannot_googleMap_view'] = 'Sorry, you are not allowed to view the Member Map.';
I wanted to try this out but my Load.php has no such lines of codeWe have the same problem, in our case it seems to be the "additional membergroups" mod that has changed 2 of the lines in Load.php that this mod also wants to alter.Code: [Select]mem.buddy_list, mg.online_color AS member_group_color, IFNULL(mg.group_name, {string:blank_string}) AS member_group,
I can't find part of a query in ./Sources/Load.php that looks like that at all.
any idea why my Load.php is so different ?
<operation>
<search position="replace"><![CDATA[
mem.buddy_list, mg.online_color AS member_group_color, IFNULL(mg.group_name, {string:blank_string}) AS member_group,]]></search>
<add><![CDATA[
mem.buddy_list, mem.latitude, mem.longitude, mem.pindate, mg.online_color AS member_group_color, IFNULL(mg.group_name, {string:blank_string}) AS member_group,]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
mem.notify_types, lo.url, mg.online_color AS member_group_color, IFNULL(mg.group_name, {string:blank_string}) AS member_group,]]></search>
<add><![CDATA[
mem.notify_types, mem.latitude, mem.longitude, mem.pindate, lo.url, mg.online_color AS member_group_color, IFNULL(mg.group_name, {string:blank_string}) AS member_group,]]></add>
</operation>
to this: <operation>
<search position="before"><![CDATA[
mem.karma_good, mem.id_post_group, mem.karma_bad, mem.lngfile, mem.id_group, mem.time_offset, mem.show_online,]]></search>
<add><![CDATA[
mem.latitude, mem.longitude, mem.pindate,]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
mem.notify_types,]]></search>
<add><![CDATA[
mem.notify_types, mem.latitude, mem.longitude, mem.pindate,]]></add>
</operation>
still work? (it does not error on install for us)Google Maps JavaScript API error: DeletedApiProjectMapError
You have to paid google api account I believe now for the api key to work.
Check the javascript console log in your browserOk thanks! Have to have a billing account!