Menu

French fatal error

CyrilV
2005-07-29
2013-05-29
  • CyrilV

    CyrilV - 2005-07-29

    I get the following message "Fatal error: Call to undefined function: gregoriantojd() in /home/e-smith/files/ibays/genealogie/html/includes/functions_date.php on line 565" when I am using the french langage but everything is ok when using the english interface.

    Any idea to correct that?

    Thanks

    Cyril VIGNET

     
    • Christophe B.

      Christophe B. - 2005-08-04

      Hi Cyril,

      what is you PGV version ?
      On which page do you see this error message ?

       
    • Gerry Kroll

      Gerry Kroll - 2005-08-04

      This is caused by a PHP configuration error.  Your PHP installation doesn't have all of the date conversion routines installed.

      The problem occurs when your GEDCOM file includes dates that occurred during the French revolution.  You will recall that at that time, Robespierre and his compatriots tried to create a new calendar system that fell flat on its face.

      PGV is trying to display French dates from the Revolutionary period in the Revolutionary calendar as well as in the calendar you know so well.

      For example, my GEDCOM contains a date 1797.10.06, which displays as
      Ven 13 Octobre 1797  22 Vendemiaire An 6
      when I fire up French.

      Here's another example for 1805.04.26:
      Ven 26 Avril 1805  6 Floreal An 13

       
    • John Finlay

      John Finlay - 2005-08-04

      I've updated the functions_date.php file so that if you don't have the necessary functions configured in PHP then PGV won't attempt to do the date conversion.  You can download this updated file here:
      http://cvs.sourceforge.net/viewcvs.py/phpgedview/phpGedView/includes/functions_date.php?rev=1.8&view=auto

      --John

       
    • Gerry Kroll

      Gerry Kroll - 2005-08-04

      Try editing the language configuration file for French.

      Currently, the French date format is set to "D j F Y", which results in the display shown, also possibly producing the fatal error when the date conversion libraries are incomplete.

      If you set the date format to "D M Y", the resultant display will no longer use the French Revolutionary format, and all dates will look similar to "13 Octobre 1797".

      The "D M Y" format uses standard date libraries, so you shouldn't get the fatal error message.

      I'll do this on my site:  I don't have any ancestors who have events that occurred during the French revolution:  none of them lived in France, so the French revolution and its weird dates just confuse things for my users who wish to see things in French.

       
    • CyrilV

      CyrilV - 2005-08-09

      Thanks everybody for your comments.

      John, your update works perfectly. Many Thanks

      Cyril

       
    • Christophe B.

      Christophe B. - 2005-08-15

      I have made a change to date processing in french language so that french revolutionary date is not always added for a date between 22 SEP 1792 and 31 DEC 1805

      New date format option : R

      D j F Y
      => Ven 14 Dcembre 1798

      D j F Y R
      => Ven 14 Dcembre 1798 - 24 Frimaire An 7

      URL for date format changing is :
      editlang_edit_settings.php?ln=french

       
      • Gerry Kroll

        Gerry Kroll - 2005-08-15

        Great!

        Does this apply to the date format in all languages, or does the French language have to be in effect for the "R" to be recognized?

        I'll update the English help text as soon as you clarify this.

         
      • Gerry Kroll

        Gerry Kroll - 2005-08-20

        The English Help text in Future Branch CVS now has documentation on  the "R" date formatting option.

        "R" is applicable to all languages (not restricted to French).  This option must be used with one of the other special date formatting codes.  When it's used with a date format that contains only "D", "M", and "Y" (plus other optional insertion characters such as "."), it's treated as text to be inserted in the output.

        Regardless of the current language setting, "R" always produces its output in French, and the order of Day, Month, and Year cannot be changed.

         

Log in to post a comment.