Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: marinesct on July 26, 2010, 01:06:52 PM

Title: 500 Error When Registering
Post by: marinesct on July 26, 2010, 01:06:52 PM
I've got the 2.0b bridge installed between SMF 2.0RC1.2 and Mambo 4.6.5.  Once I did that, I tried registering via the bridged registration, but got a 500 error.  I went directly to SMF and was able to register successfully.  Any ideas?
Title: Re: 500 Error When Registering
Post by: Kill Em All on July 26, 2010, 02:51:05 PM
You should probably upgrade to SMF 2.0 RC3 as it fixes many bugs and security holes. Regarding your 500 error, take a look here possibly:
http://www.simplemachines.org/community/index.php?topic=340411.msg2293433#msg2293433
Title: Re: 500 Error When Registering
Post by: marinesct on July 28, 2010, 04:01:34 PM
I remember hearing that the bridge had problems with RC3.  Is this still the case?
Title: Re: 500 Error When Registering
Post by: marinesct on July 29, 2010, 11:25:28 AM
I was using Firfox when I got the 500 error.  I switched over to IE and received the below error:

QuoteDatabase Error
Please try again. If you come back to this error screen, report the error to an administrator.
Back
Title: Re: 500 Error When Registering
Post by: Kill Em All on July 29, 2010, 10:27:33 PM
Where did you get the 500 error?
Title: Re: 500 Error When Registering
Post by: marinesct on July 30, 2010, 12:18:32 AM
I receive the error after clicking the send registration button on the "/index.php?option=com_smf_registration&task=register" page.

I've tried it on 1and1 with SMF2RC1.2 and RC3.0 as well as locally via uWAMP with both versions of SMF as well.  Same errors each time.
Title: Re: 500 Error When Registering
Post by: Kill Em All on July 30, 2010, 12:24:15 AM
Hum, check file permissions. Folders should be 755 while files should be 644.

I'm unaware of that page too. What mods do you have installed?
Title: Re: 500 Error When Registering
Post by: Kindred on July 30, 2010, 07:40:12 AM
also, please confirm that the mambo db user has access to the smf db, and vice versa
Title: Re: 500 Error When Registering
Post by: marinesct on July 30, 2010, 11:49:30 AM
Killl Em All, Other than a couple of mods put out by mh2design being installed on my test sites with SMF2RC1.2, I don't have any others installed.  RC3 is currently only using the bridge. The file permissions should be set correctly; if I disable the bridge, I can register with each site normally.

Kindred, I've tried two differant methods for db usage.  My RC1.2 sites are sharing with Mambo, and via separate install of Mambo, RC3 is not sharing a db with Mambo. For my testing, I've been using root.
Title: Re: 500 Error When Registering
Post by: marinesct on August 05, 2010, 01:31:20 PM
Bump. can anyone help with this?
Title: Re: 500 Error When Registering
Post by: Kindred on August 05, 2010, 05:29:27 PM
the only thing I can think of is that you have a permissions problem with one or more of the files...
Title: Re: 500 Error When Registering
Post by: Kill Em All on August 05, 2010, 05:46:30 PM
Maybe try running this script attached to the first post.
http://www.simplemachines.org/community/index.php?topic=28393
Title: Re: 500 Error When Registering
Post by: marinesct on August 06, 2010, 12:44:47 PM
I ran the script, and it came back with

QuoteWrite this down!
In some cases, SMF 1.0.x does not detect your FTP path correctly. This tool has successfully used the (possibly detected) path below. You may wish to write this down, and make sure to use it when installing mods.

/squadbay

This problem should be resolved in the next major release of SMF.

Thank you.

After trying to register, it still shows the error
QuoteDatabase Error
Please try again. If you come back to this error screen, report the error to an administrator

As far as permissions, what's the best method to update permissions for the files already on the host's webserver?
Title: Re: 500 Error When Registering
Post by: Kill Em All on August 06, 2010, 08:34:21 PM
Try running this script?
http://www.simplemachines.org/community/index.php?topic=329069.0

I hate 500 errors, I also hate white screens. They are both a pain.
Title: Re: 500 Error When Registering
Post by: marinesct on August 06, 2010, 10:27:43 PM
So I ran the sript.  It found a few .php files that had the whitespace after the ?>. I fixed them, but still didnt jive.
Title: Re: 500 Error When Registering
Post by: Kindred on August 09, 2010, 08:59:12 AM
Hi Marinesct,

some info I have been prompted to pass on,,,,

First:  None of the bridges will work with SMF 2.0 RC3.  Until there is a release with the integration hooks fixed, they just won't work.  So upgrading to RC3 is a bad idea, regardless of security.  Just having the forum integrated in Mambo and not accessible directly will help with most XSS vulnerabilities, anyway.  All input is passed through Mambo and cleaned before SMF gets a chance at it, so there's a better chance at averting XSS attempts.

Second:  It seems that your problem is likely to be database permissions, not files (as I first suggested).  The error is a Mambo-generated error, not a PHP error.  Keep in mind that on a local WAMP server, if the database user names are different, it won't actually perform the switch properly. (and sometimes, even if the database users LOOK the same, they are actually different on many of the non cpanel site panels)

Third:  Make sure you have the SMF_header_include mambot published.  This is very important.

Fourth:  You are using bridge registration.  That component was never updated for the 2.0 bridge, and should be deprecated by now.  Most users choose SMF or Mambo registration, anyway.  Mambo registration with the SMF_register mambot published is the most secure method.
Title: Re: 500 Error When Registering
Post by: marinesct on August 09, 2010, 10:38:22 PM
Hmm... On the test site located on 1and1, I'm using SMF 2.0 RC1.2 where it's sharing the database with Mambo with the same username/pw. I have the SMF_header_include mambot published.

I verified the databases between both and they are both pointing to the correct database with the same username.

Mambo registration with the SMF_register mambot published, Im still getting the database error, however, I noticed in the user manager in Mambo that the test account did populate, but didnt send a confirmation email. The account isn't showing up in SMF either.
Title: Re: 500 Error When Registering
Post by: marinesct on August 14, 2010, 09:48:13 PM
Should I just downgrade to SMF 1?
Title: Re: 500 Error When Registering
Post by: Kindred on August 14, 2010, 09:54:15 PM
you can not downgrade and keep existing data.... there is no "reverse" script written for upgrade.php.