Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: marinesct on November 24, 2009, 03:29:56 PM

Title: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on November 24, 2009, 03:29:56 PM
I've successfully installed the bridge on a fresh installation of both SMF v2.0 RC2 and Mambo  v4.6.5 after applying a couple of adjustments to fix some errors due to my version of PHP.

After applying the bridge and synchronizing between the two systems, wrapping SMF, I can't figure out why my SMF is not displaying a theme at all. It seems as though the css hasn't loaded, but I checked the configuration and tried yea and no for to apply the SMF css.

I'd provide code or a link, but it's on a separate computer, offline using WAMP to test with.
Title: Login doesn't work properly
Post by: marinesct on November 26, 2009, 08:35:22 AM
I'm going to work with the template issue later.  The bigger problem that I've come across is the login capability.

When I log into Mambo, it doesn't carry over to SMF.  After logging out and logging into SMF via the wrapper, I am then logged into Mambo as well.

I checked the mod_smf_login and the smf_login mambot, but as soon as I publish either one of them, I get a call to function error:

Fatal error: Call to a member function on a non-object in /homepages/32/d101410193/htdocs/test/modules/mod_smf_login.php on line 110

Both SMF and Mambo share the same database. Setting the registration to Bridge, SMF, Mambo all don't make a difference either.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on November 26, 2009, 12:44:52 PM
Do you have a URL?

What version of the bridge did you install?

When you say "via the wrapper", are you referring to the Mambo wrapper component, or the wrapped bridge component?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on November 26, 2009, 02:40:27 PM
I figured out the problem with the SMF theme not appying when bridged.  I read that the smf_2-0_mambo_4-6_bridge_2-0b1 has problems with SMF 2.0 RC2, so I downgraded back to SMF 2.0 RC1.2.  After the downgrade, the SMF theme had been applied  :)

Sorry, I meant the wrapped bridge component.  Even after the downgrade, I'm still having the login issue mentioned above.

http://test.usmcg.org is the url.

Don't mind the mess, I'm currently working on the CSS for the MAMBO template.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on November 26, 2009, 03:49:51 PM
First, you should have the SMF_header_include mambot published.

With the Mambo login module, you need to publish the SMF_login and SMF_logout mambots.
Title: Still a Fatal Error
Post by: marinesct on November 26, 2009, 08:52:57 PM
I have mod_login published and mod_smf_login unpublished. SMF_header_include, SMF_login and SMF_logout mambots each are published as well. Bridge configuration is set to use Bridge registration.

When I attempt to login via Mambo:

Fatal error: Call to undefined function: db_insert_id() in /homepages/32/d101410193/htdocs/test/mambots/authenticator/SMF_login.php on line 137
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on November 26, 2009, 11:17:16 PM
In your mambots/authenticator folder will be a file named SMF_login.php

FInd this on line 137:

$memberID = db_insert_id();

Change it to this:

$memberID = mysql_insert_id();
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on November 27, 2009, 03:55:46 AM
Well. It seems that It's still not working. That adjustment with the code got rid of the error.  But there's two problems now.

After I made that change, I tried registering a new user. No error, but no SMF login :(.  I went through and published the other SMF mambots, which got me a database error before the site could finish my Mambo registration (admin panel shows disabled).  After troubleshooting it, I figured it out to be the SMF_Registration mambot that causes the database error.

So, since I couldn't register a new member, I decided to try logging in with my admin account that's synched with both Mambo and SMF.  Well, I'm back to square one, but without the error.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: jelv on November 27, 2009, 04:42:23 AM
http://www.simplemachines.org/community/index.php?topic=347174.msg2369978#msg2369978 has a fix to make the SMF theme work
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on November 27, 2009, 07:48:18 AM
Can you copy the error message and paste it into a post here?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on November 27, 2009, 10:32:31 AM
After publishing the SMF_Registration mambot, here's whats displayed after I confirm registration for a new account:

In Firefox, I get the following
QuoteDatabase Error
Please try again. If you come back to this error screen, report the error to an administrator.

Now, here's another thing. When I went into IE7, I went straight to SMF and logged in as the admin to verify the members (just the admin listed btw) and hadn't logged out.  When I went to create the new user in IE7 via the Mambo registration page, I confirmed registration and was imediately taken to SMF as the logged in admin. So I deleted the user out of Mambo and when I confirmed registration, I was redirected to:

QuoteThe website cannot display the page
HTTP 500 
   Most likely causes:
The website is under maintenance.
The website has a programming error. 

I was thinking that the bridge wasn't communicating with the SMF database, but verified that they share the same database and that the SMF's location in the bridge is correct, which it is.  The remaining tabs confirmed that is communicating with SMF since both the Topics and Groups tabs are populated.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 01, 2009, 01:20:24 PM
After taking a few days break, I decided to work on the issue again. I haven't any errors, but when I log into Mambo, I'm not logging into SMF.

Here's the bridge setup:

Bridge Component
User Bridge Registration

Modules
mod_login published (supplied redirects for login/logout as well)
mod_smf_login unpublished

Mambots
SMF_Login published
SMF_Logout published
SMF_Register published
SMF_Header_Include published
All other SMF mambots unpublished

When I log into SMF, I am automatically logged into Mambo.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 01, 2009, 01:32:39 PM
Quote(supplied redirects for login/logout as well)

Can you explain what that means?

Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 02, 2009, 04:12:02 AM
I provided redirect links for the mod_login options for when the users log in and log out.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 02, 2009, 08:13:19 AM
QuoteNow, here's another thing. When I went into IE7, I went straight to SMF and logged in as the admin to verify the members (just the admin listed btw) and hadn't logged out.  When I went to create the new user in IE7 via the Mambo registration page, I confirmed registration and was imediately taken to SMF as the logged in admin. So I deleted the user out of Mambo and when I confirmed registration, I was redirected to:

OK, I see now.

You logged into the stand alone forum, correct?

So, that logged you into SMF, but not into Mambo.

You went to the Mambo registration to create a new user, which used the SMF_register mambot, which tripped on the fact that you were already logged into SMF (you can't register if you're already a user!).
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 03, 2009, 08:45:38 AM
That's correct, I logged into the stand alone version without logging into Mambo the first time.

I apologize, it's been getting pretty busy over here where I'm at. I should have mentioned that after I realized I was logged in as the admin, I logged out of SMF, then deleted the Mambo account and tried to reregister.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 13, 2009, 10:45:26 PM
Any ideas?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 13, 2009, 10:53:31 PM
Try logging out, then closing the browser, then open it again and register.  The logic is if you still have a SMF session, it won't let you register.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 16, 2009, 05:17:43 AM
same same :(
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 16, 2009, 09:04:26 AM
Oh, wait -- you're using the Bridge Registration Component, aren't you?

So, this is where you are registering?

http://test.usmcg.org/index.php?option=com_smf_registration&task=register

Go to your Mambo admin panel, Global Configuration, and make sure that "Allow New User Registration" is on.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 19, 2009, 11:20:37 PM
Allow User Registration: Yes 
Use New Account Activation: Yes 

This is where I register: http://test.usmcg.org/index.php?option=com_registration&task=register

How do I redirect the registration to com_smf_registration?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 20, 2009, 03:38:34 AM
EIther use the bridge login module, or change your registration method to Mambo registration and use the Mambo registration with the SMF_register mambot.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 20, 2009, 12:22:08 PM
I've changed my registration method in the bridge to use the Mambo registration.  smg_register mambot is still published.

Same URL results.  ???
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 20, 2009, 01:30:41 PM
Yes.  But now the user should automagically appear in both Mambo and SMF upon registration.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 21, 2009, 12:14:51 AM
With the bridge set to Mambo registration, I tried registering through Mambo and got the 500 error.  Using the same settings, I tried registering through the SMF and got the same error.

I set the bridge registration to SMF and registered via the forums successfully, but it didn't communicate with Mambo.

Could there have been something not installed properly during the initial install?  Should I delete the mambots, modules, components and tables?  You've provided guidance o me on this for quite sometime now and I'm starting to think that the modules aren't communicating properly between the two systems.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 21, 2009, 12:39:45 AM
Are you sure your SMF database user has access to your Mambo database?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 21, 2009, 07:13:18 AM
Both SMF and Mambo share the same database.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 21, 2009, 08:05:00 AM
Who is your host?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 22, 2009, 02:15:55 AM
1and1 is my host.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 22, 2009, 08:36:33 AM
Did you install SMF and/or Mambo using an auto-installer like Fantastico?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 22, 2009, 10:07:51 PM
Fantastico? Never heard of it.  But no on the auto-installers. I utilized the installers that came with the software.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 22, 2009, 10:13:39 PM
OK, re-reading your first post, you indicated you had to apply some sort of fix due to your version of PHP?  What version is that?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 23, 2009, 01:53:08 AM
It was the php version in my php.ini file if I remember correctly.  I'll have to look later when I have access to the control panel.  But according to my phpinfo, I'm currently using PHP Version 4.4.9.

That might be wherein lies the problem, yes?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 23, 2009, 07:46:39 AM
Possibly.  What changes did you have to make in Mambo in order for it to work?
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 26, 2009, 11:23:59 AM
I'm traveling right now and can't check the htaccess file.  The php.ini only reflects zend for my Treasury module by mh2designs.

I'll have to verify that I put it in the htaccess correctly, but this should be the only change I made (other than the recommended changes in the Mambo install process)

AddType x-mapp-php5 .php
AddHandler application/x-httpd-php5 .php
AddHandler cgi-php5 .php
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: Orstio on December 26, 2009, 11:26:39 AM
Oh, OK.

I thought you were referring to changes in the PHP files.
Title: Re: Login Issue (previous title was SMF Wrapped has no theme)
Post by: marinesct on December 26, 2009, 10:34:33 PM
Nope, Im not that brave ;)