• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Gesior-AAC-0.6.3

Potar

SocialWorld
Senator
Joined
Mar 1, 2009
Messages
1,661
Reaction score
125
Location
Warsaw, Poland
Witajcie, udało się komuś ogarnąć instalacje gesiorka?

Instalacja przebiegła gitarowo ale:


Błąd serwera
W witrynie wystąpił błąd podczas pobierania strony XXX. Może być ona wyłączona na potrzeby konserwacji lub nieprawidłowo skonfigurowana.
Oto kilka propozycji:
Ponownie załaduj tę stronę internetową później.
Błąd HTTP 500 (Internal Server Error): Napotkano nieoczekiwaną sytuację przy próbie zrealizowania żądania przez serwer.

Config, i wszystko pięknie załadowało, dodało sample ale ten błąd, a lata mi bez problemu też gesior ale starszy troche.
 
internal server error, oznacza ze cos zlego dzieje sie po stronie serwera, czyli prawdopodobnie w php, wiec wlacz wyswietlanie bledow php, i wtedy sprobuj instalowac
 
Te myślę że możemy zignorować:

Notice: Undefined index: action in /var/www/nowy/index.php on line 19
Notice: Undefined index: account_login in /var/www/nowy/index.php on line 45
Notice: Undefined index: password_login in /var/www/nowy/index.php on line 46
Notice: Undefined variable: tickers_to_add in /var/www/nowy/latestnews.php on line 23
Notice: Undefined variable: group_id_of_acc_logged in /var/www/nowy/latestnews.php on line 25
Notice: Undefined variable: group_id_of_acc_logged in /var/www/nowy/latestnews.php on line 30
Notice: Undefined variable: news_content in /var/www/nowy/latestnews.php on line 50
Notice: Undefined variable: group_id_of_acc_logged in /var/www/nowy/latestnews.php on line 51
Notice: Undefined variable: main_content in /var/www/nowy/latestnews.php on line 90

Ale tu już nie bardzo.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'topic_df' in 'field list'' in /var/www/nowy/libs/pot/OTS_DB_MySQL.php:153 Stack trace: #0 /var/www/nowy/libs/pot/OTS_DB_MySQL.php(153): PDO->query('SELECT image_id...') #1 /var/www/nowy/latestnews.php(109): OTS_DB_MySQL->query('SELECT image_id...') #2 /var/www/nowy/index.php(78): include('/var/www/nowy...') #3 {main} thrown in /var/www/nowy/libs/pot/OTS_DB_MySQL.php on line 153

Przypominam że to czyścioch, prosto z google project, nic nie dotykałem jeszcze :(

Mój OTS_DB_MySQL.php file:

PHP:
<?php

/**#@+
 * @version 0.0.1
 */

/**
 * @package POT
 * @version 0.1.3
 * @author Wrzasq <[email protected]>
 * @copyright 2007 (C) by Wrzasq
 * @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3
 */

/**
 * MySQL 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_MySQL extends OTS_Base_DB
{

	public $queriesCount = 0;

/**
 * Creates database connection.
 * 
 * <p>
 * Connects to MySQL database on given arguments.
 * </p>
 * 
 * <p>
 * List of parameters for this drivers:
 * </p>
 * 
 * <ul>
 * <li><var>host</var> - database server.</li>
 * <li><var>port</var> - port (optional, also it is possible to use host:port in <var>host</var> parameter).</li>
 * <li><var>database</var> - database name.</li>
 * <li><var>user</var> - user login.</li>
 * <li><var>password</var> - user password.</li>
 * </ul>
 * 
 * @version 0.0.6
 * @param array $params Connection parameters.
 * @throws PDOException On PDO operation error.
 */
    public function __construct($params)
    {
        $user = null;
        $password = null;
        $dns = array();

        // host:port support
        if( strpos(':', $params['host']) !== false)
        {
            $host = explode(':', $params['host'], 2);

            $params['host'] = $host[0];
            $params['port'] = $host[1];
        }

        if( isset($params['host']) )
        {
            $dns[] = 'host=' . $params['host'];
        }

        if( isset($params['port']) )
        {
            $dns[] = 'port=' . $params['port'];
        }

        if( isset($params['database']) )
        {
            $dns[] = 'dbname=' . $params['database'];
        }

        if( isset($params['user']) )
        {
            $user = $params['user'];
        }

        if( isset($params['password']) )
        {
            $password = $params['password'];
        }

        if( isset($params['prefix']) )
        {
            $this->prefix = $params['prefix'];
        }

        // PDO constructor
	try
	{
		parent::__construct('mysql:' . implode(';', $dns), $user, $password);
	}
	catch(PDOException $error)
	{
		echo 'Can\'t connect to MySQL database.</font>';
			exit;
	}
    }


/**
 * Query-quoted field name.
 * 
 * @param string $name Field name.
 * @return string Quoted name.
 */
    public function fieldName($name)
    {
        return '`' . $name . '`';
    }

/**
 * LIMIT/OFFSET clause for queries.
 * 
 * @param int|bool $limit Limit of rows to be affected by query (false if no limit).
 * @param int|bool $offset Number of rows to be skipped before applying query effects (false if no offset).
 * @return string LIMIT/OFFSET SQL clause for query.
 */
    public function limit($limit = false, $offset = false)
    {
        // by default this is empty part
        $sql = '';

        if($limit !== false)
        {
            $sql = ' LIMIT ';

            // OFFSET has no effect if there is no LIMIT
            if($offset !== false)
            {
                $sql .= $offset . ', ';
            }

            $sql .= $limit;
        }

        return $sql;
    }

	public function query($query)
	{
		$this->queriesCount++;
		return parent::query($query);
	}

	public function getQueriesCount()
	{
		return $this->queriesCount;
	}
}

/**#@-*/

?>


oraz latestnews.php

Nie zmiesciło się na forum to dam na wklej.to

http://wklej.to/Be97X/text
 
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'topic_df' in 'field list'' in /var/www/nowy/libs/pot/OTS_DB_MySQL.php:153 Stack trace: #0 /var/www/nowy/libs/pot/OTS_DB_MySQL.php(153): PDO->query('SELECT image_id...') #1 /var/www/nowy/latestnews.php(109): OTS_DB_MySQL->query('SELECT image_id...') #2 /var/www/nowy/index.php(78): include('/var/www/nowy...') #3 {main} thrown in /var/www/nowy/libs/pot/OTS_DB_MySQL.php on line 153
Zaznaczyłem Ci co jest odpowiedzialne za error 500, więc prawdopodobnie musisz dodać to pole do instalacji.
w install.php znajdz
PHP:
try { $SQL->query('CREATE TABLE "z_news_big" (
	"hide_news" INTEGER NOT NULL DEFAULT 0,
	"date" INTEGER NOT NULL,
	"author" VARCHAR(255) NOT NULL,
	"author_id" INTEGER NOT NULL,
	"image_id" INTEGER NOT NULL DEFAULT 0,
	"topic" VARCHAR(255) NOT NULL,
	"text" TEXT NOT NULL);'); } catch(PDOException $error) {}
i zmień na
PHP:
try { $SQL->query('CREATE TABLE "z_news_big" (
	"hide_news" INTEGER NOT NULL DEFAULT 0,
	"date" INTEGER NOT NULL,
	"author" VARCHAR(255) NOT NULL,
	"author_id" INTEGER NOT NULL,
	"image_id" INTEGER NOT NULL DEFAULT 0,
	"topic_ot" VARCHAR(255) NOT NULL,
	"text_ot" TEXT NOT NULL,
	"topic_df" VARCHAR(255) NOT NULL,
	"text_df" TEXT NOT NULL);'); } catch(PDOException $error) {}
Wtedy będzie przechodziło instalację bez błędów
 
Last edited:
Back
Top