Mysql/php

Fermé
hesher Messages postés 1 Date d'inscription mardi 17 mai 2011 Statut Membre Dernière intervention 17 mai 2011 - 17 mai 2011 à 13:09
floverdevel Messages postés 121 Date d'inscription dimanche 18 février 2001 Statut Membre Dernière intervention 20 mai 2011 - 19 mai 2011 à 05:04
bonjouuuuuuur tout le monde ?!
ben mon probleme C qu'on m'affiche comme message d'erreur ça "Notice: Undefined variable: errlog in C:.........\install.php on line 68

Fatal error: Call to a member function log() on a non-object in C:\.......\install.php on line 68
"

je suis confuse j'arrvie pas a regeler le probleme, j serais tellmt ravie si vs m'avez aidé les amis ^^ ...

voici le code


....
session_start();

include_once("../commun/logerrors.php");
include_once("../include/param_cvtheque.inc");
include_once("../include/f_util.php");
include_once("../commun/obj_configfile.php");

$etape = varval("etape");
$msg = varval("msg");
$mysqlserver = varval("mysqlserver");
$mysqlloggin = varval("mysqlloggin");
$mysqlmaindb = varval("mysqlmaindb");
$mysqlpassword = varval("mysqlpassword");
$mysqlprefix = varval("mysqlprefix");
$mysqlcreatebase = varval("mysqlcreatebase");
$oldPasswordAdmin = varval("oldPasswordAdmin");
$nomAdmin = varval("nomAdmin");
$prenomAdmin = varval("prenomAdmin");
$emailAdmin = varval("emailAdmin");
$loginAdmin = varval("loginAdmin");

//$errlog = new LogErrors("../ecrire/logs/install.txt", "OCVT", CVT_LOG_INFO, 200);
//$global_config = new ConfigFile("../acces/connexion.conf.php");


?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/offre.css" rel="stylesheet" media="all" type="text/css">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="600" align="center">
<tr>
<td align="center" valign="top">
<?php
if( !isset($etape) || $etape=="1" )
{
$errlog->log(CVT_LOG_INFO, "Installation cvtheque: étape 1", __FILE__, __LINE__);
echo "<h1>Installation cvtheque: étape 1</h1>";
include("etape1.php");
}
elseif( $etape=="2" )
{
$errlog->log(CVT_LOG_INFO, "Installation cvtheque: étape 2", __FILE__, __LINE__);
echo "<h1>Installation cvtheque: étape 2</h1>";
include("etape2.php");
}
elseif( $etape=="3" )
{
$errlog->log(CVT_LOG_INFO, "Installation cvtheque: étape 3", __FILE__, __LINE__);
echo "<h1>Installation cvtheque: étape 3</h1>";
include("etape3.php");
}
elseif( $etape=="4" )
{
$errlog->log(CVT_LOG_INFO, "Installation cvtheque: étape 4", __FILE__, __LINE__);
echo "<h1>Installation cvtheque: étape 4</h1>";
include("etape4.php");
}
?>
</td>
</tr>
<tr><td>
<link href="../css/style.css" rel="stylesheet" media="all" type="text/css">
<div id="modele">
<?php
if( isset($etiquette_page) && $etiquette_page ) { print $etiquette_page; }
echo "<br>";
contenu_page()
?>
<br><br>
<a href='http://www.opencvtheque.org' target='_blank' style="color: #A0A0A0; font-family: Arial, sans-serif; font-size: 10px; text-decoration: none;">
OpenCvThèque - v<?php
if(($f=@fopen("../VERSION", "r")))
{
echo fgets($f);
@fclose($f);
}
?>
</a>
</td></tr>
</table>
</body>
</html>

2 réponses

Bonjour,

Il faudrai que tu décommente cette ligne pour que ta variable soit déclarer :

// $errlog = new LogErrors("../ecrire/logs/install.txt", "OCVT", CVT_LOG_INFO, 200);   


En espérant que sa t'aidra
1
salut ^^ merci d'avoir repondu....


mais comment decommenter cette ligne ?!!!
0
floverdevel Messages postés 121 Date d'inscription dimanche 18 février 2001 Statut Membre Dernière intervention 20 mai 2011 15
19 mai 2011 à 05:04
tu enlèves les 2 caractères slashs au début de la ligne ;)
Donc cette ligne :
//$errlog = new LogErrors("../ecrire/logs/install.txt", "OCVT", CVT_LOG_INFO, 200); 

devient :
$errlog = new LogErrors("../ecrire/logs/install.txt", "OCVT", CVT_LOG_INFO, 200); 
0