Fix for bridge to vBulletin with custom MySQL port Fix for bridge to vBulletin with custom MySQL port
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fix for bridge to vBulletin with custom MySQL port

Started by phill104, November 20, 2016, 10:16:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

phill104

From Sven Meeus via GitHub

I have been running a website with a Coppermine 1.5 to vBulletin bridge integration for over 10 years now. I recently switched to a HAProxy setup for my MySQL connections, running on a different port then the standard 3306.
This doesn't work with the current Coppermine vBulletin bridge, unless the following fix is applied to bridge/vbulletin30.inc.php (line 64)
64c64
<                     'host' => $config['MasterServer']['servername'] ? $config['MasterServer']['servername'] : 'localhost',
---
>                     'host' => $config['MasterServer']['servername'] ? $config['MasterServer']['servername'] . ($config['MasterServer']['port'] ? ':' . $config['MasterServer']['port'] : ':3306') : 'localhost' . ($config['MasterServer']['port'] ? ':' . $config['MasterServer']['port'] : ':3306'),
207c207


It would be nice to see this implemented, not only in 1.6 but also backported to 1.5.

I would assume the same fix could also be applied to other bridges, I leave it at your discretion to implement those.
It is a mistake to think you can solve any major problems just with potatoes.

ΑndrĂ©

Added support for custom MySQL server port in vBulletin bridge for cpg1.5.x. Ron already done this for cpg1.6.x.