Katryne Posted June 4, 2022 Report Share Posted June 4, 2022 Hello ! I have 2 TNG sites, nearly identical. On one of them, the map is not displayed in places edition : the "click to display" button is useless, since the map area is always unfolded, but with an area white and empty. On public side, everything is ok. The only difference between the 2 sites is that the problematic site is private (Family site), and the correct site is public (village site). Host is the same (1&1 -Ionos), though not with the same contract, so maybe not the same server. What should I investigate, please ? Quote Link to comment Share on other sites More sharing options...
theKiwi Posted June 4, 2022 Report Share Posted June 4, 2022 Can you post a link to a page on each of the sites that would show the map - and one shows it and one doesn't? Roger Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 4, 2022 Author Report Share Posted June 4, 2022 I can't show you, Roger : it's on admin side. I can give you access if you wish. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 4, 2022 Report Share Posted June 4, 2022 Katryne, Are you talking about the geocoding map? OSM works very differently than Google Maps. Or are you talking about the map itself not showing? What value do you have in Admin > Setup > Map Settings for Hide Admin Maps to Start: ? Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 4, 2022 Author Report Share Posted June 4, 2022 Ken, it's on admin side : for instance when editing a place and geocoding it, with this kind of url : https://clan.chauvigne.info/admin_editplace.php?ID=3602 On the family site which is problematic, the issue occurs wether the Hide admin maps to start is to yes or to no. Maybe it's a javascript issue because when arriving on this page, the map area is wide open (and empty) and clicking on the button to hide or display is to no effect. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 4, 2022 Report Share Posted June 4, 2022 Katryne, If you specified Hide admin maps to start as Yes, the map should not be visible in Admin > Places until you click the Show / Hide clickable map (Afficher / cacher la carte) Unless Michel knows the answer, you should check that the .js files in the openstreetmap_v13.1.0.8d folder While I use the OpenStreetMap mod to check compatibility of some of my other mods I am not familiar with all the pieces like Erik was, Hopefully Michel can help figure out what is different between your 2 sites. Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 4, 2022 Author Report Share Posted June 4, 2022 Thanks Ken. I installed yesterday the last release of OSM on both sites. And I still get the issue on one site, not the other, while they do have the exact same version of the mod. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 4, 2022 Report Share Posted June 4, 2022 Katryne, thanks for the login credentials to access your site All your places are coded with Place Level 0. Changing it to 3 for Ville/Commune did not change the map not being displayed. Google Chrome Inspect console shows DevTools failed to load source map: Could not load content for chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/scripts/iframe_form_check.map: System error: net::ERR_BLOCKED_BY_CLIENT DevTools failed to load source map: Could not load content for chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/scripts/iframe_form_detection.map: System error: net::ERR_BLOCKED_BY_CLIENT You may need to check with hosting service unless you know that you blocked some IP address or range in your .htaccess file. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 4, 2022 Report Share Posted June 4, 2022 Katryne, If you do a search for "iframe_form_detection.map: System error: net" Google search returns a couple of suggested fixes Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 4, 2022 Author Report Share Posted June 4, 2022 I looked at the .htaccess file, they are very different from a site to the other. On both , I use Bot Trap and Rip Prevention mods. But renaming htaccess or uninstalling any of these mods does not solve the issue. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 4, 2022 Report Share Posted June 4, 2022 Katryne, Is there a reason you do not have the Prolog Mod installed? I do not know anything about the Rip Prevention mod, but the Bot Trap mod only creates Deny from IP address entries in your .htaccess file, so uninstalling the mods would not delete the entries from the .htaccess file if that is where OpenEditionMod servers are located. Sorry, I very rarely use Google Chrome, but the Inspect under SeaMonkey does not allow me to see the errors. Will need to try debugging from my desktop. 4 hours ago, Ken Roy said: DevTools failed to load source map: Could not load content for chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/scripts/iframe_form_detection.map: System error: net::ERR_BLOCKED_BY_CLIENT That simply says that the OpenEditionMaps do not provide source for debugging if I interpret the entries I found in Google Search correctly. Console shows Uncaught SyntaxError: Unexpected identifier in admin_editplace.php: line 158 and admin_editplace.php?ID=3602:282 Uncaught ReferenceError: ol is not defined at loadmap (admin_editplace.php?ID=3602:282:21) at HTMLDivElement.<anonymous> (admin_editplace.php?ID=3602:432:58) at r.complete (jquery-3.4.1.min.js?v=130:2:62031) at c (jquery-3.4.1.min.js?v=130:2:27742) at Object.fireWith [as resolveWith] (jquery-3.4.1.min.js?v=130:2:28487) at u (jquery-3.4.1.min.js?v=130:2:58763) at k.fx.tick (jquery-3.4.1.min.js?v=130:2:63737) at lt (jquery-3.4.1.min.js?v=130:2:58088) Very difficult to read red on a pink background. Not sure I understand what the above uncaught reference error means Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 4, 2022 Author Report Share Posted June 4, 2022 Ken, I am very awkward with the Prolog mod. Michel told me to get it, but I just do not know what to do with it. So I got it it, but did not install it. Should I ? I compared admin_editplace.php : original tng 13.1 and modified par OSM mod. Line 158 is a part about jQuery.ajax, the line url: 'ajx_updateorder.php' It's all I can say. var delmsg = "<?php echo $admtext['text_delete']; ?>"; function addCemLink(cemeteryID) { //ajax to add var place = '<?php echo urlencode($row['place']); ?>'; var params = {cemeteryID:cemeteryID,place:place,action:'addcemlink'}; jQuery.ajax({ url: 'ajx_updateorder.php', data: params, dataType: 'json', success: function(vars){ //add new table row var cemtbl = document.getElementById('cemeteries'); var newtr = cemtbl.insertRow(cemtbl.rows.length); newtr.id = "row_"+cemeteryID; var actionstr = '<a href="#" onclick="return deleteCemLink(\'' + cemeteryID + '\');" title="' + delmsg + '" class="smallicon admin-delete-icon"></a>'; actionstr += '<a href="#" onclick="return copyGeoInfo(\'' + cemeteryID + '\');\"><img src="img/earth.gif" id="geo' + cemeteryID + '" title="<?php echo $admtext['geocopy']; ?>" alt="<?php echo $admtext['geocopy']; ?>" width="15" height="15" class="oldicon"/></a>'; insertCell(newtr,0,"nw",actionstr); insertCell(newtr,1,"nw",vars.location); tnglitbox.remove(); var tds = jQuery('tr#row_'+cemeteryID+' td'); jQuery.each(tds,function(index,item){ item.effect('highlight',{},1400); }) } }); return false; } Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 4, 2022 Report Share Posted June 4, 2022 2 hours ago, Katryne said: I am very awkward with the Prolog mod The Prolog mod has an Edit Option to control what level of errors to report. I think it finds where the PHP error log is located from the php.ini or the new .user.ini override file. If PHP error logging is not enabled automatically when you click the Prolog Mod link in the top line of the Admin screen after installing the mod, you can look at the instructions in the PHP error log article which is also anchored on the Show PHP Error Log on how to setup the PHP error log in php.ini or in the new .user.ini file. Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 5, 2022 Author Report Share Posted June 5, 2022 Hi Ken ! During the morning, I compared the backups of my 2 sites. The php files, not the sql. The village site where all is in order and the family site which meets an issue with the map in admin. The family site is private and is fitted with 2 mods that the other is not : Sosa and Let's see some page (both by Michel). Otherwise, mods are the same. The only notable difference lies with the end of lines for php files : EOL:LF for family site and EOL:CRLF for village site. Otherwhise both site have the same template. Both are hosted at Ionos, though not the same contract, so maybe not the same server. Would the end of line makes the difference ? Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 5, 2022 Author Report Share Posted June 5, 2022 Everything back in order : the last line of the last section of settings was on YES. I mean : I am using TNG offline Shame on me ! Thanks every body, especially Ken. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 5, 2022 Report Share Posted June 5, 2022 Katryne, Glad you found the cause of the problem. Use TNG offline is meant for home computer use only and is difficult to set using the Admin > Setup > General Settings when you do not have internet access and jQuery is required to expand the General Settings. What is why I created the $use TNG Offline mod so that users did not have to manually edit the config.php file when internet is not available. Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 5, 2022 Author Report Share Posted June 5, 2022 Ken, I will be honest : it's my son who found the reason why... Quote Link to comment Share on other sites More sharing options...
stores Posted June 5, 2022 Report Share Posted June 5, 2022 Thank you very much Katryne and thank your son for me as well. I upgraded from TNG v11 to v13 some months back and the one thing that has not worked properly is the maps in OSM. My v13 Online site had all maps where they should be but my v13 Offline site only had maps on the getperson page and in Admin places and i also had no heat maps. Offline i could not edit a place as the map would not show so i have been editing places Online, then backing up the Places table and importing that Offline, which has been a pain. Now, after reading your post and changing the "I am using TNG offline" from Yes to No, my edit maps and heatmaps now work offline as they should. Thank you... Jim Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 5, 2022 Report Share Posted June 5, 2022 1 hour ago, stores said: Now, after reading your post and changing the "I am using TNG offline" from Yes to No, my edit maps and heatmaps now work offline as they should. Let me try to clarify what I am using TNG offline is meant to provide. First it is not meant to be enabled on local computers unless your Internet access is down or not available. That is the purpose of my $Use TNG Offline mod which you can install when you lose Internet access TNG uses jQuery from code.jquery.com to provide the toggles on the public side as well as the Admin Setup > General Settings page for example. So that site is not available when the Internet is down. Darrin added the "I am using TNG offline" option to TNG on my request so that I could continue to use my local computer to work on my site when my internet service is not available. The option bypasses any internet access calls when it is enabled. Enabling that option means jQuery is used locally and maps are not available because they come from the Internet The option is useful when you take a laptop to a family reunion at a park or some other location that does not have internet access so you can show your local web site to relatives Hope that helps clarify what the I am using TNG offline is meant to provide. It is not meant to be enable just because you are on a local computer Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 5, 2022 Report Share Posted June 5, 2022 I have updated my $use TNG Offline mod to include the above explanation on why I developed the mod, which should only be installed via the Mod Manager when you lose internet connectivity and want to work offline without having to manually modify your config.php to find the option. Quote Link to comment Share on other sites More sharing options...
Katryne Posted June 5, 2022 Author Report Share Posted June 5, 2022 Well, I should never need that option : I never run my TNG site locally. I stopped running sites on my computer years ago. Even my test sites are online, on my shared hosting. Thanks for the explanations. Is there a way to hide the option button in the settings ? Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 5, 2022 Report Share Posted June 5, 2022 (edited) 1 hour ago, Katryne said: Is there a way to hide the option button in the settings ? No, but I will send Darrin an update to the Help screen to clarify why the option is there and maybe link to my mod to toggle the option On on install and Off on uninstall. Edited June 5, 2022 by Ken Roy fix grammar Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.