Jump to content
TNG Community
Paul Howes

OSM Mod update failed - can someone help pls?

Recommended Posts

Paul Howes

Hi.  Just had Darrin update my TNG version to the latest.  Maps stopped working.  So I thought I would update from version 12.3 to 12.5.  I deleted the mod and the old folder.  Downloaded the new version.  Uploaded cfg file and OpenStreetMap.5 folder to Mods folder.

Ran Mod Manager and got a Cannot install message.  Can someone please help?  What am I doing wrong/missing?  Here's my full error message:

Cannot install

Author: Erik Hoppe

This mod creates OSM maps if you have no GoogleMap API key.
Note the Edit Options after install.

Updates from v12.0.0.4:
* Some map-settings showed blank map but all the rest - Thanks to Patricia Hobbs for the alert.
* Zoom > 17 (max f Satellite) zoomed out when toggled.

Please report errors using the Mod Support link at the Wiki page.
Support this mod by adding your site to the Site list at the Wiki page!
Thank You,
Erik

 
flags:
@  optional
^  (provisional) must be available
~  protected
 
line 27: %copyfile: osmmaplib.php  not copied
Source: mods/OpenStreetMap.5/osmmaplib.php
line 28: %copyfile: osmmaplib2.php  not copied
Source: mods/OpenStreetMap.5/osmmaplib2.php
line 29: %copyfile: osmmapdrawthemap.php  not copied
Source: mods/OpenStreetMap.5/osmmapdrawthemap.php
line 30: %copyfile: heatmap_OSM.php  not copied
Source: mods/OpenStreetMap.5/heatmap_OSM.php
line 31: %copyfile: osm_settings.php  not copied
Source: mods/OpenStreetMap.5/osm_settings.php
line 32: %copyfile: osmmapswitch.js  not copied
Source: mods/OpenStreetMap.5/osmmapswitch.js
line 33: %copyfile2: css/ol.css  not copied
Source: mods/OpenStreetMap.5/ol.css
line 34: %copyfile2: css/ol-geocoder.min.css  not copied
Source: mods/OpenStreetMap.5/ol-geocoder.min.css
line 35: %copyfile2: css/ol-popup.css  not copied
Source: mods/OpenStreetMap.5/ol-popup.css
line 36: %copyfile2: js/ol.js  not copied
Source: mods/OpenStreetMap.5/ol.js
line 37: %copyfile2: js/ol-geocoder.js  not copied
Source: mods/OpenStreetMap.5/ol-geocoder.js
line 38: %copyfile2: js/ol-popup.js  not copied
Source: mods/OpenStreetMap.5/ol-popup.js
line 39: %copyfile2: img/osmpin.png  not copied
Source: mods/OpenStreetMap.5/osmpin.png
line 40: %copyfile2: img/osmmap.gif  not copied
Source: mods/OpenStreetMap.5/osmmap.gif
line 41: %copyfile2: img/osmsatel.gif  not copied
Source: mods/OpenStreetMap.5/osmsatel.gif
line 50: %target:genlib.php% verified
line 51: %location:% #1 not installed
line 66: %location:% #2 not installed
line 81: %location:% #3 not installed
line 102: %target:personlib.php% verified
line 103: %location:% #1 Bad target
line 124: %target:admin_main.php% verified
line 125: %location:% #1 not installed
line 150: %target:admin_editplace.php% verified
line 151: %location:% #1 not installed
line 178: %location:% #2 not installed
line 201: %location:% #3 not installed
line 216: %location:% #4 not installed
line 237: %location:% #5 not installed
line 269: %location:% #6 not installed
line 295: %target:admin_editmedia.php% verified
line 296: %location:% #1 not installed
line 323: %location:% #2 not installed
line 357: %location:% #3 not installed
line 389: %location:% #4 not installed
line 417: %target:admin_newplace.php% verified
line 418: %location:% #1 not installed
line 445: %location:% #2 not installed
line 461: %location:% #3 not installed
line 483: %location:% #4 not installed
line 498: %location:% #5 not installed
line 531: %location:% #6 not installed
line 557: %target:admin_editcemetery.php% verified
line 558: %location:% #1 not installed
line 585: %location:% #2 not installed
line 608: %location:% #3 not installed
line 623: %location:% #4 not installed
line 655: %location:% #5 not installed
line 683: %target:admin_newcemetery.php% verified
line 684: %location:% #1 not installed
line 711: %location:% #2 not installed
line 733: %location:% #3 not installed
line 748: %location:% #4 not installed
line 781: %location:% #5 not installed
line 809: %target:admin_places.php% verified
line 810: %location:% #1 not installed
line 826: %location:% #2 not installed
line 849: %location:% #3 not installed
line 872: %location:% #4 not installed
line 889: %location:% #5 not installed
line 913: %target:getperson.php% verified
line 914: %location:% #1 not installed
line 929: %location:% #2 not installed
line 944: %location:% #3 not installed
line 960: %location:% #4 not installed
line 975: %location:% #5 not installed
line 992: %location:% #6 not installed
line 1009: %location:% #7 not installed
line 1026: %location:% #8 not installed
line 1043: %location:% #9 not installed
line 1068: %target:placesearch.php% verified
line 1069: %location:% #1 not installed
line 1085: %location:% #2 not installed
line 1100: %location:% #3 not installed
line 1123: %target:headstones.php% verified
line 1124: %location:% #1 not installed
line 1140: %location:% #2 not installed
line 1166: %target:showmap.php% verified
line 1167: %location:% #1 not installed
line 1186: %location:% #2 not installed
line 1202: %location:% #3 not installed
line 1228: %target:heatmap.php% verified
line 1229: %location:% #1 not installed
line 1263: %target:@osm_settings.php% file missing (optional) will ignore

  • code modifications specified: 54; modified: 0
  • file copies specified: 15; copied: 0
  • new files specified: 0; created: 0
  • new folders specified: 0; created: 0
  • errors: 1

 MANY, many thanks indeed to anyone who can help me figure it out.  
Paul

Share this post


Link to post
Share on other sites
bhemph

Paul, what does the setEvent function have for the if with map things on that line in your personlib.php file?

Share this post


Link to post
Share on other sites
Paul Howes

Hello bhemph.  Thank you for responding.  Is this the bit you mean?

    if( !empty($map['key']) && !empty($data['place']) && empty($data['nomap'] )) {
        global $locations2map, $l2mCount, $places_table, $tree, $pinplacelevel0, $pinplacelevel1, $pinplacelevel2, $pinplacelevel3, $pinplacelevel4, $pinplacelevel5, $pinplacelevel6;

        $treestr = $tngconfig['places1tree'] ? "" : " gedcom = '$tree' AND";
        $safeplace = tng_real_escape_string($data['place']);
        $query = "SELECT place,placelevel,latitude,longitude,zoom,notes
            FROM $places_table WHERE$treestr $places_table.place = '$safeplace' and (latitude is not null and latitude != '') and (longitude is not null and longitude != '')";
        $custevents = tng_query($query);

I could dump the whole file here if it would help!  (I'm more of a genealogist than a php expert)

Paul

Share this post


Link to post
Share on other sites
Ken Roy

Paul,

Maybe you should attach your version of personlib.php

Share this post


Link to post
Share on other sites
Ken Roy

It looks like Darrin might have installed the version of personlib.php where we provided corrections for notices on undefined variables and indexes, rather than the TNG V12.2 code. 

Try replacing the personlib.php module with the TNG v12.2 full install version.

Share this post


Link to post
Share on other sites
Paul Howes

Thank you, Ken.  Attached

Paul

personlib.php

Share this post


Link to post
Share on other sites
Ken Roy

Yup, that is the TNG 12.2.1 version of the personlib.php module.

Try the attached mod, which has not yet been published because some other modules might change between now and the release date of the code.

 

 

Edited by Ken Roy
delete mod TNG v12.2.1 mob version

Share this post


Link to post
Share on other sites
Paul Howes

Thanks from upstate, Ken.  Is that file all I need?

Paul

Share this post


Link to post
Share on other sites
Ken Roy

Paul,

You need to downloaded OpenStreetMap v12.0.0.5 from the TNG Wiki

 

Share this post


Link to post
Share on other sites
Paul Howes

OK - thank you.  I did that yesterday, of course.   I'll have another crack at it.  Really appreciate your help

 

Share this post


Link to post
Share on other sites
Ken Roy

You need to use the cfg file that I attached with the folder from the originally downloaded mod

Share this post


Link to post
Share on other sites
Paul Howes

OK, Ken.  Yes, that's what I did.  However,, this time I got a different error.  I could list the whole output here if you want, but this seems to be the operative section:

line 50: %target:genlib.php% verified

line 51: %location:% #1 not installed
line 66: %location:% #2 not installed
line 81: %location:% #3 Bad target

line 102: %target:personlib.php% verified

line 103: %location:% #1 not installed

Any thoughts now.  Sorry to be such a nuisance.  I feel rather helpless!

Paul

Share this post


Link to post
Share on other sites
Paul Howes

In case it helps, here's the genlib file from my site this time!

Paul

genlib.php

Share this post


Link to post
Share on other sites
Ken Roy

Paul,

Rename the personlib.php file that is currently in your TNG root folder and try using the attached personlib.php from TNG 12.2 with the originally downloaded v12.0.0.5 version of the OpenStreetMaps mod

personlib.php

Share this post


Link to post
Share on other sites
Paul Howes

Dear Ken:
AFAIAC, you walk on water!  My maps now appear to be working again.
I've no idea how I got into this pickle or what you did to get me out of it, but I am VERY appreciative.

Thank you so very much.

Paul

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×