•  » Utilisation
  •  » PWG 1.2 beta - includes not found for /admin/*

#1 2002-10-30 11:37:07

alex
Membre
Bonn, Germany
2002-09-15
31

PWG 1.2 beta - includes not found for /admin/*

Bonjour,

the installation of pwg 1.2 beta qas now susccessful. But i only can use the level of "diapo.php".  If i try to change to the admin section, several includes are not found:
Warning: Failed opening 'mysql.inc.php' for inclusion (include_path='.:./include:/php/includes') in /home/alex/public_html/pwg/include/config.inc.php on line 23

Then I changed lines 23 and 24 in config.inc.php from 
' include_once("mysql.inc.php");
  include_once("functions.php"); '
to
' include_once("../include/mysql.inc.php");
  include_once("../include/functions.php");'

If I do so, I can use the admin pages, but NOT the diapo.php, to look at the photos.
Please help me, there seems to be a big problem with the includes!

Thank you,
Alex

Hors ligne

#2 2002-10-30 15:06:07

fabian
Membre
2002-10-29
3

Re: PWG 1.2 beta - includes not found for /admin/*

Hi,


I had the same problem with easyphp 1.5. I upgraded to easyphp 1.6 and all seems to work without any problems.
Easyphp 1.6 =  apache 1.3.24  +  php 4.2.0 +  mysql 3.23.49 + phpmyadmin 2.2.6

Hope it can help you

Fabian

Hors ligne

#3 2002-10-30 15:23:31

plg
Équipe Piwigo
Nantes, France, Europe
2002-04-05
12671

Re: PWG 1.2 beta - includes not found for /admin/*

ok, I take your pb into account, I will find a solution in order to make it work anywhere...


Les historiens ont établi que Pierrick était le premier utilisateur connu de Piwigo.

Hors ligne

#4 2002-10-30 15:57:51

plg
Équipe Piwigo
Nantes, France, Europe
2002-04-05
12671

Re: PWG 1.2 beta - includes not found for /admin/*

solution :
in admin/include/isadmin.inc.php, insert :

Code:

$prefixe_include = ".";

before

Code:

include_once( "../include/config.inc.php" );

and in include/config.inc.php, replace :

Code:

 
include_once( "mysql.inc.php" ); 
include_once( "functions.php" ); 

by

Code:

 
include_once( $prefixe_include."./include/mysql.inc.php" ); 
include_once( $prefixe_include."./include/functions.php" ); 

edit :
and in init.inc.php, replace

Code:

include_once( "config.inc.php" ); 
include_once( "user.inc.php" );

by

Code:

 
include_once( "./include/config.inc.php" ); 
include_once( "./include/user.inc.php" ); 

Les historiens ont établi que Pierrick était le premier utilisateur connu de Piwigo.

Hors ligne

#5 2002-10-30 16:22:45

alex
Membre
Bonn, Germany
2002-09-15
31

Re: PWG 1.2 beta - includes not found for /admin/*

YES!  now it works as it was supposed to work!  :) 

by the way: 
i'm using apache 1.3.20  with php 4.0.6 and mysql 3.23.41 (i686)

so you don't have to upgrade to php 4.2 in order to get pwg running!

Thank you!

Alex

Hors ligne

  •  » Utilisation
  •  » PWG 1.2 beta - includes not found for /admin/*

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact