coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: uk_martin on July 10, 2004, 09:23:11 PM

Title: [Solved]: Installation help needed
Post by: uk_martin on July 10, 2004, 09:23:11 PM
I have followed the installation instructions as best as I can understand them...but obviously not well enough.

phpBB 2.08 no longer allows me to log in from the phpBB page

I can call up Coppermine 1.3, but when I try to log in, I get an "error not found page" with the URL
  http://.../Members/galleries/login.php?referer=%2FMembers%2Fgalleries%2Findex.php

For information...

The Coppermine installation is at    /Members/galleries
The phpBB installation is at           /Members/forum

Any advice on how to cure this would be much appreciated.

Thanks

Martin

Title: Re: Installation help needed
Post by: Casper on July 10, 2004, 09:30:11 PM
Remove the bridge (replace the '//' in front of phpbb line in the init.inc.php file), and check both installs work well alone.

If they do, then re-install the bridge, and if it breaks it again, post the changes you made to your bridge file here (without the password)
Title: Re: Installation help needed
Post by: uk_martin on July 10, 2004, 10:48:00 PM
Hi, and thanks for the reply...

Well I hope that this makes sense, but, having done what you asked, I can now log in and out of Coppermine, but I can't log in or out of phpBB

Look forward to hearing from you again...

Martin
Title: Re: Installation help needed
Post by: Casper on July 11, 2004, 02:01:40 PM
Try removing the 'cpg_redir.php' you added to the forum files.
Title: Re: Installation help needed
Post by: uk_martin on July 11, 2004, 04:20:29 PM
OK, I've done that...but I still can't log in to phpBB

Just a quick thought about the wording of this particular file...mine is...

<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?

correct me if I'm wrong, but the path to the galleries (.../Members/galleries )  shouldn't that particular line read...
$cpg_path='/Members/galleries';

or maybe not...I dunno, just a thought

Anyway, as this file is currently out of the loop, it shouldn't be the reason why I can't log into phpBB, so I look forward to hearing from you as to what could be causing the hang-up.

Thanks

Martin
Title: Re: Installation help needed
Post by: Casper on July 11, 2004, 08:47:19 PM
Make sure your coppermin cookie and forum cookie are different.

I can't think how this could otherwise be related to coppermine, if the 2 are not bridged.
Title: Re: Installation help needed
Post by: uk_martin on July 11, 2004, 09:52:23 PM
OK, I'm going to go for a database deletion and re-installation of phpBB then.

Am I right in thinking that it might be best to use the existing Cooppermine database as the target database for phpBB to use when I reinstall it, rather than to have an independent database?

I'll wait on your advice before proceeding.

Thanks

Martin
Title: Re: Installation help needed
Post by: Casper on July 12, 2004, 01:58:33 AM
It is highly recommended that the forum and coppermine share the same database, just have different table pre-fixes.

Title: Re: Installation help needed
Post by: uk_martin on July 12, 2004, 10:36:04 PM
I've re-installed phpBB, using the Gallery database.

Now I can log in and out of phpBB again, and I can log in and out of Coppermine again, but when I try to bridge the two, I get the Not Found screen again with the following URL when I try to log in to Coppermine...
http://www.../Members/galleries/login.php?referer=%2FMembers%2Fgalleries%2Findex.php

commenting / uncommenting the  init_inc.php  file at the line with   // define('UDB_INTEGRATION', 'phpbb');   in it switches my problem on and off, so at the moment with the comments in, both work happily independently, but if I remove the comments, the problem occurs.

Hope this diagnosis helps.

Martin
Title: Re: Installation help needed
Post by: Joachim Müller on July 13, 2004, 08:33:59 AM
unless you post a link (and maybe a test user account), I'm afraid little will improve...

GauGau
Title: Re: Installation help needed
Post by: uk_martin on July 13, 2004, 09:13:31 AM
Time to hold my hands up....  ::)

I retraced my steps and spotted a spelling mistake in the path to Galleries in the phpbb.inc.php file. It's been corrected and I now have integration.

Thanks to you guys for your help, it's been a good learning curve, BUT having got integration, I do have one more snag...

Prior to integration, I upgraded from version 1.2 to 1.3...and NOW, I have no folders showing in the Batch Add Files function despite the paths being correct in Config and the CHMOD settings being correct. In the past I had userpics and any subfolders within userpics shown, but now not even userpics is displayed.

All the existing pics show up in the gallery, and the Albums and categories are still there the way that they were, but uploading the pics is now impossible.

Is this a symptom of the integration or the upgrade, and what can be done to fix it?
Title: Re: Installation help needed
Post by: Joachim Müller on July 13, 2004, 10:05:22 AM
Glad you were able to fix this and had the guts to admit it was your fault (thereby resolving your thread).

You mustn't ftp-upload to the userpics folder, in fact you were never meant to (not even in cpg1.2.x).
Coppermine1.3.x just enforces this rule, read the documentation (http://coppermine.sourceforge.net/manual.php#batch_add_pics) that comes with coppermine.

GauGau

P.S. We have a "one question per thread" policy on this board: in the future, please start a new thread when one issue is resolved and you're looking for help on another issue.