News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Mambo Bridge Login Error

Started by ditch1234, October 25, 2004, 12:26:18 AM

Previous topic - Next topic

ditch1234

First of all, I really love SMF.  I am switching from Phorum on a couple of sites and I four Mambo sites that have been using SimpleBoard.  SMF is far superior to both boards.

I did a clean install of Mambo and SMF.  SMF lives in a dir of the Mambo Web root.  everything seems to be fine, (needs some pretty heavy template work, but all works well) until a new user logs in.  Here is the error:

Warning: call_user_func(Login): First argument is expected to be a valid callback in /Users/ditch1234/www/components/com_smf/smf.php on line 46

It logs me in, but I get the above error, followed by what appears to be two SMF headers.  Or, one SMF header followed by a full SMF board.  It looks like it is choking on Mambo template display.

There is the com_smf login, and the login at the top of SMF that is wrapped in Mambo.  I guess the second is the actual SMF login.  If I use that login, it logs be into SMF and displays just fine, but it doesn't log me into Mambo, just SMF.

I'm pretty lost and frustrated. I know that once this is working, it will be worth the headache, but I am kind of at a loss right now.

Thanks fro any help you can give.

Orstio

QuoteWarning: call_user_func(Login): First argument is expected to be a valid callback in /Users/ditch1234/www/components/com_smf/smf.php on line 46

That's very strange.

Can you look at smf.php, and post the contents of line 46?

ditch1234

Quote from: Orstio on October 25, 2004, 12:44:36 AM
Can you look at smf.php, and post the contents of line 46?

call_user_func(smf_main());

Orstio

Thanks.

Can I see your site?  A URL would be nice.

ditch1234


Orstio

Well, it sounds like something in the bridge is not installed correctly, but I can't really tell what, or if I am correct, without seeing it in action.  :-[

ditch1234

I guess I should mention.  The bridge I am using was downloaded from MamboPortal.com [nofollow] (http://www.mamboportal.com/component/option,com_remository/Itemid,27/func,fileinfo/parent,folder/filecatid,1201/ [nofollow]).  

I assumed when I downloaded it that it was an official SMF bridge.  Now I am getting the impression there is no 'official' SMF bridge.  This one comes with several modules.  The downlaod comes from http://www.everything-science.com [nofollow], but there is no mention of the bridge in the board.  They are definitelty using Mambo 4.5.1/SMF RC2.  But nothing mentioned in their boards about this bridge attributed to them at mamboportal.


Orstio

QuoteThis one comes with several modules.  The downlaod comes from http://www.everything-science.com, but there is no mention of the bridge in the board.  They are definitelty using Mambo 4.5.1/SMF RC2.  But nothing mentioned in their boards about this bridge attributed to them at mamboportal.

"They" would be me. ;)  Everything Science is my website.  There is no mention of MamboPortal there, because Mambo really has nothing to do with the subject matter of the site.

MamboPortal would have copied the files I put at MamboForge:

http://mamboforge.net/frs/?group_id=543

You most likely have the correct files.  I just think that something was installed not quite right.  It's difficult to say what exactly is going wrong without trying it myself.

{EDIT} After looking at your screenshot, I have to ask -- where is your Mambo template?  It seems to be missing from the page.....

ditch1234

That's part of the problem.  The Mambo template dissapears, and all I get is what you see.

Look at this screenshot: http://www.causefx.com/screenshot2.gif [nofollow]

As you notice, there are two logins on the page.  If I use the login just below the Ka-Ching banner (com_smf login), I get the error in the previous screenshot.  If I log in to the lower login form, it logs me into SMF, but not into Mambo.

Orstio

You copied a piece of code into your Mambo template header.  Can you post that here?

Also, the contents you put in $smf_path?

ditch1234

I guess if you are they then I am talking to them.  It is nice to be talking to the source.  Thanks for your help.

ditch1234


ditch1234

Quote from: Orstio on October 25, 2004, 01:48:14 AM
You copied a piece of code into your Mambo template header.  Can you post that here?

<?
   require ("components/com_smf/config.smf.php");
    require ($smf_path . "/SSI.php");
?>
</head>

Quote
Also, the contents you put in $smf_path?

<?php

$smf_path = "snowboard";


?>

ditch1234

Big problem.  There is no SSI.php anywhere.

ditch1234

sorry, found it where it is supposed to be

ditch1234

Okay, I put that code in my template header, but I changed templates.  I just added the code to the SolarFlare template and I have a new issue.  I will get a screenshot and post it.  Stay tuned...

Orstio

SSI.php should have come with your SMF.  It should be in your "snowboard" directory.

On that error page, what is the query string?  It'll be all the code after index.php.

ditch1234

Quote from: Orstio on October 25, 2004, 02:04:25 AM
SSI.php should have come with your SMF.  It should be in your "snowboard" directory.

On that error page, what is the query string?  It'll be all the code after index.php.

?option=com_smf&Itemid=41&?action=mambo_login

New screenshot:  http://www.causefx.com/screenshot3.gif [nofollow]

There are now 3 logins.  (http://127.0.0.1/snowbird/index.php?option=com_smf&Itemid=41&?action=login [nofollow])

ditch1234


Advertisement: