Advanced search  

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]

Pages: [1]   Go Down

Author Topic: phpBB Integration Problems  (Read 7618 times)

0 Members and 1 Guest are viewing this topic.

alldatjazz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
phpBB Integration Problems
« on: August 04, 2005, 08:23:25 pm »

Have a problem here and I've searched every where in the forums and I can't seem to find a solution. I installed phpbb and coppermine and they both work independently. I followed the integration steps and I keep getting this error when I log into Coppermine:

Code: [Select]
Fatal error :
There was an error while processing a database query

They are both in the same database and all the cookies are correctly named.

init.inc.php
Code: [Select]
define('COPPERMINE_VERSION', '1.3.3');
// User database integration
// Uncomment the applicable line if you want to use it
define('UDB_INTEGRATION', 'phpbb');
// define('UDB_INTEGRATION', 'invisionboard');
// define('UDB_INTEGRATION', 'vbulletin23');
// define('UDB_INTEGRATION', 'vbulletin30');
// define('UDB_INTEGRATION', 'yabbse');
// define('UDB_INTEGRATION', 'smf');
// define('UDB_INTEGRATION', 'woltlab21');
// define('UDB_INTEGRATION', 'punbb');

phpbb.inc.php
Code: [Select]
// database configuration
define('PHPBB_DB_NAME', 'atomic89_com1'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'atomic89_mysql'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '*****'); // The password to use to connect to the database

cpg_redir.php (which is in the forum directory)
Code: [Select]
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/pictures';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

Any ideas? Thanks!

Gallery www.atomic89.com/pictures
Forum www.atomic89.com/forums

login: test
password: test
« Last Edit: August 05, 2005, 02:04:48 am by Nibbler »
Logged

Nibbler

  • Guest
Re: phpBB Integration Problems
« Reply #1 on: August 04, 2005, 08:48:25 pm »

Disable the bridge by uncommenting out the phpbb line in init.inc.php, enable debug mode in config, then re enable the bridge. You will then get a more detailed error message which you can post here.
Logged

alldatjazz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: phpBB Integration Problems
« Reply #2 on: August 05, 2005, 12:14:15 am »

Here's what I got after I enabled debugging:

Code: [Select]
While executing query "SELECT user_id, username as user_name, user_level FROM `atomic89_com1`.phpbb_users WHERE user_id='2' AND user_password='' AND user_active='1'" on 0

mySQL error: Table 'atomic89_com1.phpbb_users' doesn't exist
« Last Edit: August 05, 2005, 12:33:39 am by alldatjazz »
Logged

Nibbler

  • Guest
Re: phpBB Integration Problems
« Reply #3 on: August 05, 2005, 12:16:12 am »

Right, so you either have your phpbb database name or table prefix set incorrectly.
Logged

alldatjazz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: phpBB Integration Problems
« Reply #4 on: August 05, 2005, 12:23:16 am »

in my database, should the prefix for both the forum and the gallery be the same?
Logged

Nibbler

  • Guest
Re: phpBB Integration Problems
« Reply #5 on: August 05, 2005, 12:24:58 am »

No, they should be different.
Logged

alldatjazz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: phpBB Integration Problems
« Reply #6 on: August 05, 2005, 12:27:37 am »

I'm sorry if I sound really stupid, but how do I change my database name or prefix settings?
Logged

Nibbler

  • Guest
Re: phpBB Integration Problems
« Reply #7 on: August 05, 2005, 12:49:40 am »

You modify the top of the bridge file, it's the same area you posted in your original post. the prefix is here:

Code: [Select]
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
and the database name is here:

Code: [Select]
define('PHPBB_DB_NAME', 'phpBB'); // The name of the database used by the board
Logged

alldatjazz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: phpBB Integration Problems
« Reply #8 on: August 05, 2005, 01:04:14 am »

YOU ARE THE MAN!!!
It works now. I realize why I didn't change the prefix... in the integration documentation I thought it stated to only change the sample settings not the whole section

Thanks again!

Now, let's see what I can do to break my site some more so I can ask you more questions. Haha.
Logged

phpbbguy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: phpBB Integration Problems
« Reply #9 on: August 09, 2005, 12:04:29 am »

talking about prefix what are you supposed to do with that, are you supposed to set a value for it?

i am having a login problem , but my coppermine actually integrates with my phpbb forum because it copied over the user groups , i just can't login in or register, another problem i may have is that my phpbb is 2 levels deep in the root , that is /phpbb2.16/phpBB2  but i have changed this in the setup file, any solutions for me? thanks.
Logged

Nibbler

  • Guest
Re: phpBB Integration Problems
« Reply #10 on: August 09, 2005, 12:11:30 am »

Hijacking a solved thread is not really a very good idea, keep to the one you already have.
Logged

phpbbguy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: phpBB Integration Problems
« Reply #11 on: August 09, 2005, 12:15:43 am »

i did not hijack anything , i think when i say i ment i change the path that is

// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/phpBB-2.0.16/phpBB2/');
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.