CPG1.4.2/phpBB2 2.0.18: redirection failed CPG1.4.2/phpBB2 2.0.18: redirection failed
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

CPG1.4.2/phpBB2 2.0.18: redirection failed

Started by tomtom, November 25, 2005, 03:49:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tomtom

I have the following issue when trying to bridge coppermine and phpBB 2.0.18:
The document name you requested (/php/forum/phpBB2/....../php/cpgallery/) could not be found on this server.
(It seems, that the "../" command didn't work, because the last part with the path to the gallery always is appended to the URL of th pbpBB !!?)

Coppermine install: http://www.tsv-hoechst.de/php/cpgallery/
Forum install: http://www.tsv-hoechst.de/php/forum/phpBB2/
Coppermine version: cpg1.4.2
Forum version: phpBB 2.0.18
Test user account: cpgtest / cpgtest

BridgeManager settings:
Forum URL: http://www.tsv-hoechst.de/php/forum/phpBB2/
Relative path to your BBS's config file: ../forum/phpBB2/
Use post-based groups?: 0

Further information:
Until yesterday I run cpg1.3.5 using the patched bridge file ($Date: 2005/09/24 16:31:32 $) -> Everything worked fine!
Today I upgraded to cpg1.4.2 using the standard 1.4.2 bridge file ($Date: 2005/11/20 20:44:14 $) and following the descriptions in the manual 1.4.2!
Starting the bridge manager the first time I wondered, because there was no ask for the "Relative forum path" (Relative path to your BBS app from the webroot), like written in the documentation!?? Defining the other two paths and activating the bridge results (after logoff/login) in the error message shown above.
Detecting the paths manually shows, that the bridge manager did no changes "phpbb2018.inc.php",
code still shows:
if (!USE_BRIDGEMGR) {
$this->boardurl = 'http://www.yousite.com/phpBB2';
require_once('../phpBB2/config.php');


Editing these lines manually didn't work!

Changing encoding from ISO-8859 to UTF-8 like written here ( http://forum.coppermine-gallery.net/index.php?topic=24055.0 ) didn't solve this problem.  :(

Could you pls. help soon? Thanks!






Nibbler

Bridging needs to be enabled for me to help you. There are no code changes required with the new bridging system.

tomtom

Sorry, I didn't know.

Now I've activated the bridge and I created the "cpgtest"-account in the phpBB with "normal member rights".
Hope this will work!?

Thanks

Nibbler

Test account doesn't work but I found the problem. Look in bridge/phpbb2018.inc.php, find


$redirect = str_repeat('..', $levels) . rtrim($cpg['path'], '/') . '/';


and add in the missing slash


$redirect = str_repeat('../', $levels) . rtrim($cpg['path'], '/') . '/';

tomtom

Great job !!!  :)
Excellent program !!!  :D

By the way: I checked the again the original installer package of 1.4.2 and I found the missing slash there too.
Hope this statement is correct and will avoid problems for other 1.4.2<->2.0.18 bridge users too !?  ;)

Thanx a lot...
...and be sure, further questions will follow!  ;)

axisdata.network

Hello All, thanks for this answer and topic, It worked, I also would like to express that I found the problem in the original installer from 1.4.2 where the slash was missed too.

Thanks again, and regards,

Joachim Müller