Précédent   Forum des professionnels en informatique > PHP > PHP & SGBD > PHP & MySQL
PHP & MySQL Forum d'entraide sur les fonctions MySQL avec PHP. Avant de poster -> FAQ MySQL, Cours MySQL et Sources MySQL. Pour les questions concernant le moteur MySQL plutôt que les fonctions PHP, merci d'utiliser le forum MySQL.
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 08/02/2011, 13h52   #1
Invité de passage
 
Inscription : novembre 2008
Messages : 7
Détails du profil
Informations forums :
Inscription : novembre 2008
Messages : 7
Points : 1
Points : 1
Par défaut Problème de script PHP sur Dolibarr

Bonjour à tous,
Je ne suis pas sûr de poster au bon endroit.

Je travaille pour un petit organisme de formation et je voulais installer toute la gestion du Centre sur Dolibarr 2.9 (ERP) avec le module pour les centre de formation Agefodd.

Mais quand je vais sur ce module j'ai l'erreur suivante :
Code :
1
2
3
Warning: main(../commonobject.class.php) [function.main]: failed to open stream: No such file or directory in /homez.20/eikona/www/dolibarr/htdocs/agefodd/agefodd_index.class.php on line 27
 
Fatal error: main() [function.require]: Failed opening required '../commonobject.class.php' (include_path='/homez.20/eikona/www/htdocs') in /homez.20/eikona/www/dolibarr/htdocs/agefodd/agefodd_index.class.php on line 27
Je ne connais rien au PHP mais je crois comprendre qu'il a un problème de chemin pour trouver le fichier agefodd_index.class.php
C'est ça ?

Si quelqu'un peut me donner un coup de main pour régler mon problème ça m'aiderait beaucoup.

Merci d'avance

eikona.fr/dolibarr/htdocs/
bmael est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/02/2011, 16h15   #2
Invité de passage
 
Inscription : novembre 2008
Messages : 7
Détails du profil
Informations forums :
Inscription : novembre 2008
Messages : 7
Points : 1
Points : 1
Code :
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/* Copyright (C) 2004		Rodolphe Quiedeville	<rodolphe@quiedeville.org>
 * Copyright (C) 2005-2009	Laurent Destailleur	<eldy@users.sourceforge.org>
 * Copyright (C) 2009-2010		Erick Bullier		<eb.dev@ebiconsulting.fr>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
 
/**	\file       $HeadURL: https://192.168.22.4/dolidev/trunk/admin/agefodd_setup.php $
 *	\ingroup    agefodd
 *	\brief      agefood module setup page
 *	\version    $Id: agefodd_setup.php 46 2010-03-21 20:28:31Z ebullier $
 */
 
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
 
$langs->load("admin");
$langs->load("@agefodd");
 
if (!$user->admin) accessforbidden();
 
 
if ($_POST["action"] == 'setvalue' && $user->admin)
{
	$result = dolibarr_set_const($db, "AGF_PRELEV_TRIGGER",$_POST["AGF_PRELEV_TRIGGER"],'chaine',0,'',$conf->entity);
  	if ($result >= 0)
  	{
  		$mesg='<div class="ok">'.$langs->trans("SetupSaved").'</div>';
  	}
  	else
  	{
		dol_print_error($db);
    }
}
 
 
/*
 *
 *
 */
 
llxHeader();
 
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
print_fiche_titre($langs->trans("AgefoddSetupDesc"),$linkback,'setup');
 
print $langs->trans("AgefoddSetupParamChoice")."<br>\n";
 
$mesg = "La page de paramètrage du module Agefodd n'a pas encore été développée.";
$mesg.= "<br />Pour le configurer, il faut modifier à la main les variables globales du programme en éditant le fichier 'agefodd/pre.inc.php'";
 
if ($mesg) print '<br>'.$mesg;
 
/*
print '<br>';
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="setvalue">';
 
$var=true;
 
// Entête
print '<table summary="bookmarklist" class="notopnoleftnoright" width="100%">';
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("Name").'</td>';
print '<td>'.$langs->trans("Value").'</td>';
print "</tr>\n";
 
$var=!$var;
print '<tr '.$bc[$var].'><td>';
 
print $langs->trans("Traitement automatique sur prélévement").'</td>';
$selected = '';
print '<td><select class="flat" name="AGF_PRELEV_TRIGGER">\n';
print '<option value="">&nbsp;</option>\n';
if  ($conf->global->AGF_PRELEV_TRIGGER == "no") $selected = 'selected="true"';
print '<option value="no" '.$selected.'>'.$langs->trans("CcaSetupNo").'</option>\n';
if  ($conf->global->AGF_PRELEV_TRIGGER == "bank_only") $selected='selected="true"';
print '<option value="bank_only" '.$selected.'>'.$langs->trans("CcaSetupBankOnly").'</option>\n';
if  ($conf->global->AGF_PRELEV_TRIGGER == "ff_only") $selected='selected="true"';
print '<option value="ff_only" '.$selected.'>'.$langs->trans("CcaSetupFactureFournisseurOnly").'</option>\n';
print '</select>
print '</td></tr>';
 
print '<tr><td colspan="2" align="center"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td></tr>';
print '</table></form>';
*/
 
$db->close();
 
llxFooter('$Date: 2010-03-21 21:28:31 +0100 (dim. 21 mars 2010) $ - $Revision: 46 $');
?>
Voilà le fichier qui plante. Si ça dit quelque chose à quelqu'un ???
bmael est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/02/2011, 11h45   #3
Membre éclairé
 
Homme Jérémy
Étudiant
Inscription : octobre 2009
Messages : 236
Détails du profil
Informations personnelles :
Nom : Homme Jérémy
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Produits et services télécom et Internet

Informations forums :
Inscription : octobre 2009
Messages : 236
Points : 322
Points : 322
Ce script n'est pas de toi je suppose, effectivement c'est un problème de lien d'inclusion à ce niveau "require("./pre.inc.php");" dans ton fichier "agefodd_index.class.php", je te conseille dans un premier temps de vérifier dans l'arborescence si les fichiers sont bien à leur place dans l'application.
gwharl est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/02/2011, 12h58   #4
Invité de passage
 
Inscription : novembre 2008
Messages : 7
Détails du profil
Informations forums :
Inscription : novembre 2008
Messages : 7
Points : 1
Points : 1
J'ai mis le site dans un sous répertoire chez OVH. Ca donne :

/homez.20/eikona/www/dolibarr/htdocs/admin/agefodd_setup.php
ou en http://www.eikona.fr/dolibarr/htdocs...fodd_setup.php

donc ça '../commonobject.class.php' (include_path='/homez.20/eikona/www/htdocs') indiqué dans l'erreur, ça ne va pas.

Pour les fichiers, j'ai fais comme ils indiquent : j'ai copié tout le contenu du module dans le dossier htdocs et les fichiers se sont répartis chacun à sa place.

Je ne sais pas comment je peux faire pour vous donner plus de précisions ?
bmael est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 07h56.


 
 
 
 
Partenaires

Hébergement Web