Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Phpbb to Coppermine Problem  (Read 12771 times)

0 Members and 1 Guest are viewing this topic.

Cartoons

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Phpbb to Coppermine Problem
« 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
« Last Edit: August 02, 2005, 01:13:49 am by Nibbler »
Logged

Nibbler

  • Guest
Re: Phpbb to Coppermine Problem
« Reply #1 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.
Logged

Cartoons

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Phpbb to Coppermine Problem
« Reply #2 on: August 01, 2005, 08:22:26 pm »

Ok, it all works now. 
Logged

Dazzer

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Phpbb to Coppermine Problem
« Reply #3 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 /

Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Phpbb to Coppermine Problem
« Reply #4 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

Dazzer

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Phpbb to Coppermine Problem
« Reply #5 on: October 09, 2005, 04:58:43 pm »

ok sorry coz im nebie in this  :-X
Logged

Dazzer

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Phpbb to Coppermine Problem
« Reply #6 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:
Code: [Select]
// ------------------------------------------------------------------------- //
// 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:
Code: [Select]
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:
Code: [Select]
<?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 /
Logged

Nibbler

  • Guest
Re: Phpbb to Coppermine Problem
« Reply #7 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.
Logged

Dazzer

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Phpbb to Coppermine Problem
« Reply #8 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 :(
Logged

Nibbler

  • Guest
Re: Phpbb to Coppermine Problem
« Reply #9 on: October 15, 2005, 04:02:13 am »

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

Dazzer

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
Re: Phpbb to Coppermine Problem
« Reply #10 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........ ???
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.