#1 2002-11-19 23:00:40

guest1212
Guest

HEELLP..AN erorr appears...

Well .. i install the gallery and it sez every thing is ok...
it connects to the mySQL database but when I try to point to my admin section (final step of the installation)

It appers the following erorr:

Parse error:  parse error, expecting `')'' in ../include/config.inc.php on line 17
Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)
in ../include/user.inc.php on line 50
Warning:  MySQL:  A link to the server could not be established in ../include/user.inc.php on line 50
Warning:  Supplied argument is not a valid MySQL result resource in ../include/user.inc.php on line 50


Please help me......

 

#2 2002-11-19 23:02:44

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13882

Re: HEELLP..AN erorr appears...

can you tell me what you downloaded exactly ?
(version 1.2,zip or tar.gz ?)

Offline

 

#3 2002-11-19 23:09:07

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13882

Re: HEELLP..AN erorr appears...

is the file include/config.inc.php empty ?
can you show me the content of this file (replace the password by "foobar" if you don't want me to see it)

Offline

 

#4 2002-11-20 19:11:47

guest2121
Guest

Re: HEELLP..AN erorr appears...

Well i've downloaded 1.2.tar.....

and I've  foollowed the installation process until the last step when i go to the identification page it appears the following error

Parse error:  parse error, expecting `')'' in ./include/config.inc.php on line 17
Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)
in ./include/user.inc.php on line 50
Warning:  MySQL:  A link to the server could not be established in ./include/user.inc.php on line 50
Warning:  Supplied argument is not a valid MySQL result resource in ./include/user.inc.php on line 50
Warning:  Failed opening './template//conf.php' for inclusion (include_path='') in ./include/init.inc.php on line 22
Fatal error:  Call to undefined function:  get_restrictions() in ./include/init.inc.php on line 29


the contest of the config.inc.php is :

Code:

<?php 
/*************************************************************************** 
 *                 config.inc.php is a part of PhpWebGallery               * 
 *                            -------------------                          * 
 *   last update          : Saturday, October 26, 2002                     * 
 *   email                : pierrick@z0rglub.com                           * 
 *                                                                         * 
 *************************************************************************** 
 
 *************************************************************************** 
 *                                                                         * 
 *   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;                                         * 
 *                                                                         * 
 ***************************************************************************/ 
  unset( $conf, $page, $user, $lang ); 
  $conf = array(); 
  $page = array(); 
  $user = array(); 
  $lang = array(); 
   
  include_once( $prefixe_include."./include/mysql.inc.php" ); 
  include_once( $prefixe_include."./include/functions.php" ); 
  $page['start_time'] = get_moment(); 
  // how to change the order of display for images in a category : 
  // You have to modify $conf['order_by']. 
  // There are several fields that can order the display : 
  //  - date_available : the date of the adding to the gallery 
  //  - file : the name of the file 
  // once you've chosen which field(s) to use for ordering, you must chose the ascending or descending order for each field. 
  // examples : 
  // 1. $conf['order_by'] = " order by date_available desc, file asc"; 
  // will order pictures by date_available descending and by filename ascending 
  // 2. $conf['order_by'] = " order by file asc"; 
  // will only order pictures by file ascending without taking into account the date_available 
  $conf['order_by'] = " order by date_available desc, file asc"; 
  $conf['repertoire_image']   = "./images/"; 
   
  database_connection(); 
  // récupération des informations de configuration du site 
  $query  = "select periode_courte,periode_longue,prefixe_thumbnail"; 
  $query .= ",webmaster,mail_webmaster,acces,session_id_size,session_keyword"; 
  $query .= ",session_time,max_user_listbox,expand,show_comments"; 
  $query .= ",nb_comment_page,upload_available,upload_maxfilesize"; 
  $query .= ",upload_maxwidth,upload_maxheight"; 
  $query .= ",upload_maxwidth_thumbnail,upload_maxheight_thumbnail"; 
  $query .= " from $prefixeTable"."config;"; 
  $row = mysql_fetch_array( mysql_query( $query ) ); 
  $conf['periode_courte']             = $row['periode_courte']; 
  $conf['periode_longue']             = $row['periode_longue']; 
  $conf['prefixe_thumbnail']          = $row['prefixe_thumbnail']; 
  $conf['webmaster']                  = $row['webmaster']; 
  $conf['mail_webmaster']             = $row['mail_webmaster']; 
  $conf['acces']                      = $row['acces']; 
  $conf['session_id_size']            = $row['session_id_size']; 
  $conf['session_keyword']            = $row['session_keyword']; 
  $conf['session_time']               = $row['session_time']; 
  $conf['max_user_listbox']           = $row['max_user_listbox']; 
  $conf['expand']                     = $row['expand']; 
  $conf['show_comments']              = $row['show_comments']; 
  $conf['nb_comment_page']            = $row['nb_comment_page']; 
  $conf['upload_available']           = $row['upload_available']; 
  $conf['upload_maxfilesize']         = $row['upload_maxfilesize']; 
  $conf['upload_maxwidth']            = $row['upload_maxwidth']; 
  $conf['upload_maxheight']           = $row['upload_maxheight']; 
  $conf['upload_maxwidth_thumbnail']  = $row['upload_maxwidth_thumbnail']; 
  $conf['upload_maxheight_thumbnail'] = $row['upload_maxheight_thumbnail']; 
?>
 

#5 2002-11-21 19:36:09

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13882

Re: HEELLP..AN erorr appears...

I thnik that the pb come from a bad include/mysql.inc.php file.
It should be something like this :

Code:

<?php 
  $cfgBase='z0rglub_database'; 
  $cfgUser='user'; 
  $cfgPassword='password'; 
  $cfgHote='localhost'; 
  $prefixeTable='phpwebgallery_'; 
?> 

Offline

 

#6 2002-11-21 20:36:54

guest2121
Guest

Re: HEELLP..AN erorr appears...

Thanks but thath didn't help: 

the contest of my mysql.inc.php is correct I've  checked it :


Code:

<?php 
$cfgBase = 'NAME'; 
$cfgUser = 'NAME'; 
$cfgPassword = 'password'; 
$cfgHote = 'sql-01.xxxxx.com'; 
$prefixeTable = 'phpwebgallery_'; 
?>

And look version 1.1 worked fine until I've installed the v1.2 :

It connects to the databes but when it  goes to the last step

The configuration of PhpWebGallery is finished, here is the next step
For security reason, please delete file "install.php" in the directory "admin"
Once this file deleted , follow this instructions :
                            
go to the identification page : [ identification ] and use the login/password given for webmaster
this login will enable you to access to the [ administration panel ] and to the instructions in order to place pictures in your directories

It appears the following error when I go to the identification page :

Code:

Parse error:  parse error, expecting `')'' in ./include/config.inc.php on line 17 
Warning:  MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) 
 in ./include/user.inc.php on line 50 
Warning:  MySQL:  A link to the server could not be established in ./include/user.inc.php on line 50 
Warning:  Supplied argument is not a valid MySQL result resource in ./include/user.inc.php on line 50 
Warning:  Failed opening './template//conf.php' for inclusion (include_path='') in ./include/init.inc.php on line 22 
Fatal error:  Call to undefined function:  get_restrictions() in ./include/init.inc.php on line 29

Please tell me how to fix that ... your program is really awesome.

 

#7 2002-11-21 20:54:48

guest2121
Guest

Re: HEELLP..AN erorr appears...

if that can help here's the link of my web page...

**link broken**

Any help will be greatful!!!
cool program...

 

#8 2002-11-21 21:14:36

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13882

Re: HEELLP..AN erorr appears...

sorry but your file config.int.php is perfect, I used it on the demo gallery without any pb... are you sure it is the file present on your website ?

Offline

 

#9 2002-11-21 21:54:03

guest2121
Guest

Re: HEELLP..AN erorr appears...

Strange isn't it... as you can see **link broken**
the 1.1v is working fine but 1.2 crashes....

Thanks for your help anyway...
I'll keep working with 1.1...and wait for next versions of your excellent program...Bye

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact