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: Re: User Groups not synced correctly with PHPbb 2.0.18  (Read 14925 times)

0 Members and 1 Guest are viewing this topic.

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« on: November 29, 2005, 01:11:58 pm »

I have a "better" problem. I haven't run the coppermine (hereinafter referred to as C.) for long. I started it the day before yesterday and it worked fine. Later i created accounts for my friends, who were supposed to have the admin rights. And it worked great, too. However, when i integrated the thing with phpBB 2.0.8, the above mentioned friends turned out to have lost their admin priviledges and i couldn access the users list in order to grant them those rights (i kept receiving the message "error while processing the database query". Well, the best thing i could think of is to debridge the two entities, but after that i CAN NO LONGER LOG IN AS THE ADMIN!!! What can i DO ABOUT IT?
PLEASE HELP!!!


I have the following issue when trying to bridge coppermine and XXX:
unable to log in as Admin
couldnt see the users list while the C and phpBB 2.0.8 were integrated:
"error processing the database query"


Coppermine install: http://pasportov.net/album/
Forum install: http://pasportov.net/phpBB2/
Coppermine version: cpg1.4.2
Forum version: phpBB 2.0.8
Test user account: zloy / gthtdjl

BridgeManager settings:
Forum URL:  http://pasportov.net/phpBB2/
Relative path to your BBS's config file:  ../phpBB2/
Use post-based groups?:  1
« Last Edit: November 29, 2005, 01:21:48 pm by Timofey »
Logged
Im not really a speed poster. I just need some support.

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #1 on: November 29, 2005, 01:32:59 pm »

And the point is that i don't understand what happens AT ALL!!! The point is that the database entry with my name and CORRECT pasword does exist in the users table in the database.
By the way, my name as the admin of the C and the phpBB were the same. As well as the password. Could it be the cause of the problem?
Logged
Im not really a speed poster. I just need some support.

Nibbler

  • Guest
Re: Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #2 on: November 29, 2005, 01:35:15 pm »

Don't hijack other people's threads with unrelated problems. Temporarily comment out this line in groupmgr.php and then go there directly in your browser to re-sync the groups.

Code: [Select]
if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
Code: [Select]
//if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
The older phpbb bridge needs updating with new fixes, please have patience.
Logged

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #3 on: November 29, 2005, 01:56:53 pm »

Sorry for having hijacked the other thread.
I've done what you told me to. But i still cant log in under my admin login and i don't have the admin buttons under other users.
is it worth, perhaps, running the install.php again?
Or what else can i do? And why does it happen?
Could you at least tell me what properties should an Admin have in the database (mysql)? Perhaps something got corrupt in the integration process and i could fix it manually?
Logged
Im not really a speed poster. I just need some support.

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #4 on: November 29, 2005, 02:12:01 pm »

Sorry again. It seems to have solved the login problem. However, i still cannot able to view the users list, whether the post groups are enabled or disabled.
Logged
Im not really a speed poster. I just need some support.

Nibbler

  • Guest
Re: Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #5 on: November 29, 2005, 02:34:15 pm »

Please wait for me to post the updated file, I'll need to find and install phpbb 2.0.8 first.
Logged

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #6 on: November 29, 2005, 03:18:02 pm »

And, sorry for bothering again, can the fact, that phpBB and the C use different dbs be the cause of the problem?
However, it doesnt seem it can, for i still can see the CORRECT joint list of usergroups from both phpBB and the C. While there is a bug in there, too. For the groups, whose names are in Russian (i am russian) are shown as empty fields. The ones, that have numbers in them, or commas and fullstops, have only these symbols in the fields.
Maybe i could fix the problems myself? What should i be looking for and in which files?
Logged
Im not really a speed poster. I just need some support.

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #7 on: November 29, 2005, 04:29:46 pm »

Here is the message i get in the debug mode.

While executing query "SELECT count(*) FROM `danshin1_past`.phpbb2_users WHERE 1" on 0

mySQL error:


Файл: /pub/home/danshin1/pastol/htdocs/album/include/functions.inc.php - Строка: 248
Logged
Im not really a speed poster. I just need some support.

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #8 on: November 29, 2005, 07:03:20 pm »

I hope that what i write is of some assistance.
The line that is making the dbquery is in the udb_base.inc.php file, #172

Code: [Select]
$result = cpg_db_query("SELECT count(*) FROM {$this->usertable} WHERE 1");
I'm not an advanced php or MySQL programmer, so i have a question: is "WHERE 1" really correct syntax? In fact, i'm more used to "WHERE somethin=something_else". If it is correct, than what does it mean? Or, at least, what is it supposed to mean?
Logged
Im not really a speed poster. I just need some support.

Nibbler

  • Guest
Re: Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #9 on: November 29, 2005, 07:05:43 pm »

Just wait for me to post the updated file. The cause of the error is well understood.
Logged

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #10 on: November 29, 2005, 07:39:03 pm »

And there is another thing i thought might be of some importance (sorry for bugging again :) ). The point is that phpBB and the C use DIFFERENT databases. I mean, they both use MySQLs, but the databases have different names. I tried experimenting with the code and inserted

$new_connexion = cpg_db_connect();

into udb_base.inc.php into the "get_user_count()" function after "if (!$user_count) {" thing. The error message changed into "acces for (the user of the C database) was denied for (the phpBB) database.

So, may the fact that the two things use different dbs pose a problem?
Logged
Im not really a speed poster. I just need some support.

Nibbler

  • Guest
Re: Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #11 on: November 29, 2005, 07:49:42 pm »

I'm going to lock this thread if you keep on posting :)
Logged

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #13 on: November 30, 2005, 10:54:58 am »

Now then... The fact that the two thingies used different databases turned out to be the cause of my userlist problem. Having unlocked the installation script and having run the script once again, i managed to solve it (now they use the same db). The group problem still persists, but i haven't looked through the thread you directed me to. Thanx for that, anyway. Im going to read it right away. My point is that ALL USERS SHOULD USE THE SAME DBS FOR THE C AND PHPBB. I have never seen this piece of advice anywhere.
Still, i see the correct number of usergroups, even the names that are in latin alphabet. Are you sure the briging works alright with non-latin fonts?

And one more thing: for some unknown reason, i can't see the C unless i have logged in in the phpBB. That is a real mystery ;) . Sorry for having posted the message. Please dont lock it :) 'Tis sensible, isnt it?
Logged
Im not really a speed poster. I just need some support.

Timofey

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • Официальный сайт группы П&#1072
Re: User Groups not synced correctly with PHPbb 2.0.18
« Reply #14 on: November 30, 2005, 11:05:59 am »

Ive seen the thread you directed me to, downloaded and uploaded the files you posted there. Thanx for them, but they dont solve the problem. I still don't see the russian names of the groups. And it is really crucial. Thanx in advance.
Logged
Im not really a speed poster. I just need some support.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.