Complete.Org: Mailing Lists: Archives: freeciv-i18n: September 2002:
[freeciv-i18n] Re: French pages of Freeciv.org with Php errors
Home

[freeciv-i18n] Re: French pages of Freeciv.org with Php errors

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Xavier Belanger <Xavier.Belanger@xxxxxxxxxxxxxx>
Cc: webmaster@xxxxxxxxxxxxxxxxxxx, Freeciv translation <freeciv-i18n@xxxxxxxxxxx>
Subject: [freeciv-i18n] Re: French pages of Freeciv.org with Php errors
From: Reinier Post <rp@xxxxxxxxxx>
Date: Sat, 28 Sep 2002 19:36:24 +0200

On Fri, Sep 27, 2002 at 03:44:12PM +0200, Xavier Belanger wrote:
> Hello,
> 
> If i want to browse the French version of Freeciv.org
> i see two errors on the top of the page and at the bottom :
> 
> First :
> 
> Warning: Failed opening 'php_code/fallback_find_file.php' for
> inclusion (include_path='') in
> /home/freeciv/html/php_code/auto_update_labels.php on line 3
> 
> And :
> 
> Fatal error: Call to undefined function: fallback_find_file()
> in /home/freeciv/html/php_code/auto_update_labels.php on line 37
> 
> Bye
> -- 
> Xavier Belanger

Thanks for reporting. This is related to a change in the inclusion
mechanism I made to make the website more portable.  The proper fix
is this patch:

cvs server: Diffing .
Index: index.phtml
===================================================================
RCS file: /home/freeciv/CVS/web_html/website_l10n/fr/index.phtml,v
retrieving revision 1.7
diff -r1.7 index.phtml
7c7,10
< include("$DOCUMENT_ROOT/php_code/php_code_find.php");                         
---
> ini_set("include_path",
>   ini_get("include_path") . ':' . $_SERVER['DOCUMENT_ROOT']
> );
> include("php_code/php_code_find.php");

Many other pages have to be changed as well.  I sent a detailed
recipe a while ago; I can resend it if there is any need.

-- 
Reinier


[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-i18n] Re: French pages of Freeciv.org with Php errors, Reinier Post <=