A member of vBG who switched from PHP 5.4 to 5.5 reported this error:
This line refers to mysqli_real_connect() and parameter 6 is the port.
This is what he has in his config.php
His hoster seems to be 1&1.
I asked him to change the line 1359 to:
That fixed the problem, but it is only a temporarily solution. It would help if you could add support for connections to database server via socket.
Code:
Database error in vBulletin : mysqli_real_connect() expects parameter 6 to be long, string given /xxx/includes/class_core.php on line 1359
bool mysqli_real_connect ( mysqli $link [, string $host [, string $username [, string $passwd [, string $dbname [, int $port [, string $socket [, int $flags ]]]]]]] )
PHP Code:
$config['MasterServer']['port'] ='/tmp/mysql5.sock';
I asked him to change the line 1359 to:
PHP Code:
$connect = $this->functions['connect']($link, $servername, $username, $password, '', null, '/tmp/mysql5.sock');
Comment