XMB Forum Software

[Closed] White Page After Registering

Christina - 9-1-2024 at 03:20 PM

Full Board URL: https://joltmb.org
XMB Version: 1.9.11

I'm not sure when it started. I have a few mods installed.

Registration goes through but after hitting submit, they are given a white page.

I've attached my member.php file

Thanks for any help!

Attachment: member.php (39kB)
This file has been downloaded 22 times

lottos - 9-1-2024 at 11:47 PM

Likely either a mod you installed or perhaps your web hosting company upgraded PHP (or mysql/mariadb) that caused the issue.

Some things to try in no particular order, as this is either user or host related:

Compare the last successful member creation to when you may have installed a member.php modification. member.php should show it's date in file manager.
You did test member creation after installing mods???

Alter config.php to show errors, try creating a new membership and see if error displays.

If you have access to error log (easy if you have cPanel) check for errors related to the issue. If not, ask web host to check error log for errors related to member.php.


Find out what php and mysql version you are using.

Rename member.php and run an unaltered version to see if that works.

lottos - 9-2-2024 at 12:42 AM

I see you don't actually get just a white screen, you get a HTTP ERROR 500

From a quick look at member.php it appears you have
shop hack
member approval, inc member_profile_pphoto template

Attached is the unaltered file if you want to see if it works

Attachment: member.php (36kB)
This file has been downloaded 21 times

Christina - 9-2-2024 at 01:27 AM

Thanks! I reversed the member approval hack and it worked. I just keep getting about 30 spam members a day. Any tips to reduce that?

lottos - 9-2-2024 at 01:53 AM

Quote: Originally posted by Christina  
Thanks! I reversed the member approval hack and it worked. I just keep getting about 30 spam members a day. Any tips to reduce that?


What happens when you have config.php errors set to display and you have the approval hack in place?

Christina - 9-2-2024 at 02:43 AM

I still get the white page upon trying to register but no other errors.

lottos - 9-2-2024 at 03:05 AM

Quote: Originally posted by Christina  
I still get the white page upon trying to register but no other errors.


This is unlikely to fix it, but can you comment out this line by adding // to start of it, eg:


Code:
//$adminmessage = "$username has just registered on $dbboardname.\r\n\r\n[b]Registration Details:[/b]\r\n\r\nUsername: $username\r\nE-mail: $email\r\nLocation: $locationnew\r\nSite: $site\r\nAIM: $aim\r\nICQ: $icq\r\nMSN: $msn\r\nYahoo: $yahoo\r\nBio: $bio\r\nSig: $sig\r\n\r\n[url={$full_url}cp.php?action=approve&member=".recodeOut($username)."]Approve this user account[/url]";


and add below:

Code:
$adminmessage = "$username has just registered on $dbboardname.\r\n\r\n[b]Registration Details:[/b]\r\n\r\nUsername: $username\r\nE-mail: $email\r\nLocation: $location\r\nSite: $site\r\nAIM: $aim\r\nICQ: $icq\r\nMSN: $msn\r\nYahoo: $yahoo\r\nBio: $bio\r\nSig: $sig\r\n\r\n[url={$full_url}cp.php?action=approve&member=".recodeOut($username)."]Approve this user account[/url]";


Christina - 9-2-2024 at 02:48 PM

Thanks for the suggestion! I tried that and it did not work though.

lottos - 9-3-2024 at 04:24 AM

Without access to error logs, difficult and time consuming to identify the issue. It does look like the member.php file has changed somewhat from that modification release so I have posted it as buggy in the bug repository.

It may be that the 'spam hammer' mod is the better option:
https://www.xmbforum2.com/modifications/spam-hammer-1.0.zip

This is really a request for hacks support, should have been posted in the hacks section as it isn't related to what this forum area is for. Moved to hacks support and closed as it's been reported as buggy and alternative suggested.