coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Cartoons on August 01, 2005, 04:25:15 PM

Title: Phpbb to Coppermine Problem
Post by: Cartoons on August 01, 2005, 04:25:15 PM
www.zeldadungeon.net/forum/index.php
www.zeldadungeon.net/gallery1/index.php

Error:

Notice: unserialize(): Error at offset 0 of 92 bytes in /usr/local/etc/httpd/zd.telefragged.com/gallery1/bridge/phpbb.inc.php on line 92

// database configuration
define('PHPBB_DB_NAME', '***********); // The name of the database used by the board
define('PHPBB_BD_HOST', '***********'); // The name of the database server
define('PHPBB_DB_USERNAME', '**********'); // 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/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'forum_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table

User: Test
Pass: password
Title: Re: Phpbb to Coppermine Problem
Post by: Nibbler on August 01, 2005, 07:35:58 PM
You have set your Coppermine cookie name to phpbb2mysql. You should not use the same cookie name for both coppermine and your forum, as stated in the docs.
Title: Re: Phpbb to Coppermine Problem
Post by: Cartoons on August 01, 2005, 08:22:26 PM
Ok, it all works now. 
Title: Re: Phpbb to Coppermine Problem
Post by: Dazzer on October 09, 2005, 04:53:26 PM
i should change this
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies to

define('PHPBB_COOKIE_PREFIX', 'coper133'); // The prefix used for board cookies

my cookie in my forum is :phpbb2mysql
coppermine:
cookie_name cpg133
cookie_path /

Title: Re: Phpbb to Coppermine Problem
Post by: Stramm on October 09, 2005, 04:56:40 PM
Dazzer, if you have problems then start a new thread and describe them. Don't PM me for support and don't hijack other threads
Title: Re: Phpbb to Coppermine Problem
Post by: Dazzer on October 09, 2005, 04:58:43 PM
ok sorry coz im nebie in this  :-X
Title: Re: Phpbb to Coppermine Problem
Post by: Dazzer on October 15, 2005, 02:05:57 AM
im trying to integrate to my localhost.
i have install coppermine and phpbb. i follow the integrate steps but i get this error again:
Notice: unserialize(): Error at offset 0 of 22 bytes in /htdocs/gallery/bridge/phpbb.inc.php on line 92

phpbb.inc.php file:
// ------------------------------------------------------------------------- //
// phpBB2 Integration for Coppermine                                         //
// ------------------------------------------------------------------------- //
// Modify the values below according to your Board installation              //
// ------------------------------------------------------------------------- //

// database configuration
define('PHPBB_DB_NAME', 'phpbb'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'root'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '123'); // 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', 'http://localhost/phpbb/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table

init.inc.php file:
define('COPPERMINE_VERSION', '1.3.4');
// 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');


in /phpbb/ file cpg_redir.php:
<?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;
?>

in phpbb :
cookie_name: phpbb2mysql
cookie_path: /phpbb
cookie_domain: .localhost
in cpg:
      cookie_name cpg133
      cookie_path /
Title: Re: Phpbb to Coppermine Problem
Post by: Nibbler on October 15, 2005, 03:26:51 AM
define('PHPBB_WEB_PATH', 'http://localhost/phpbb/'); => define('PHPBB_WEB_PATH', '/phpbb/');
cookie_path: /phpbb => cookie_path: /
.localhost is meaningless

Read the instructions properly.
Title: Re: Phpbb to Coppermine Problem
Post by: Dazzer on October 15, 2005, 03:49:59 AM
still get this:
Notice: unserialize(): Error at offset 0 of 22 bytes in /htdocs/gallery/bridge/phpbb.inc.php on line 92
i changed cookie_path: /phpbb => cookie_path: / and define('PHPBB_WEB_PATH', 'http://localhost/phpbb/'); => define('PHPBB_WEB_PATH', '/phpbb/'); also .localhost to localhost but doesnt work :(
Title: Re: Phpbb to Coppermine Problem
Post by: Nibbler on October 15, 2005, 04:02:13 AM
You'll need to clear your cookies after making the changes.
Title: Re: Phpbb to Coppermine Problem
Post by: Dazzer on October 15, 2005, 04:17:42 AM
i clear all cookies and doesnt work.
i dont know where is the problem,i dont know what to check........ ???