Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: Karmalakas on January 12, 2005, 04:17:00 AM

Title: New member registration
Post by: Karmalakas on January 12, 2005, 04:17:00 AM
while trying to register i get this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fx65.nytka.org%2Ferror.jpg&hash=acd9bd32e7d932119056da2c2eeab7ad04531179)
and this:
Notice: Duplicate entry '0' for key 1 in /***/***/***/includes/database.php on line 184

i've read alot of posts here and couldn't understand anything and almost all the posts are about login module :(

any suggestions? please
and could it be so that i can't access com_smf_registration config? it just takes me back to mambo backend homepage

P.S. How to make that while registering there were no agreement?
Title: Re: New member registration
Post by: [Unknown] on January 12, 2005, 04:47:04 AM
What version of Mambo?

-[Unknown]
Title: Re: New member registration
Post by: Karmalakas on January 12, 2005, 05:00:25 AM
4.5.1a

OK
i've downloaded the latest smf bridge version and now it works fine ;) exept login module (i can't login or logout through it) so i think i'll have to search for the solution in the forum:(
Title: Re: New member registration
Post by: Karmalakas on January 12, 2005, 05:22:25 AM
hmm...
the same again when i enable the account activation in Mambo
if i disable it, then it shows "you can login now" or smth like that, but i want that users should confirm their e-mail addresses

and i noticed one more thing. When registering, it writes in mos_users an entry with ID "0" and when registering other member it again does the same thing and the second member isn't registered because of the duplicate entry ID "0"

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fx65.nytka.org%2Ferror2.jpg&hash=9a2d059f06e60f078553a64cee65e660ba51e0c8)
Title: Re: New member registration
Post by: Orstio on January 12, 2005, 06:38:38 AM
Did you have the PhpBB component installed previously? 

The PhpBB component removes the activation row from Mambo's user table, among other things.
Title: Re: New member registration
Post by: Karmalakas on January 12, 2005, 07:31:25 AM
yep, i had phpbb component :(
so what should i do now?
i'm new to all this stuff so pls could you help me?
maybe it's possible to add it using phpmyadmin?
Title: Re: New member registration
Post by: PaulEarley on January 12, 2005, 08:21:17 AM
Orstio you are telepathic! This was one of my problems, that resulted in difficulties (the failed user registration due to phpBB component). Is it just the mos_users database that lacks the field "usertype" or do you have powers of the Oracle (the Greek kind) to know if other tables/field are affected? I have an invalid login (whom I can delete, but do not know which function to use)

When I removed the phpBB bridge modle from Mambo, people were properly registered SUBSEQUENT to the removal of the phpBB component/module.

Paul Earley
Title: Re: New member registration
Post by: Karmalakas on January 12, 2005, 08:56:58 AM
any ideas about duplicate entries ??? :(
Title: Re: New member registration
Post by: chadness on January 12, 2005, 12:42:02 PM
First, make sure phpBB component has been uninstalled.  That should restore the activation row.

For the duplicate entries, you could delete them from the database, or give them their own unique ID, though either of these may have strange consequences.  Deleting probably would be safe, but I'm not sure if you used an ID, if it would work out correctly, or if it might try to use that ID again when it's its turn sequentially.
Title: Re: New member registration
Post by: Karmalakas on January 13, 2005, 02:09:53 AM
i've tried deleting all users and tried assigning other ID but it again and again registers new user with ID "0" :(
Title: Re: New member registration
Post by: Orstio on January 13, 2005, 06:27:47 AM
I don't know what kind of damage is done by installing and uninstalling the phpBB component.

Here are some things to check in PhpMyAdmin:

In your mos_users table, Field "id" should be set to auto increment.

In your mos_core_acl_aro table, Field "aro_id" shuold be set to auto increment

In your mos_core_acl_groups_aro_map table, Field "aro_id" should be set to auto increment.

The tricky part is that aro_id in both mos_core_acl_aro and mos_core_acl_groups_aro_map must be set to the same value, so that when they auto increment, they are always the same.  You may need to add some dummy rows to get them back in synch.
Title: Re: New member registration
Post by: PaulEarley on January 13, 2005, 10:49:17 PM
Hmmmm, aro_id seems to be autoincrement in mos_core_acl_aro, but does not appear to be autoincerment in mos_core_acl_groups_aro_map. I searched out the table definition from mambo, and it is:
#
# Table structure for table `mos_core_acl_groups_aro_map`
#
CREATE TABLE `mos_core_acl_groups_aro_map` (
  `group_id` int(11) NOT NULL default '0',
  `section_value` varchar(240) NOT NULL default '',
  `aro_id` int(11) NOT NULL default '0',
  UNIQUE KEY `group_id_aro_id_groups_aro_map` (`group_id`,`section_value`,`aro_id`)
) TYPE=MyISAM;

Title: Re: New member registration
Post by: locatorr on January 16, 2005, 11:40:58 AM
Quote from: CRONUS on January 12, 2005, 04:17:00 AM
while trying to register i get this:

Notice: Duplicate entry '0' for key 1 in /***/***/***/includes/database.php on line 184


what to do ,I use mambo 4.5.1a and the latest mambo bridge 2.11 stable