Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1] 2   Go Down

Author Topic: close to goal...  (Read 11358 times)

0 Members and 1 Guest are viewing this topic.

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
close to goal...
« on: December 28, 2005, 06:59:48 pm »

I have really troubled times to integrate smf mambo and cpg,but I think now is close to an end.
I bridged smf1.1rc1 and mambo 4.5.1a,unwrapped,bridge reg.It all works ok,now I want to add cpg 1.4.2.,run bridge manager(cpg) link it to mambo,all is ok but when I log in as admin in mambo and go to cpg and want to click on "users" button to see users I get msg."There was an error while processing a database query."
While executing query "SELECT id as user_id, username as user_name, email as user_email, UNIX_TIMESTAMP(registerDate) as user_regdate, UNIX_TIMESTAMP(lastvisitDate) as user_lastvisit, 1-block as user_active, COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as disk_usage, group_name, group_quota FROM `fouionli_mam`.mos_users AS u INNER JOIN cpg_usergroups AS g ON u.gid+100 = g.group_id LEFT JOIN cpg_pictures AS p ON p.owner_id = u.id GROUP BY user_id ORDER BY user_regdate DESC LIMIT 0, 25;" on Resource id #17

mySQL error: Table 'fouionli_mam.cpg_usergroups' doesn't exist
as last line says, table is missing,I think I need to sync databases(or tables),but don't know how,total newbie,please help
P.S.I used all your fixes for bridge and it helped,now I have to do one last thing,I hope.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: close to goal...
« Reply #1 on: December 28, 2005, 07:43:20 pm »

Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #2 on: December 28, 2005, 08:12:21 pm »

if it will help...
but I must says that my main problem is logging as admin to cpg "can't see members,but you can click on memberslist button,it is same msg.that I get when clicking on it as admin.
and my goal is to just share user data between these 3.,must be stand-alone to exp.when one user registers,I can change permission for every component(cpg,mambo,smf) so that same user is just member on mambo and cpg,but moderator on smf.this is my goal.

mambo site:www.4ionline.com
forum:www.4ionline.com/forum
cpg:www.4ionline.com/photo
user:test
pass:testing
Logged

Nibbler

  • Guest
Re: close to goal...
« Reply #3 on: December 28, 2005, 08:23:11 pm »

Please update to the latest stable version of the software before seeking support. Currently this is 1.4.3
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #4 on: December 28, 2005, 09:58:04 pm »

now I'm little less close to goal,installed 1.4.3 version put bridge up with mambo but with or without your bridge fixes I get fatal error msg. when I want to open coppermine
Logged

Nibbler

  • Guest
Re: close to goal...
« Reply #5 on: December 28, 2005, 10:01:13 pm »

Enable debug mode and post the mysql error message you receive.
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #6 on: December 28, 2005, 10:02:11 pm »

now I'm little less close to goal,installed 1.4.3 version put bridge up with mambo but with or without your bridge fixes I get fatal error msg. when I want to open coppermine
test user is same:U can use bridgemgr.php to enable disable bridge
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #7 on: December 28, 2005, 10:04:05 pm »

While executing query "insert into `fouionli_mam`.mos_session (session_id, username, guest, time, gid) values ("f90a555d726f78eae6a232cbe69e3093", "", 1, "1135803824",0)" on 0

mySQL error:
Logged

Nibbler

  • Guest
Re: close to goal...
« Reply #8 on: December 28, 2005, 10:06:33 pm »

Change

Code: [Select]
// insert the guest session
        cpg_db_query($sql);

to

Code: [Select]
// insert the guest session
        cpg_db_query($sql, $this->link_id);
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #9 on: December 28, 2005, 10:15:28 pm »

my mambo.inc.php is configured like in post already
I will try to delete test user in mambo and smf,which were added pre bridging
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #10 on: December 28, 2005, 10:23:23 pm »

ok got it working now I'm where I was before this fatal error,same spot as 1.4.2
pre-registered users were problem
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #11 on: December 28, 2005, 10:27:15 pm »

Now I get this msg.(same as before),only I changed name of database
While executing query "SELECT id as user_id, username as user_name, email as user_email, UNIX_TIMESTAMP(registerDate) as user_regdate, UNIX_TIMESTAMP(lastvisitDate) as user_lastvisit, 1-block as user_active, COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as disk_usage, group_name, group_quota FROM `fouionli_mam`.mos_users AS u INNER JOIN cpg143_usergroups AS g ON u.gid+100 = g.group_id LEFT JOIN cpg143_pictures AS p ON p.owner_id = u.id GROUP BY user_id ORDER BY user_regdate DESC LIMIT 0, 25;" on Resource id #17

mySQL error: Table 'fouionli_mam.cpg143_usergroups' doesn't exist

fouionli_mam is mambo database,and cpg143_usergroups is cpg table,as I said I need to sync user data,but don't know how
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #12 on: December 28, 2005, 10:31:35 pm »

tried ro experiment with copy cpg_usergroups table to mambo database and then it asks me that cpg_pictures are missing so I copyed them to mambo database,I've no longer get error msg,but in "users" window there is nobody
I think that I need to sync user data and member groups
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #13 on: December 28, 2005, 10:55:53 pm »

I done much testing with transfering tables in phpmyadmin and I think cpg needs cpg_usergroups in mambo database,but problem is that I think cpg is using user data from mambo(database) table and needs it tu put in cpg_usergroups table,but these two aren't compatible,that is my opinion
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #14 on: December 28, 2005, 11:01:39 pm »

do you know what does this meen "While executing query "SELECT id as user_id, username as user_name, email as user_email, UNIX_TIMESTAMP(registerDate) as user_regdate, UNIX_TIMESTAMP(lastvisitDate) as user_lastvisit, 1-block as user_active, COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as disk_usage, group_name, group_quota FROM `fouionli_mam`.mos_users AS u INNER JOIN cpg143_usergroups AS g ON u.gid+100 = g.group_id LEFT JOIN cpg143_pictures AS p ON p.owner_id = u.id GROUP BY user_id ORDER BY user_regdate DESC LIMIT 0, 25;" on Resource id #17

mySQL error: Column 'id' in field list is ambiguous"

Logged

Nibbler

  • Guest
Re: close to goal...
« Reply #15 on: December 28, 2005, 11:07:29 pm »

There is no facility in the mambo bridge to show the memberlist when you have cpg and mambo in different databases. You can either put them both in the same db or add a redirect instead, change this function:

Code: [Select]
function view_users() {}

to

Code: [Select]
function view_users() {
$this->redirect("/whatever_the_url_is_to_mambo_userlist");
}
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #16 on: December 28, 2005, 11:09:23 pm »

There is no facility in the mambo bridge to show the memberlist when you have cpg and mambo in different databases. You can either put them both in the same db or add a redirect instead, change this function:

Code: [Select]
function view_users() {}

to

Code: [Select]
function view_users() {
$this->redirect("/whatever_the_url_is_to_mambo_userlist");
}
so "user" option in cpg won't work,but how can I administrate users in cpg then,set permissions,ban...
Logged

Nibbler

  • Guest
Re: close to goal...
« Reply #17 on: December 28, 2005, 11:11:05 pm »

You can use the other pages like the groups page. Banning has its own page.
Logged

mato

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: close to goal...
« Reply #18 on: December 28, 2005, 11:18:49 pm »

do you think cpg will work "normally"if I use same database as mambo couse my problem is that when somebody registers in bridge to have ability to change user premission and status on every component independantly
Logged

Nibbler

  • Guest
Re: close to goal...
« Reply #19 on: December 28, 2005, 11:20:43 pm »

I don't know enough about mambo to be able to answer that.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.022 seconds with 19 queries.