Problema No Step 2

MUTAN0
Por MUTAN0
em Lixeira Pública

MUTAN0

The Beast Boy!
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 07/10/07Posts: 224

Ao instalar o Gesior ACC, no STEP 2, aparece o seguinte erro:

 

STEP 2

Check database connection

If you don't see any errors press link to STEP 3 - Add tables and columns to DB. If you see some errors it mean server has wrong configuration. Check FAQ or ask author of acc. maker.

Parse error: syntax error, unexpected ';', expecting T_FUNCTION in C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 67

 

Aparentemente o problema está no OTS_DB_SQLite.php, que é este sujeito aqui:

 

<?php

 

/**#@+

* @version 0.0.1

*/

 

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <wrzasq@gmail.com>

* @copyright 2007 © by Wrzasq

* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

 

/**

* SQLite connection interface.

*

* <p>

* At all everything that you really need to read from this class documentation is list of parameters for driver's constructor.

* </p>

*

* @package POT

* @version 0.1.3

*/

class OTS_DB_SQLite extends OTS_Base_DB

{

/**

* Creates database connection.

*

* <p>

* Connects to SQLite database on given arguments.

* <p>

*

* <p>

* List of parameters for this drivers:

* </p>

*

* <ul>

* <li><var>database</var> - database name.</li>

* </ul>

*

* @version 0.0.7

* @param array $params Connection parameters.

* @throws PDOException On PDO operation error.

*/

public function __construct($params)

{

if( isset($params['prefix']) )

{

$this->prefix = $params['prefix'];

}

 

// PDO constructor

try

{

parent::__construct('sqlite:' . $params['database']);

}

catch(PDOException $error)

{

echo 'Can\'t connect to SQLite database.</font>';

exit;

}

 

}

 

/**#@-*/

 

?>

 

Agradeceria qualquer ajuda, pois esse problema tabém está no STEP 3 :sleep:

Obrigado, abraços.

71007671.jpg

Gian Kopak Castro

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 28/02/09Posts: 0Char no Tibia: Gunsinhu

O seu servidor eh conpativel com o site gezior?

MUTAN0

The Beast Boy!
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 07/10/07Posts: 224

Ele é o TFS 0.3.6 - 8.54, sem modificações, 'seco' ...

Tanto que baixei ele e em separado as DLLs

71007671.jpg

SkyDangerous

Deus Kalec
avatar
Lorde
Lorde

INFOS

Grupo: LordeRegistrado: 17/01/09Posts: 2098Char no Tibia: Adra Sata

Bom , parece que o error está C:\xampp\htdocs\pot\OTS_DB_SQLite.php on line 67 , bom as vezes é seu server que você baixou , tente mudar no config.lua sqllite pra mysql , caso não dê tente tirar todos "-"do config .. e se não der entra no arquivo que ta com error .. procure a linha 67 .. e vê se não tem nada errado..

 

Bom , tente adicionar essa tag.

 

 

 

<?php

 

/**#@+

* @version 0.0.1

*/

 

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <wrzasq@gmail.com>

* @copyright 2007 © by Wrzasq

* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

 

/**

* SQLite connection interface.

*

* <p>

* At all everything that you really need to read from this class documentation is list of parameters for driver's constructor.

* </p>

*

* @package POT

* @version 0.1.3

*/

class OTS_DB_SQLite extends OTS_Base_DB

{

/**

* Creates database connection.

*

* <p>

* Connects to SQLite database on given arguments.

* <p>

*

* <p>

* List of parameters for this drivers:

* </p>

*

* <ul>

* <li><var>database</var> - database name.</li>

* </ul>

*

* @version 0.0.7

* @param array $params Connection parameters.

* @throws PDOException On PDO operation error.

*/

public function __construct($params)

{

if( isset($params['prefix']) )

{

$this->prefix = $params['prefix'];

}

 

// PDO constructor

try

{

parent::__construct('sqlite:' . $params['database']);

}

catch(PDOException $error)

{

echo 'Can\'t connect to SQLite database.</font>';

exit;

}

 

}

 

/**#@-*/

 

?>

 

 

Me segui lá (:

 

b906.png

http://ageofwar.servegame.com/

IP: ageofwar.servegame.com

TIBIA: 10.78

GLOBAL PERFECT CUSTOM