CPG & PHPBB2 - Intergration - Login gets 404 reply CPG & PHPBB2 - Intergration - Login gets 404 reply
 

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

CPG & PHPBB2 - Intergration - Login gets 404 reply

Started by bigh, April 20, 2005, 09:37:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bigh

I've successfully integrated PHPbb2 and CPG but i keep gettina 404 msg straight after i login or log out, but when i go to the address bar and press enter it works?

What would i need to adjust?

I've also created a login:
Login: test
Password: test
http://www.nzrotaries.com/gallery/

I haven't touched the redirect code at all.

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

Nibbler


nthorpey

#2
i have the exact same problem , but mine doesnt work, can some one else try for me?

www.thorpeengineering.co.uk/gallery


user test
pass test

goes to page 404 when i log out

forum is www.thorpeengineering.co.uk/forum

same username and password.


thanks in advance

nick

Nibbler

Set the web path properly in the bridge file. Looks like it is set to '/phpBB2/' where it should be '/forum/'

nthorpey

thanks :) i've changed that to /forum

The forum now works perfectly but the gallery at /gallery gives this error


Fatal error: Call to undefined function: udb_authenticate() in /home/nthorpey/public_html/gallery/include/init.inc.php on line 260

I have adjusted this file to define phpbb as the active forum

thanks in advance :)

Nibbler

Make sure you are using the 1.3 version of the bridge file.

nthorpey

My bridge file has this at the top:

/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.3.3
  $Source: /cvsroot/coppermine/stable/bridge/phpbb.inc.php,v $
  $Revision: 1.11 $
  $Author: gaugau $
  $Date: 2005/04/19 03:17:13 $
**********************************************/

// ------------------------------------------------------------------------- //
// phpBB2 Integration for Coppermine                                         //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //


i assume this is just v1.11?

Where would i get the 1.3 version from ?

thanks for your help so far

Nibbler

That is the 1.3 version. I don't know why you get that error, but it has apeared before. Try searching for the message (without the parts that are specific to you).

Nibbler

You may have a parse error in the bridge file, post what you have changed.

nthorpey

// database configuration
define('PHPBB_DB_NAME', 'nthorpey_phpbb1';'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'nthorpey_phpbb1';'); // 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://yoursite_name.com/phpBB2/',

I'll do a search as you you say and see if it helps me at all.

thanks again for your help so far:)
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/forum/');



this is all i have changed in the phpbb.inc.php file, obviously password has the correct value in the real file

nthorpey

never mind !!!!! I am so stupid!

jjust noticed as i posted that there is an extra ';' after the user name and database name, turned out to be a typo :)

thanks for your help nibbler it was much appreciated :D