Search Forums
Kiwitrees on Twitter

    add_asso_facts, mobile, CHR, individual resource, 3.2.0, 1939 Register, translation, Administration, sanity checker, F.A.B., 7.1, chart, updates, .po, Support/Bug Reporting, ID notes, button, prison, php 5.6, style, contact links, simpl_research, default individual, merge, repo, children, clippings cart, date, multiple marriages, kiwitrees-nova, logout, edit menu, married, widget, internal messaging, Advanced search, image, googlemaps, fixing errors, nickname, flags, blocks, validation, lists, person, googlemap, order, users, family, reports, re-order, MAC, beta, calendar, footer, dead, fatal error, FAQ, blank, simpl_pages



    4 posts

    Hi Nigel,
    May be you can help me on that point :
    I had a look on functions_print_facts.php and I tried do do that (see below) wich works on Webtrees

    foreach ($controller->record->getFacts() as $fact) {
    if($fact->getTag() == ‘BIRT’) {
    preg_match_all(‘/\n4 (LATI) (.+)/’, $fact->getGedcom(), $match, PREG_SET_ORDER);
    foreach ($matches as $match) {
    if (preg_match(‘/\n4 LATI (.+)/’, $fact->getGedcomRecord())) {
    $Birth_Lat = $match[2];

    echo $match[2];*/


    On Kiwitrees, I obtain an error :
    ERROR 8: Undefined variable: matches

    I tried to change with that line : preg_match_all(‘/\n4 LATI (.+)/’, $fact->getGedcomRecord(), $match, PREG_SET_ORDER);
    But no succes.
    Do you have an idea on what part of code I’ve to change ?
    Thanks for your help