Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: Aravot on July 20, 2005, 08:59:32 PM

Title: Users don't show up in Mambo backend even after login
Post by: Aravot on July 20, 2005, 08:59:32 PM
Mambo 4.5.2.3
SMF 1.0.3
Bridge 3.19a
Using SMF Registration
one database
------------------------------------

After registering few test users and logging in with each user at least couple of times I found that some user show up in Mambo backend some not, don't know why, maybe it's a bug.

More detail:


I need users to show up in Mambo 'User Manager' so I could change user's group

(pic 1)
(http://photos.hostpc.com/images/poacob/memberlist.png)

(pic 2)
(http://photos.hostpc.com/images/poacob/main.png)

(pic 3)
(http://photos.hostpc.com/images/poacob/usermanager.png)

(pic 4)
(http://photos.hostpc.com/images/poacob/uhp.png)

Title: Re: Users don't show up in Mambo backend even after login
Post by: Orstio on July 20, 2005, 09:14:29 PM
Do any of those users have the same real name and/or email address as other users?
Title: Re: Users don't show up in Mambo backend even after login
Post by: Aravot on July 20, 2005, 09:30:54 PM
Quote from: Orstio on July 20, 2005, 09:14:29 PM
Do any of those users have the same real name and/or email address as other users?

No it goes like this:

username       email
test2              [email protected]
test3              [email protected]
Title: Re: Users don't show up in Mambo backend even after login
Post by: Orstio on July 20, 2005, 10:40:20 PM
Were all of the users registered in the same way?
Title: Re: Users don't show up in Mambo backend even after login
Post by: Aravot on July 21, 2005, 12:03:06 AM
Quote from: Orstio on July 20, 2005, 10:40:20 PM
Were all of the users registered in the same way?

Yes, exactly the same, 6 different computers but with the same configurations.
Title: Re: Users don't show up in Mambo backend even after login
Post by: Kindred on July 21, 2005, 07:31:43 AM
Aravot...  but were all of them registered by clicking the same reg link?   (and the reg method was not changed between the "working" users and the other ones?
Title: Re: Users don't show up in Mambo backend even after login
Post by: Aravot on July 21, 2005, 12:28:00 PM
Quote from: Kindred on July 21, 2005, 07:31:43 AM
Aravot...  but were all of them registered by clicking the same reg link?   (and the reg method was not changed between the "working" users and the other ones?

All are test users entered by me exactly the same way, entered by this order test2, test3, test4, test6, test5 the last two (test6, test5) show up but not the first 3.
Title: Re: Users don't show up in Mambo backend even after login
Post by: Aravot on July 22, 2005, 04:25:33 PM
OK, I found out why the rest of user don't show up in Mambo backend but don't know why or how to fix it.

After turning the debug mod on in Mambo, Global Configuration -> Debug Site - > Yes.
Whenever I login with the user(s) that aren't in Mambo backend I get the following error however this error doesn't happen if the user is in the backend.

Edited: Link to test site removed.

Error Message:
QuoteNotice: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND g2.group_id='Registered'' at line 4 in /home/mysite.com/public_html/orstio/includes/database.php on line 221

/home/mysite.com/public_html/orstio/includes/database.php:319
/home/mysite.com/public_html/orstio/includes/gacl_api.class.php:1679
/home/mysite.com/public_html/orstio/includes/mambo.php:467
/home/mysite.com/public_html/orstio/includes/mambo.php:424
/home/mysite.com/public_html/orstio/index.php:107
Notice: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND g2.group_id='Public Backend'' at line 4 in /home/mysite.com/public_html/orstio/includes/database.php on line 221

/home/mysite.com/public_html/orstio/includes/database.php:319
/home/mysite.com/public_html/orstio/includes/gacl_api.class.php:1679
/home/mysite.com/public_html/orstio/includes/mambo.php:468
/home/mysite.com/public_html/orstio/includes/mambo.php:424
/home/mysite.com/public_html/orstio/index.php:107
Notice: Undefined index: is_admin in /home/mysite.com/public_html/orstio/smf/Sources/Security.php on line 556

Notice: Undefined index: permissions in /home/mysite.com/public_html/orstio/smf/Sources/Security.php on line 563

Warning: in_array(): Wrong datatype for second argument in /home/mysite.com/public_html/orstio/smf/Sources/Security.php on line 563
session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mysite.com/public_html/orstio/includes/database.php:221)
Title: Re: Users don't show up in Mambo backend even after login
Post by: Aravot on July 31, 2005, 03:57:29 PM
Did anyone figured this out ???

Mambo 4.5.2.3
SMF 1.0.3
Gallery2 component 2.0.6


Since in the first line of error I saw 'g2.group_id' and it seems I am the only one with this problem I thought this could be cause by Gallery2 module hence I post a copy at G2 forum.

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=157437
Title: Re: Users don't show up in Mambo backend even after login
Post by: Orstio on August 01, 2005, 11:38:56 AM
The problem is in Mambo's bloated ACL.

What you can do to fix those users:

Login as each user, and edit them in the Mambo "My Details" page.  Save the details, and the user will be entered into the ACL.

What you can do to prevent a recurrence:

Go to PhpMyAdmin, and use the following query:

ALTER TABLE `mos_core_acl_aro` CHANGE `aro_id` `aro_id` INT( 11 ) NOT NULL AUTO_INCREMENT
Title: Re: Users don't show up in Mambo backend even after login
Post by: Aravot on August 01, 2005, 12:10:55 PM
Quote from: Orstio on August 01, 2005, 11:38:56 AM
The problem is in Mambo's bloated ACL.

What you can do to fix those users:

Login as each user, and edit them in the Mambo "My Details" page.  Save the details, and the user will be entered into the ACL.

I bow to you, that solved it thank you.  ;) :D ;D

Quote
What you can do to prevent a recurrence:

Go to PhpMyAdmin, and use the following query:

ALTER TABLE `mos_core_acl_aro` CHANGE `aro_id` `aro_id` INT( 11 ) NOT NULL AUTO_INCREMENT

I am not comfy  ::) playing with PhpMyAdmin, what does that code do, translation into English
Title: Re: Users don't show up in Mambo backend even after login
Post by: Orstio on August 01, 2005, 12:13:10 PM
It just forces that particular table to auto-increment the value for aro_id.  This prevents aro_id values of zero, which is the main problem causing what you are seeing.
Title: Re: Users don't show up in Mambo backend even after login
Post by: Koffieboer on August 02, 2005, 07:11:26 AM
Quote from: Orstio on August 01, 2005, 11:38:56 AM
Login as each user, and edit ...
How do you do this without knowing the password?
Title: Re: Users don't show up in Mambo backend even after login
Post by: Koffieboer on August 02, 2005, 07:53:32 AM
... furthermore, ... I've got 16 users in mamb1_ and 18 in smf_

(http://img281.imageshack.us/img281/6817/aro9vv.gif)

17 users in acl_aro, which are the 16 from mamb1 and one user which was removed from mamb1 before smf was installed. Is this one giving me the problems? How can I get both 18 in mamb1, smf1 and also on the acl ?

(and what's that value 0)?
Title: Re: Users don't show up in Mambo backend even after login
Post by: Radeon on August 02, 2005, 08:34:15 AM
Hi, i'm having this problem to. Altough all of my users are npt showing up in the backend. How should they register? I'm currently using "SFM Registration" as it were set to from the beginning.

Is there like any sql query or a small script i could run that will sync the users? I relly need to be able to give some of my users access to the backend of my site =/

Edit: When i use Bridge registration it seams to work. Altough the bridge registration looks so awful =(
Title: Re: Users don't show up in Mambo backend even after login
Post by: Aravot on August 02, 2005, 01:06:40 PM
Quote from: Koffieboer on August 02, 2005, 07:11:26 AM
Quote from: Orstio on August 01, 2005, 11:38:56 AM
Login as each user, and edit ...
How do you do this without knowing the password?


Send an email to your users with a link to 'Your Detail' module and ask them to click on 'Update' button, that's what I did.

Make sure to change Itemid=?? to match your setup
http://www.example.com/index.php?option=com_user&task=UserDetails&Itemid=21
Title: Re: Users don't show up in Mambo backend even after login
Post by: Orstio on August 02, 2005, 05:48:33 PM
Quote from: Radeon on August 02, 2005, 08:34:15 AM
Hi, i'm having this problem to. Altough all of my users are npt showing up in the backend. How should they register? I'm currently using "SFM Registration" as it were set to from the beginning.

Is there like any sql query or a small script i could run that will sync the users? I relly need to be able to give some of my users access to the backend of my site =/

Edit: When i use Bridge registration it seams to work. Altough the bridge registration looks so awful =(

When using SMF registration, the users are not migrated into the Mambo database until they login for the first time.  After each one logs in, each will show up in Mambo.

Quote17 users in acl_aro, which are the 16 from mamb1 and one user which was removed from mamb1 before smf was installed. Is this one giving me the problems? How can I get both 18 in mamb1, smf1 and also on the acl ?

First, run the mos2smf script, which will migrate your Mambo users into SMF:

http://mamboforge.net/frs/download.php/6246/mos2smf1.1.zip