breadcrumb error - bridge between Coppermine and PHPBB ver 2.0.18 breadcrumb error - bridge between Coppermine and PHPBB ver 2.0.18
 

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

breadcrumb error - bridge between Coppermine and PHPBB ver 2.0.18

Started by deauvilleuk, November 02, 2005, 09:22:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

deauvilleuk

I have carried out the instructions per your site to bridge the two and have entered the correct SQL database information and username and password to access it.

When I go to the gallery now I get the following :

Fatal error: Call to undefined function breadcrumb() in /home/deauvill/public_html/gallery/index.php on line 159

My website locations are

Gallery - www.deauvilleuk.org/gallery/
Forum - www.deauvilleuk.org/forum/

I have created a test account called  Test_Account  with a password of Testing123

The bridge file changes have made are as follows :

// database configuration
define('PHPBB_DB_NAME', 'deauvill_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', 'deauvill_deavil'); // 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/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/forum/');

Nibbler

Check your changes to init.inc.php, maybe you have introduced a parse error.

deauvilleuk

Just looked at the init.inc.php file

Looks ok when I open the original but then when I remove the // on the PHPBB line then save it the lines all jumble up and not as alligned as when first opened.

Looks like this now :

<?php// ------------------------------------------------------------------------- //// Coppermine Photo Gallery 1.3.2                                            //// ------------------------------------------------------------------------- //// Copyright (C) 2002-2004 Gregory DEMAR                                     //// http://www.chezgreg.net/coppermine/                                       //// ------------------------------------------------------------------------- //// Updated by the Coppermine Dev Team                                        //// (http://coppermine.sf.net/team/)                                          //// see /docs/credits.html for details                                        //// ------------------------------------------------------------------------- //// 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.                                       //// ------------------------------------------------------------------------- //// CVS version: $Id: init.inc.php,v 1.10 2004/08/10 15:24:47 nibbler999 Exp $// ------------------------------------------------------------------------- //define('COPPERMINE_VERSION', '1.3.2');// User database integration// Uncomment the applicable line if you want to use itdefine('UDB_INTEGRATION', 'phpbb');// define('UDB_INTEGRATION', 'invisionboard');// define('UDB_INTEGRATION', 'vbulletin23');// define('UDB_INTEGRATION', 'vbulletin30');// define('UDB_INTEGRATION', 'yabbse');// define('UDB_INTEGRATION', 'smf');// define('UDB_INTEGRATION', 'woltlab21');// define('UDB_INTEGRATION', 'punbb');if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');// Start output bufferingob_start();// Report all errors except E_NOTICE// This is the default value set in php.ini// error_reporting (E_ALL ^ E_NOTICE);error_reporting(E_ALL);set_magic_quotes_runtime(0);// used for timing purpose$query_stats = array();$queries = array();// Perform database queries to calculate user's privileges based on group membershipfunction cpgGetUserData($pri_group, $groups, $default_group_id = 3){        //Parameters :        //                $pri_group (scalar) :         Group ID number of the user's 'main' group. This is the group that will be        //                                                                                        the user's profile display. ($USER_DATA['group_id'])        //        //                $groups (array) :                        List of group ids of all the groups that the user is a member of. IF this list        //                                                                                        does not include the $pri_group, it will be added.        //        //                $default_group_id (scalar) :         The group used as a fall-back if no valid group ids are specified.        //                                                                                                        If this group also does not exist then CPG will abort with a critical        //                                                                               



Instead of this :



<?php

// ------------------------------------------------------------------------- //

// Coppermine Photo Gallery 1.3.2                                            //

// ------------------------------------------------------------------------- //

// Copyright (C) 2002-2004 Gregory DEMAR                                     //

// http://www.chezgreg.net/coppermine/                                       //

// ------------------------------------------------------------------------- //

// Updated by the Coppermine Dev Team                                        //

// (http://coppermine.sf.net/team/)                                          //

// see /docs/credits.html for details                                        //

// ------------------------------------------------------------------------- //

// 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.                                       //

// ------------------------------------------------------------------------- //

// CVS version: $Id: init.inc.php,v 1.10 2004/08/10 15:24:47 nibbler999 Exp $

// ------------------------------------------------------------------------- //



define('COPPERMINE_VERSION', '1.3.2');

// User database integration

// Uncomment the applicable line if you want to use it

// define('UDB_INTEGRATION', 'phpbb');

// define('UDB_INTEGRATION', 'invisionboard');

// define('UDB_INTEGRATION', 'vbulletin23');

// define('UDB_INTEGRATION', 'vbulletin30');

// define('UDB_INTEGRATION', 'yabbse');

// define('UDB_INTEGRATION', 'smf');

// define('UDB_INTEGRATION', 'woltlab21');

// define('UDB_INTEGRATION', 'punbb');

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

// Start output buffering

ob_start();

// Report all errors except E_NOTICE

// This is the default value set in php.ini

// error_reporting (E_ALL ^ E_NOTICE);

error_reporting(E_ALL);


deauvilleuk

Great  ;D

I can now see the gallery -

But when I click Login it is saying page cannot be found

www.deauvilleuk.org/gallery/
www.deauvilleuk.org/forum/

username - Test_Account
password - testing123


deauvilleuk

Yep I logged into forum, then back into gallery.

Thank you very much for all your help   ;D

Cheers

Graham

Joachim Müller