Avatar Image
Usuario habitual
Usuario habitual

Hola mi problema es el siguiente, empece ayer con esto del php nuke y ya voy teniendo algo de idea. ya ice todos los pasos tales como cargar el nuke.sql y retocar el confi.php, pero de aqui me viene el problema, algo anda mal en este arxivo pork no me deja cargar la pagina http://localhost/phpnuke/

-El error es el siguiente:   

Parse error: syntax error, unexpected ':' in c:\appserv\www\phpnuke\config.php on line 54

-Los datos del archivo config.php:

# Database & System Config
#
# dbhost: "localhost";
# dbuname: "root";
# dbpass: "";
# dbname: "nukeesp";     
# $prefix: "nuke";
# $user_prefix: "nuke";
# $dbtype: "MySQL";    
#               MySQL, mysql4, sqlite, postgres, mssql, oracle,
#               msaccess, db2 and mssql-odbc
#               Be sure to write it exactly as above, case SeNsItIvE!
# $sitekey:    Security Key. CHANGE it to whatever you want, as long
#               as you want. Just don't use quotes.
# $gfx_chk:    Set the graphic security code on every login screen,
#        You need to have GD extension installed:
#        0: No check
#        1: Administrators login only
#        2: Users login only
#        3: New users registration only
#        4: Both, users login and new users registration only
#        5: Administrators and users login only
#        6: Administrators and new users registration only
#        7: Everywhere on all login options (Admins and Users)
#        NOTE: If you aren't sure set this value to 0
# $subscription_url: If you manage subscriptions on your site, you
#                    must write here the url of the subscription
#                    information/renewal page. This will send by
#                    email if set.
# $admin_file: Administration panel filename. "admin" by default for
#           "admin.php". To improve security please rename the file
#              "admin.php" and change the $admin_file value to the
#              new filename (without the extension .php)
# $advanced_editor: On/Off the advanced WYSIWYG text editor for admins
#                   0: Off, will use the default simple text editor
#                   1: On, will use the full featured text editor
######################################################################

$dbhost: "localhost";
$dbuname: "root";
$dbpass: "";
$dbname: "nukeesp";
$prefix: "nuke";
$user_prefix: "nuke";
$dbtype: "MySQL";
$sitekey = "S·kQSd5%W@Y62-dm29-.-39.3a8sUf+W9";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$advanced_editor = 0;

Lo he echo pensando en local, ya que todavia nose como subirlo a un dominio ni nada....

PD:Mi base de datos se llama "nukeesp", y el error da en la linea 54 k se corresponde con: $dbhost: "localhost";
Avatar Image
@man / @woman
@man / @woman
Escrito originalmente por LiDeI2_FM
-El error es el siguiente:   

Parse error: syntax error, unexpected ':' in c:\appserv\www\phpnuke\config.php on line 54

-Los datos del archivo config.php:
Te esta diciendo en la línea 54 ¿cual es?
Avatar Image
Usuario habitual
Usuario habitual

$dbhost: "localhost";

Avatar Image
@man / @woman
@man / @woman

Aunque en el ejemplo ponga que es $dbhost: "localhost"; no es así... es otro de los fallos de nuke, es $dbhost= "localhost";

Y en el resto igual.

Avatar Image
Usuario habitual
Usuario habitual

Muchas gracias tio, ahora el fallo me da en el arxivob db.php:

Fatal error: Call to undefined function message_die() in C:\AppServ\www\phpnuke\db\db.php on line 88

<?php
/***************************************************************************
* db.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $
*
*
***************************************************************************/

/***************************************************************************
* This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
* by Tom Nitzschner (tom@toms-home.com)
* http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
*
* As always, make a backup before messing with anything. All code
* release by me is considered sample code only. It may be fully
* functual, but you use it at your own risk, if you break it,
* you get to fix it too. No waranty is given or implied.
*
* Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
* then on my site. All original header code and copyright messages will be maintained
* to give credit where credit is due. If you modify this, the only requirement is
* that you also maintain all original copyright messages. All my work is released
* under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
*
***************************************************************************/

/***************************************************************************
*
* 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.
*
***************************************************************************/

global $forum_admin;
if ($forum_admin == 1) {
$the_include = "../../../db";
} elseif ($inside_mod == 1) {
$the_include = "../../db";
} else {
$the_include = "db";
}

switch($dbtype) {

case 'MySQL':
include("".$the_include."/mysql.php" ;
break;

case 'mysql4':
include("".$the_include."/mysql4.php" ;
break;

case 'postgres':
include("".$the_include."/postgres7.php" ;
break;

case 'mssql':
include("".$the_include."/mssql.php" ;
break;

case 'oracle':
include("".$the_include."/oracle.php" ;
break;

case 'msaccess':
include("".$the_include."/msaccess.php" ;
break;

case 'mssql-odbc':
include("".$the_include."/mssql-odbc.php" ;
break;

case 'db2':
include("".$the_include."/db2.php" ;
break;

}

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
message_die(CRITICAL_ERROR, "Could not connect to the database" ;
}

?>


EDITO: EL FALLO ES EN LA LINEA message_die(CRITICAL_ERROR, "Could not connect to the database" ;

Avatar Image
@man / @woman
@man / @woman

Cuando postes código desmarca Usa caretos

Respecto a ese archivo... no debería dar problemas... pues no debes editarles.

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
message_die(CRITICAL_ERROR, "Could not connect to the database") ;
}

Debería ser algo así.

Avatar Image
Usuario habitual
Usuario habitual

Me sigue dando el mismo error tio :S puede ser k sea algun fallo el archivo confi.php o algo sk no tngo ni idea... Añademe y lo hablamos por msn porfavor: Bokeron56@hotmail.com

Avatar Image
Usuario habitual
Usuario habitual

Ya me carga el localhost/phpnuke

El error staba en k tenia la ultima version de APPSERV y la version 6.5 de php-nuke, ha sido bajarme la 7.8 sustituir en carpeta, cargar el nuke.sql y retocar el confi y todo bien, gracias d todas formas por tu ayuda Nosetup

ATENCIÓN: Este tema no tiene actividad desde hace más de 6 MESES,
te recomendamos abrir un nuevo tema en lugar de responder al actual
Opciones:
Ir al subforo:
Permisos:
TU NO PUEDES Escribir nuevos temas
TU NO PUEDES Responder a los temas
TU NO PUEDES Editar tus propios mensajes
TU NO PUEDES Borrar tus propios mensajes
Temas similares
TemaUsuariosRespuestasVisitasActividad
Por: , el 03/Feb/2010, 18:45
mario3000 NoSetup.org12kFeb/10
Por: , el 08/Sep/2008, 21:38
siankaan Tito NoSetup.org32kSep/08
Por: , el 26/Oct/2005, 11:48
del_pilar franco_schi Ch1ca1za Ameliajack Juangufo9526kJul/21
Por: , el 15/Jul/2004, 20:33
rockchapin rockvolucion22kJul/04
Por: , el 24/Sep/2003, 02:35
ejersalv MaIcOl amayasola22kSep/03