News:

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

Main Menu

1.1 Beta 4 & Mambo Bridge

Started by NoRad, August 29, 2005, 12:07:40 AM

Previous topic - Next topic

NoRad

I just want to make sure that this code isn't messing anything up with my bridged forum and the new version.
I have this at the top of index.php

if (!$mosConfig_live_site)
{
$get="";
foreach($_GET as $key => $value)
{
$get = $key . '=' . $value . ';';
}
header("Location: http://www.louipimps.com/index.php?option=com_smf&Itemid=74;$get");
}


That just makes sure that if somebody hits my forum folder directly that it wraps it with mambo.

TriGrrrl

Quote from: TriGrrrl
Same thing here.  Unable to load the 'main' template upon logout.

Aha.  I see the problem.

- Uninstalled all mods from SMF 1.1 beta 3p
- Installed SMF 1.1 beta 4 completely fresh
- copied packages directory
- copied settings.php to new installation
- ran upgrade script

Same error message as below.  Looked at the Sources directory to see that the mod had created a MOS-SMF.php file with 0 file length.  Copied this file up manually from the tar ball and it began working like a charm.

Perhaps explains why radianation's manual file copy worked.

Regards,

TG


Kindred

Actually, this looks to be a possible bug in 1.1 beta 4...   ANYTHING uploaded seems to have a good shot of being 0kb size.

I added a theme yesterday and had issues until I re-loaded the theme files via ftp directly.
The theme was installed, but all of the php files and about half of the image files were 0kb.

(this happened on two completely different systems....)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

NoRad


Orstio

Quote from: Radianation on September 06, 2005, 08:11:36 AM
The error log says this (over and over)

8: Trying to get property of non-object
File: I:\louipimps\forum\Sources\MOS_SMF.php
Line: 406

I checked this line and it looks like the user id isn't getting set:
mysql_query("UPDATE {$mosConfig_dbprefix}users SET lastvisitDate='$currentDate' where id='$session->userid'");

What's odd is that my site only works when it's not installed via the package manager. I think somebody said earlier that 1.1 beta 4 might not need the bridge?? Well, people can login/logout without trouble but the error log scares me.

Sorry, this is (yet another) PHP 5 issue.

Please change that line to this:

mysql_query("UPDATE {$mosConfig_dbprefix}users SET lastvisitDate='$currentDate' where id='$session[userid]'");

NoRad

haha! Thanks, that fixed my problem. The weird thing is, I don't have a modded subs.php or index.php? I Just copied the mos_smf.php to my sources and it's working?

BCCZeus

#26
Hey there,

I just upgraded to 1.1 Beta 4 from 1.1 Beta 3 and now I can't log in or out.  If I use different browsers where the passwords or user information hasn't ever been saved, I try to log in and it just takes me to the same frontpage. . . not logged in.  If I use a different browser and try to log out, it takes me to the same page logged in.  What the plug?

Please help as I run an active forum.

If I run to the bare forum and hit the login link it takes me to a non-mambo link and this seems to work to log in.  Weird stuff, as I uninstalled the mod then reinstalled as the readme said. . .

Update:  I've been trying a bunch of stuff, and I even reinstalled the bridge.  Still no go.

NoRad

Well, you know that if you run the beta you take a risk of not being supported as quickly, but try this stuff:

1. Uninstall the package from SMF admin area.
2. Manually replace the index.php and subs.php with those from the 1.1 beta 4 upgrade zip file.
3. Make sure the latest MOS_SMF.php is in your sources folder.

That should work, believe it or not. It worked for me. The package manager has a bug with uploads, and I don't think the modifications previously made to the index.php and subs.php are required with the 1.1 beta 4, but don't quote me on that.

Good luck.

BCCZeus

I got it fixed.  I basically did what you suggested and got everything patched up.  When it didn't work immediately I kinda panicked as I just published a rather large article on motherboard hacking.  Thanks for the suggestions.

Kindred

Radianation...

the modifications to index.php are definitely still required.... without that code added, SMF will have no idea what to do with the action "mambo_login"
don't know about subs.php...

but here's what likely happened.
You upgraded and applied the mod package...   this applied the changes to the source files and then tried to upload a new copy of MOS-SMF.php. With the bug in the package code for 1.1 b4, MOS-SMF.php was uploaded with 0byte size.
Since MOS-SMF.php was not a valid file at that point, logins failed.
You then went and manually uploaded a copy of MOS-SMF.php, which fixed the issue...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

NoRad

I have no modifications to my index.php other than what I posted in a previous message on this thread (it redirects the users who try to load my forum outside of Mambo). I have no error messages and my site works fine?

Advertisement: