Cookies in VBulletin 3.0.0 and Coppermine 1.2 Cookies in VBulletin 3.0.0 and Coppermine 1.2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Cookies in VBulletin 3.0.0 and Coppermine 1.2

Started by wintermute, June 08, 2004, 10:57:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wintermute

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.

Joachim Müller

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

wintermute

#2
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)

Casper

Have you also modified line 32 of the bridge file.  For your install it should be;

define('VB_WEB_PATH', '/forum/');
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

wintermute

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

wintermute

Did I miss something? I feel like such a n00b...

Casper

Please check that both cookies are not the same name.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

wintermute

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?

wintermute

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.