Problem with intergration of phpbb2 and coppermine Problem with intergration of phpbb2 and coppermine
 

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

Problem with intergration of phpbb2 and coppermine

Started by Ice-Child, December 11, 2004, 11:28:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ice-Child

I followed it step by step. Had both of them working as stand alones. When I made all the file changes to get them working together, I get this instead of the coppermine page.

Fatal error :
There was an error while processing a database query

1.) Yes they are both installed on the same domain.
2.) Yes they were both working as stand alones.
3.) Yes the forums still work just fine, just cant get to coppermine.
4.) As of now, I cant even hit the logon page for coppermine.

Any help, I would be greatful for.

Thanks
Rob

Ice-Child

Figured I would get this up here. I am thinking the phpbb.inc.php is causing the problem. But am not sure

// database configuration
define('PHPBB_DB_NAME','phpBB');     // The name of the database used by the board
define('PHPBB_BD_HOST','localhost'); // The name of the database server
define('PHPBB_DB_USERNAME','*****');  // The username to use to connect to the    database
define('PHPBB_DB_PASSWORD','*****');      // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://www.endlessquests.com/nuke/modules.php?name=Forums',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/nuke/modules.php?name=Forums');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', FALSE);


Here is the cpr_redir.php as I have it modded.
<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/nuke/coppermine';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


If those help at all. I am thinking its in the phpbb.inc.php. But am not really sure where to change it. It is set up as per the "Integration steps"

Thanks in advance for any help,
Rob

kegobeer

The bridge file is designed to connect Coppermine with phpBB, not Coppermine with php-nuke, which is what you are trying to do.  Sorry, if you want Coppermine to work with a CMS, you need to use CPG-Nuke.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Ice-Child

Well, where am I going wrong ? We are using phpbb2, phpnuke, and coppermine. I want to merge coppermine and phpbb2 together (via somethiung like the bridge file). If you can see where I am screwing up please point it out. Its driving me insane at the moment. I had coppermine running as a stand alone for testing it to make sure I had everything set up correctly. I have had our forums up and running since day one when we put the site back up a month ago. Once I tried to bridge them coppermine died on me. More like, I cant get access to coppermine from phpbb2. So if you can point me in the right direction I would be greatful.

Thanks
Rob

Ice-Child

#4
Let me get my files zipped up and post them up. Maybe someone can figure it out, and see where I am going wrong. Its probably me just having a really bad blonde moment.

http://endlessquests.com/nuke/files/phpbb.inc.zip
http://endlessquests.com/nuke/files/cpg_redir.zip
http://endlessquests.com/nuke/files/init.inc.zip

Thanks
Rob

kegobeer

Like I said, Coppermine doesn't bridge with php-nuke.  You are using php-nuke with the phpBB port that comes with it.  You can't use Coppermine with nuke, or at least no one has done it successfully yet.

Due to lack of support from the phpnuke community the Coppermine/phpnuke project was abandoned in favor of the cpg-nuke project.  You will have to switch to cpgnuke to use Coppermine.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Ice-Child

Thank you much. Was all I needed to hear. Am headed to download the one I need then.

Thanks
Rob