Login Not Working in Mambo

Started by ee81jf, May 06, 2005, 03:38:50 PM

Previous topic - Next topic

ee81jf

I have just installed the latest version of the Mambo-SMF Bridge, and the install went fine. I can register on the site and users show up in both the Mambo and SMF user lists.

The problem I'm having is trying to login as that user through Mambo - it goes to a blank copy of SMF with an SQL error ( mysql_fetch_array(): supplied argument is not a valid MySQL result resource ) and says that the user is still guest. If I browse directly to the SMF Forum, I can login without any problem.

Please let me know what you think could be causing this issue.

chadness

Can you put a link up to a test site?


chadness

I have to run so I can't dig in too closely right now, but did the upload of the SMF mod in step 1 go OK?  Also, try re-uploading the mos_smf.php file from the compressed file in step 1 to /smf/Sources.  Some times that seems to copy in there OK, but doesn't actually make it.  I'll try to look at this closer later, unless someone else beats me to it.

ee81jf

When installing the mod into smf I get the following error:

Package Manager - Install Actions
Install Actions for archive smf_mambo3.1.tar.gz:
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Subs.php    Failure
2.    Execute Modification    ./index.php    Success

Orstio

Go to your SMF admin panel, and click on "Forum Error Log".

Are there any errors from MOS_SMF.php?

If so, can you post the information here?

NoRad

My login troubles were solved by:

1. make sure the mos_smf.php file is uploaded properly.
2. make sure the package properly patched your subs.php file.

Should work after that.

ee81jf

This is the error showing:

http://ywamnets.com/smf/index.php?option=com_smf&Itemid=50&action=mambo_login [nofollow]

2: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
File: /home/ywamnet/public_html/smf/Sources/MOS_SMF.php
Line: 220


I have uploaded mos_smf.php seperatly but I still have this problem.

Orstio

Please upgrade to 3.14.  If you have upgraded everything else to 3.14, you will still need to upgrade MOS_SMF.php from the package in step 1 (Overwrite the existing file from the one in the package).  It appears you have the MOS_SMF.php from 3.02.

NoRad

Hmmm could it be possible that your configuration page for the component is not correctly linking to the SMF folder? Mine had I:\\louipimps\forum by default and I've toyed with the slashes, but it works.

ee81jf

Okay to Double check I have just updated the package to the lastest version but When I try to install the package I get the following error with Subs.php:

1.     Execute Modification     ./Sources/Subs.php     Failure

Would that have any effect on it?

I laso can't seem to find mos_smf.php in the souces directory.  The package manager claims to have installed it.

Orstio

QuoteOkay to Double check I have just updated the package to the lastest version but When I try to install the package I get the following error with Subs.php:

1.     Execute Modification     ./Sources/Subs.php     Failure

If you click [Proceed], does it apply successfully?  I ask, because when I tested this, it also said "Failure", but was successful when I actually applied the mod by clicking [Proceed].

QuoteI laso can't seem to find mos_smf.php in the souces directory.  The package manager claims to have installed it.

That happens to some people.  You will need to upload it manually.  It is inside the gzip package.  This is fixed in the upcoming release.


ee81jf

Okay it seems to be working okay now.  Thanks for all the help.

A Couple of other Questions though. 

1 - How do you get rid of the suff at the top of the forum so it fits better in the window?

2 - How do you stop it from defalting to SMF when you login?

Once again thank for the help

Orstio

#13
Quote1 - How do you get rid of the suff at the top of the forum so it fits better in the window?

(Sorry, misread the question).  You can either use the "upshrink" button (I think you can set it to upshrink by default for all members), or you can edit your SMF theme.

Quote2 - How do you stop it from defalting to SMF when you login?

Check the params of your login module.  There are several options for redirecting when logging in and out.

scotta

Orstio,

I also have this same problem. Regardless of the settings in the Mambo module the bridge would redirect to the forum. I forced the redirect to mambo by modifying the case statement where the redirect is determined. For some reason the selection from the module config is not being read in.

I have just forced the login to go the the mambo home page.

Scott

NoRad

Like I said in another post recently, I fixed my login problem by uploading a clean copy of subs.php (I had no mods done to it that I knew of) and then ran the package manger. It applied correctly (no failure message) and everything worked.

I also added a few lines of code to my index.php in the forum folder that redirects to mambo and back using the wrapper if somebody tries to hit my forum directly.

As for cleaning up the top of the forum, open your SMF theme index.template.php and search for the header menu stuff and then just comment things out, being careful not to break any echo statements or html standards, and then you can preview it until you get it just right.

p.s. make sure you're doing the edits on a new template and not the default template (or at least a copy of it).

Advertisement: