coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: wintermute on June 08, 2004, 10:57:06 PM

Title: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: wintermute on June 08, 2004, 10:57:06 PM
I have combed over this forum and found a lot of great information, but I cannot find an answer to this one:

I have a VBulletin forum installed on a subdomain (http://forum.dancingmokey.com/forum) and I want to install coppermine. I downloaded Coppermine 1.2, read all the readmes , made the appropriate changes and ran the install. No errors (woo-hoo!) The problem I'm having is, you guessed it, cookies. I just cannot log into coppermine. It refers me back to the forum index when I click "Log In", but I'm already logged into the forum. I have been searching in this forum for a couple days and cannot find the answer. I've tried fresh installs twice, no luck. Can I get a hand with this one?

coppermine installed to:
http://forum.dancingmokey.com/gallery

vbulleting forum is:
http://forum.dancingmokey.com/forum

I went in the SQL and created an account in the coppermine cpg11d_users  table. username/password=test/test
I also created a matching account in the forum.
Title: Re: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: Joachim Müller on June 09, 2004, 09:16:02 AM
after loging in succesfully to the forum and manually re-entering the gallery url, I get
QuoteFatal error :
There was an error while processing a database query
. Something fishy with your setup, try re-doing the bridge file editing.
Post your relevant bridge file bits here (remember to replace your password with ***).

GauGau
Title: Re: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: wintermute on June 09, 2004, 04:06:30 PM
Thank you very much for your help, BTW.

From the /bridge/vbulletin.inc.php file:
define('VB_DB_NAME', 'forumdb'); // The name of the database used by the board
define('VB_BD_HOST', 'localhost'); // The name of the database server
define('VB_DB_USERNAME', 'wintermute'); // The username to use to connect to the database
define('VB_DB_PASSWORD', '**********'); // The password to use to connect to the database

From the /includes/init.inc.php file:
define('COPPERMINE_VERSION', '1.2.1');
// User database integration
// Uncomment the applicable line if you want to use it
// define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
define('UDB_INTEGRATION', 'vbulletin');
// define('UDB_INTEGRATION', 'yabbse');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);


(took out the last char in hidden PW)
Title: Re: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: Casper on June 09, 2004, 04:46:43 PM
Have you also modified line 32 of the bridge file.  For your install it should be;

define('VB_WEB_PATH', '/forum/');
Title: Re: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: wintermute on June 09, 2004, 06:24:30 PM
That value is as you say, I copied too little, sorry


// Modify the values below according to your Board installation
// ------------------------------------------------------------------------- //
// database configuration
define('VB_DB_NAME', 'forumdb'); // The name of the database used by the board
define('VB_BD_HOST', 'localhost'); // The name of the database server
define('VB_DB_USERNAME', 'wintermute'); // The username to use to connect to the database
define('VB_DB_PASSWORD', '*********'); // The password to use to connect to the database

// The web path to your vBulletin Board directory
// In this example http://yoursite_name.com/vbulletin23/
define('VB_WEB_PATH', '/forum/');
// ------------------------------------------------------------------------- //
// Nothing to edit below this line
Title: Re: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: wintermute on June 11, 2004, 04:37:01 AM
Did I miss something? I feel like such a n00b...
Title: Re: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: Casper on June 11, 2004, 11:19:43 AM
Please check that both cookies are not the same name.
Title: Re: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: wintermute on June 11, 2004, 05:33:53 PM
I performed a fresh install to the root directory of my domain, just to eliminate the subdomain issue (forum.dancingmokey.com/forum vs. www.dancingmokey.com)

So here's how it's setup:
forum location is now            http://www.dancingmokey.com
coppermine location is now    http://www.dancingmokey.com/gallery


from the vbulleting.inc.php-
// database configuration
define('VB_DB_NAME', 'dmforum'); // The name of the database used by the board
define('VB_BD_HOST', 'localhost'); // The name of the database server
define('VB_DB_USERNAME', 'wintermute'); // The username to use to connect to the database
define('VB_DB_PASSWORD', 'neuromancer'); // The password to use to connect to the database

// The web path to your vBulletin Board directory
// In this example http://yoursite_name.com/vbulletin23/
define('VB_WEB_PATH', '/');


from the config.inc.php-
// MySQL configuration
$CONFIG['dbserver'] =  "localhost";        // Your database server
$CONFIG['dbuser'] =     "wintermute";        // Your mysql username
$CONFIG['dbpass'] =     "********";                // Your mysql password
$CONFIG['dbname'] =   "dmforum";        // Your mysql database name


from the init.ing.php-
define('COPPERMINE_VERSION', '1.2.1');
// User database integration
// Uncomment the applicable line if you want to use it
// define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
define('UDB_INTEGRATION', 'vbulletin');
// define('UDB_INTEGRATION', 'yabbse');
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Start output buffering
ob_start();
// Report all errors except E_NOTICE
// This is the default value set in php.ini
// error_reporting (E_ALL ^ E_NOTICE);
error_reporting(E_ALL);


I created a new install of VBulletin, using a new MySQL database. I again went into the DB and inserted the test/test username/pw as well as creating an identical username/password on the VBulletin forum. I changed the cookie name in the database for coppermine from the default to 'gallerycookie' just to ensure that there is no cookie naming hiccups.
All this has failed to work.
The symptoms are exactly the same as before.
Am I just cursed?
Title: Re: Cookies in VBulletin 3.0.0 and Coppermine 1.2
Post by: wintermute on June 11, 2004, 07:51:57 PM
I put the "//" back in front of the vbulletin integration file. I'll just put the hyperlink on the front page.
I haven't been able to run accross anyone that has this integration working on VB3x.