cpg_redir.php error cpg_redir.php error
 

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

cpg_redir.php error

Started by kemper, November 21, 2005, 04:51:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kemper

I have completed all of the documented steps for integration of Coppermine 1.3.5 and PHPBB2.  When I go to login, it sends me to PHPBB2 login.  After I enter username and password, log in sends me to: http://www.mysite.com/forum/cpg_redir.php?sid=e7e0a43cf5d2e46a4ad38bbad8718e72.  This only displays 403 Forbidden Page, "You are not authorized to view this page".

What could I have done incorrectly?  How can I rectify?

Assistance is greatly appreciated.

Awesome product!

Joachim Müller

When requesting bridge support..
An error 403 forbidden is not directly related to coppermine, but to your webserver setup: does the user have permissions to access the cpg_redir.php file on your server? Posting an actual link to your site instead of a dummy url would have helped...


Nibbler

You need to either get index.php set to be displayed automatically when going to /gallery by using DirectoryIndex or mod the redirect so it does this:

$cpg_path='/gallery/index.php';

kemper


Nibbler

Instead of this:


<?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;
?>



You can put this:


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



Help using DirectoryIndex is beyond the scope of this support board, if you want to use that then search the web. Also please correct the coppermine version info in your profile as you are running 1.3.x not 1.4.x

kemper


kemper

Dammit!  It was something that simple.  I should have thought of that myself.  Thanks for the assistance!