Bridging problem! Bridging problem!
 

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

Bridging problem!

Started by dallo, December 05, 2010, 04:10:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dallo

I am a newbie trying to bridge Coppermine with VBulletin 4.8.0  cpg 1.5.10

My website path is:  http://www.sthelenschat.com

My gallery path is:  http://www.sthelenschat.com/camera/

When I use the bridge wizard I get the following error message:  /camera/includes/config.php doesn't exist. Correct the value you entered for Relative path to your bridge app's config file

I have read the forums and manual and tried every obvious path to my gallery but it will not bridge.


Αndré

Quote from: dallo on December 05, 2010, 04:10:02 AM
/camera/includes/config.php
That's no relative path, but an absolute one.

dallo

Thanks Andre.  I sorted it by using the following because I do not have a forum file in my path.

http://www.sthelenschat.com

../

That worked OK, however when I try to enable the bridge I receive the following error message:

Coppermine critical error:
Unable to connect to UDB database !

MySQL said
:

The MySQL tells me nothing!  I have scoured the forum queries but cannot find anyting with this error message related to VBulletin.


Αndré

Seems that you have to debug the following function in bridge/udb_base.inc.php:
    function connect($id = '')
    {
        global $CONFIG;

        // Define whether we can join tables or not in SQL queries (same host & same db or user)
        $this->can_join_tables = ($this->db['host'] == $CONFIG['dbserver'] && ($this->db['name'] == $CONFIG['dbname'] || $this->db['user'] == $CONFIG['dbuser']));

        if ($id){
            $this->link_id = $id;
        } else {
            // Connect to udb database if necessary
            if (!$this->can_join_tables) {
                $this->link_id = mysql_connect($this->db['host'], $this->db['user'], $this->db['password']);
                if (!$this->link_id) {
                    die("<strong>Coppermine critical error</strong>:<br />Unable to connect to UDB database !<br /><br />MySQL said: <strong>" . mysql_error() . "</strong>");
                }
                mysql_select_db ($this->db['name'], $this->link_id);
            } else {
                $this->link_id = 0;
            }
        }
    }
    // end function connect

dallo

Thank you Andre.

Will reinstall and use your advice.