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] 2   Go Down

Author Topic: errors in phpbb2 plus & CPG integ  (Read 13946 times)

0 Members and 1 Guest are viewing this topic.

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
errors in phpbb2 plus & CPG integ
« on: July 01, 2004, 04:14:15 pm »

Warning: Undefined index: user_level in /var/www/galleria/bridge/phpbb.inc.php on line 130

Warning: Undefined index: user_level in /var/www/galleria/bridge/phpbb.inc.php on line 164

I get that kind of errors.. I have PHPBB2 Plus in use and auto-group mod...
and CPG 1.3.0

is there a way to fix this?
Logged

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #1 on: July 01, 2004, 04:31:07 pm »

uh and theres more errors...

If not logged in and try to go to members pics .. mysql error comes...
as admin press admin tools -- mysql error...

heres the posted errors :
ADMIN TOOLS :
While executing query "SELECT aid, category, IF(username IS NOT NULL, CONCAT('(', username, ') ',title), CONCAT(' - ', title)) AS title FROM cpg11d_albums AS a LEFT JOIN phpbb_users AS u ON category = (10000 + user_id) ORDER BY category, title" on

mySQL error: Table 'galleria.phpbb_users' doesn't exist


USER GALLERIES:
While executing query "SELECT count(*) FROM cpg11d_albums as a WHERE category = '1' and AND a.aid NOT IN (2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,82,91,92) " on 0

mySQL error: You have an error in your SQL syntax near 'AND a.aid NOT IN (2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,2' at line 1


o_O *beep* is wrong?

uh and the user galleries owners has changed too.. bit stragne ..
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: errors in phpbb2 plus & CPG integ
« Reply #2 on: July 01, 2004, 05:59:57 pm »

Quote
mySQL error: Table 'galleria.phpbb_users' doesn't exist

Does this table actually exist, on the galleria database?

Quote
uh and the user galleries owners has changed too.. bit stragne ..

The ideal time to bridge is when both installs are new, or the coppermine install is new.  When you already have users on both installs, and you then bridge, it is unlikely they have the same user id on both.  As coppermine sees the pics and albums belonging to, say, user 3, but when you bridge user 3 is a different person, or may not exist, this causes problems.
You will have to change the entries in one of the databases to match the other.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #3 on: July 01, 2004, 06:15:42 pm »

Quote
mySQL error: Table 'galleria.phpbb_users' doesn't exist

Does this table actually exist, on the galleria database?


nope :) that table should be in portal.phpbb_users 
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: errors in phpbb2 plus & CPG integ
« Reply #4 on: July 01, 2004, 06:20:32 pm »

In that case please post the lines of your phpbb.inc.php you edited here. (lines 24 - 51)

Note, do not show the password.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #5 on: July 01, 2004, 07:22:56 pm »

// database configuration
define('PHPBB_DB_NAME', 'portal'); // 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', '***********'); // 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 '/'.
define('PHPBB_WEB_PATH', '/');
// 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

Logged

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #6 on: July 01, 2004, 07:23:48 pm »

Quote
uh and the user galleries owners has changed too.. bit stragne ..

The ideal time to bridge is when both installs are new, or the coppermine install is new.  When you already have users on both installs, and you then bridge, it is unlikely they have the same user id on both.  As coppermine sees the pics and albums belonging to, say, user 3, but when you bridge user 3 is a different person, or may not exist, this causes problems.
You will have to change the entries in one of the databases to match the other.

I tried to change them manually but.. ARGH it sucks :D
Logged

Nibbler

  • Guest
Re: errors in phpbb2 plus & CPG integ
« Reply #7 on: July 02, 2004, 12:44:27 pm »

Get the latest stable version of the phpbb bridge from here.
« Last Edit: July 02, 2004, 12:54:00 pm by Nibbler »
Logged

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #8 on: July 02, 2004, 02:48:49 pm »

well still the same errors occurs.. well i think i have to ask for users to upload their pics again.... or do that database editing... :/
Logged

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: errors in phpbb2 plus & CPG integ
« Reply #9 on: July 02, 2004, 03:26:53 pm »

Warning: Undefined index: user_level in /var/www/galleria/bridge/phpbb.inc.php on line 130

Warning: Undefined index: user_level in /var/www/galleria/bridge/phpbb.inc.php on line 164

I get that kind of errors.. I have PHPBB2 Plus in use and auto-group mod...
and CPG 1.3.0

is there a way to fix this?

Wich version of the Plus range do you use, v1.2 or v1.3?
Logged
DaMysterious.

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #10 on: July 03, 2004, 11:44:24 am »

Wich version of the Plus range do you use, v1.2 or v1.3?


1.3
Logged

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: errors in phpbb2 plus & CPG integ
« Reply #11 on: July 03, 2004, 12:03:41 pm »

Wich version of the Plus range do you use, v1.2 or v1.3?


1.3

Ok I'm using this version to. Maybe I can help.

Database tables from both plus and cpg may reside in a different database for me (I'm on a Windows server).


Place 'cpg_redir.php' into your phpBB Plus root (change the 'gallery' path to yours).
Code: [Select]
<?php 
$cpg_host
=$HTTP_SERVER_VARS['HTTP_HOST']; 
$cpg_path='/gallery';  //Change to make your path to Coppermine
header("Location: http://".$cpg_host.$cpg_path); exit; 
?>


Get the lastest phpbb.inc.php and change the settings according your setup.

My settings.
Code: [Select]
// 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', ''); // 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', '/');
// 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

Get the lastest init.inc.php.

Go to your Plus and create a special group eg. 'Gallery Users' and change your autogroup setting to this group. In CPG go as admin to groups and change the settings there and save.

That should solve your problems.


« Last Edit: July 03, 2004, 12:10:39 pm by DaMysterious »
Logged
DaMysterious.

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #12 on: July 03, 2004, 12:47:38 pm »

just wondering what tables i actually should edit to get the ownership of the personal galleries to match their real owners? at this point after integ they are messed up... I tried to change few fields but nothing did happen :(
Logged

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: errors in phpbb2 plus & CPG integ
« Reply #13 on: July 03, 2004, 01:27:46 pm »

just wondering what tables i actually should edit to get the ownership of the personal galleries to match their real owners? at this point after integ they are messed up... I tried to change few fields but nothing did happen :(

If CPG is already populated with users than they have to register in your Plus again (or you import them into the usertable of the Plus) as with use of the bridge the userbase from Plus (table phpbb_users) is used while the CPG userbase (table cpg13_users) is bypassed. After that you have to reassign all users from CPG to theire pictures in Plus (very heavy). May be you could better ask them to reupload theire pics after new registration. All data for pictures resides in 'cpg13_pictures'.
Logged
DaMysterious.

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #14 on: July 03, 2004, 01:29:20 pm »

that might be a good idea :) it was bit frustrating to edit database and nothing happened :D
Logged

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #15 on: July 03, 2004, 03:10:52 pm »

Warning: Undefined index: user_level in /var/www/galleria/bridge/phpbb.inc.php on line 130

Warning: Undefined index: user_level in /var/www/galleria/bridge/phpbb.inc.php on line 164

strange.. this error still comes when new member registers to forum and goes to gallery... o_O
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: errors in phpbb2 plus & CPG integ
« Reply #16 on: July 04, 2004, 08:04:36 am »

please post a link to your site.

GauGau
Logged

jimmyfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: errors in phpbb2 plus & CPG integ
« Reply #17 on: July 04, 2004, 11:03:50 am »

i'd rather not :) Adult site ;)

could that error come because i have 4 special usergroups..?
« Last Edit: July 04, 2004, 11:23:51 am by jimmyfi »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: errors in phpbb2 plus & CPG integ
« Reply #18 on: July 04, 2004, 12:48:45 pm »

It's OK to post a link to an adult site as long as you put a warning next to the link.

GauGau
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: errors in phpbb2 plus & CPG integ
« Reply #19 on: July 04, 2004, 02:05:28 pm »

I didn't ask to be sent the link over PM. In fact, my signature says not to PM me at all. PMing me even twice the same message doesn't make me more inclined to further look into this.

GauGau
Logged
Pages: [1] 2   Go Up
 

Page created in 0.081 seconds with 15 queries.