Bonjour,
Voila une partie du fichier chameleon.php. La ligne 472 est celle-ci : $_SESSION[ 'gszTmpImgPath' ] );
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| $_SESSION['gszCurrentLanguage'] = $this->mszCurrentLanguage;
// Set template name and map file
$this->CWCSetTemplate($szTemplateName);
// Init session variables if not already set
if (!$this->moHttpFormVars->isVarSet('SID') ||
!$this->mbSessionOK ||
(isset($_SESSION['gszMapName']) &&
realpath($_SESSION['gszMapName']) != realpath($szMapFile)) &&
$szMapFile != "")
{
//echo "resetting session<BR>";
$this->mszCurrentState = "";
$this->CWCInitializeSession();
if (strcmp(strtolower($this->moContext->getContextValue("count_hits")), "true") == 0)
{
@include_once( COMMON."hitcounter/stats.php" );
if (function_exists( 'doStats' ))
{
doStats(); //call function in stats.php (common/hitcount) to add an entry to the DBF file
}
else
{
$_SESSION['gErrorManager']->setError( ERR_WARNING, 'ERROR: stats are turned on in the configuration file but the hitcounter is missing from the common directory.' );
}
}
}
/**
_____________________________________________________________________
|
| Initialize language handling
|_____________________________________________________________________
**/
// create unique filename based on template
$szUniqueFileName = str_replace( '\\', '/',
$_SESSION[ 'gszTmpImgPath' ] );
$szUniqueFileName .= substr( $szUniqueFileName, -1 ) != '/'?'/':'';
$szUniqueFileName .= md5_file( $this->mszTemplateName ).'_mlt.inc.php'; |
Je remarque que dans l'erreur retournée, il manque la première lettre de mon fichier html (emplate.html, si je renomme mon fichier en toto.html, l'erreur indique :
Warning: md5_file(C:\ms4w\apps\myApp\htdocs oto.html)...
Je pense qu'il y a là un
Le fait d'utiliser un chemin relatif dans le fichier d'initialisation transforme l'erreur en :
Warning: md5_file(myApp/template.html) [function.md5-file]: failed to open stream: No such file or directory in C:\ms4w\apps\chameleon\htdocs\chameleon.php on line 472
Partager