Search
Forums
Kiwitrees on Twitter
    Tags

    autocomplete, fixing errors, hover, source, 3.3.3, kiwitrees-nova, styles, random_media, divorce, php 7, .mo, latest version, fatal error, advanced, media, fancy image bar, resources, github, name, chart, lists, configure, icons, emigration, colors theme, set link, simpl_pages, message contactform, installation, release, responsive menus, widget, ASSO, sanity, Georgian, re-order, prison, dates, users, simpl_research, advent, surname, HTML block, server, index, updates, admin, illegitimate, dropbox. token, Php 7.1, cousins, 2.0, 3.1.1, husband, slideshow, future, census assistant, calendar, spouse, bug

    #3590
    kiwi
    kiwi
    Keymaster

    1655 posts

    I can’t agree with your results I’m afraid.

    Also, the error message is clearly ONLY related to NOTES. The error message refers to “Fatal error: Cannot use string offset as an array in /../webtrees/includes/functions/functions_print_facts.php on line 950” That part of the code only deals with the display of notes.

    In my testing, having multiple restrictions (global plus fact level) does not matter. That is also what the code tells me. Restrictions are only read in a hierarchy – first look at fact level. If restriction is found use that and ignore all others. That is necessary to allow you to set a global level, then over-ride it at a higher level for a specific fact.

    But if you add two notes to any fact (not just research task) AND add a local (fact) restriction then you will generate the error.
    The error does not happen if there is ONLY a global restriction, nor if there is no global restriction.

    So in summary, the error occurs for any fact that has two or more notes, and a local (fact level) restriction.

    I will add this to the bug list and fix it when and if I can.

    Nigel
    My personal kiwitrees site is www.our-families.info