Seite 1 von 1

[3.2] SQL ERROR. Komischer Fehler [gelöst]

Verfasst: 06.10.2018 19:12
von Sammler22
Hallo an alle! Ich habe zwei Foren, identisch auf Version 3.2.0! Nun muss ich PHP hochstellen auf 7.1! Wenn ich dies mache, geht ein Forum weiterhin normal und perfekt, das andere geht weg und folgende Fehlermeldung erscheint. Was könnte da das Problem sein? Vielen Dank an alle!

General Error
SQL ERROR [ mysql4 ]

mysql_connect function does not exist, is mysql extension installed? []

An sql error occurred while fetching this page. Please contact an administrator if this problem persists.

Re: [3.2] SQL ERROR. Komischer Fehler

Verfasst: 06.10.2018 19:19
von Crizzo
Hi,

config.php öffnen und MySQL auf MySQLi ändern.

Suche: (kann leicht abweichen)

Code: Alles auswählen

$dbms = 'phpbb\\db\\driver\\mysql'; 
Ersetze mit:

Code: Alles auswählen

$dbms = 'phpbb\\db\\driver\\mysqli';
Dann sollte es gehen.

Grüße

PS: Ganze config.php sieht so aus:

Code: Alles auswählen

<?php
// phpBB 3.2.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = '';
$dbport = '';
$dbname = 'databasename';
$dbuser = 'databaseuser';
$dbpasswd = 'blablubb';
$table_prefix = 'phpbb_';
$phpbb_adm_relative_path = 'adm/';
$acm_type = 'phpbb\\cache\\driver\\file';

@define('PHPBB_INSTALLED', true);
// @define('PHPBB_DISPLAY_LOAD_TIME', true);
@define('PHPBB_ENVIRONMENT', 'production');
// @define('DEBUG_CONTAINER', true);
 

Re: [3.2] SQL ERROR. Komischer Fehler

Verfasst: 06.10.2018 19:42
von Sammler22
Vielen Dank hat super geklappt! Schönes Wochenende!

Re: [3.2] SQL ERROR. Komischer Fehler [gelöst]

Verfasst: 12.10.2018 01:45
von Fred13
Hi,

hatte das gleiche Problem und mein Board läuft auch wieder. Danke.

ich "schleppe" noch eine config von 3.0 mit mir rum...
Sollte ich dies

Code: Alles auswählen

@define('PHPBB_INSTALLED', true);
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
auch updaten, wennn ich folgendes lese:
Crizzo hat geschrieben:

Code: Alles auswählen

@define('PHPBB_INSTALLED', true);
// @define('PHPBB_DISPLAY_LOAD_TIME', true);
@define('PHPBB_ENVIRONMENT', 'production');
// @define('DEBUG_CONTAINER', true);
Außerdem bekomme ich auf der PHP-Info Seite im Admin Bereich etliche Warnungen oben:
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/template/context.php on line 204: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3291)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3291)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3291)
Ideen? Ist so mit PHP 7.2, zuvor bei PHP 5.6 nix..

Danke und Gruß