Menu

#2949 Error when updating shared notes

v4.3.1
closed-fixed
shared note (1)
5
2021-08-16
2021-08-16
No

Hello
I use the following version in french: PhpGedView 4.3.1 SVN 7304
OS is openSUSE tumbleweed (Linux 64 bits)
I use mariadb (mysql) version mariadb-10.5.10-1.1.x86_64
PHP7 : php7-7.4.22-1.1.x86_64

When Updating a shared note I receive three errors: "Notice: Trying to access array offset on value of type null in /srv/www/htdocs/gedview/edit_interface.php on line 1399 and 1400" ( See attached pdf document). But the note is correctly updated. Seems to be the case for all note updates with 1 or more lines.
Regards
Philippe

1 Attachments

Discussion

  • Gerry Kroll

    Gerry Kroll - 2021-08-16

    Can you provide a sample of the text that generated the error? Presumably your text contains accented French letters.

     
  • Philippe Condé

    Philippe Condé - 2021-08-16

    Hello: I think that is is not only accented characters
    My shared note N16 contains "Ce sont des jumeaux" adding a ending point gives the error on save
    Shared note 13 contains one long line "Ce Mathieu devrait correspondre a celui qui décède en 11 nov 1808 (exactement 81 ans). Cependant un second Mathieu naît le 21 février 1735, ce qui pourrait signifier que celui-ci serait décédé. Il semble étrange cependant qu'il y ait un erreur sur le jour et mois de son anniversaire/naissance" and adding a ending point gives also the error on save
    Shared note 20 contains multiples lines "Hypothèse: Ce couple a les 12 enfants suivants
    Guillaume N 5/8/1724 et D 21/8/1747 (iuvenis? mais 23 ans??)
    Marie Catherine âgée de 2 ans D 6/1/1729
    Elisabeth N 16/5/1728 et D 18/7/1728
    Marie N 15/5/1729
    Mathieu N 8/4/1731
    Anne Catherine 22/11/1732 et D 2/1/1733 (Marie Catherine dans l'acte de décès)
    Marie Catherine 17/6/1734
    Rigald N 14/8/1735
    Dieudonnée N 18/2/1737
    Jeanne N 14/9/1738
    Mathieu Rigald N 13/9/1740 et D 27/9/1740
    Mathieu Joseph N9/8/1742
    Un enfant innocent meurt le 20 sept 1747 (Pas de prénom Fausse Couche?)

    Remarque énormément de morts à Hollogne-aux-pierres fin août - septembre 1747 épidémie de dyssentrie?"
    Adding one letter in the note and same error on save.

    One point for all these shared notes: the error occurs during an update (and the note is every time successfully updated) but creating a new note even with accented French characters doesn't give this error
    The character encoding on my system is UTF-8.

    Regards
    Philippe

     
  • Gerry Kroll

    Gerry Kroll - 2021-08-16
    • assigned_to: Gerry Kroll
     
  • Gerry Kroll

    Gerry Kroll - 2021-08-16

    Thank you. I am able to reproduce the problem. It's related to PHP 7.4 and the way this version of PHP treats variables with a NULL value.

    It doesn't matter how much or how little you change the text of the shared note. Even "no change at all" causes the error. You just have to click the Save button.

     
  • Gerry Kroll

    Gerry Kroll - 2021-08-16

    Unzip and then try the attached edit_interface.php

    Please let me know if it works for you.

     
  • Philippe Condé

    Philippe Condé - 2021-08-16

    Hello Gerry,

    Your fix is working. No more error .
    Many thanks
    Philippe

     
  • Gerry Kroll

    Gerry Kroll - 2021-08-16
    • status: open --> closed-fixed
     
  • Gerry Kroll

    Gerry Kroll - 2021-08-16

    Fixed in SVN 7316.

     

Log in to post a comment.