Phpbb to Coppermine Problem Phpbb to Coppermine Problem
 

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

Phpbb to Coppermine Problem

Started by Cartoons, August 01, 2005, 04:25:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cartoons

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

Nibbler

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.

Cartoons


Dazzer

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 /


Stramm

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

Dazzer


Dazzer

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 /

Nibbler

define('PHPBB_WEB_PATH', 'http://localhost/phpbb/'); => define('PHPBB_WEB_PATH', '/phpbb/');
cookie_path: /phpbb => cookie_path: /
.localhost is meaningless

Read the instructions properly.

Dazzer

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 :(

Nibbler

You'll need to clear your cookies after making the changes.

Dazzer

i clear all cookies and doesnt work.
i dont know where is the problem,i dont know what to check........ ???