MyBB Community Forums

Full Version: Hang on user registration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
i just installed MyBB and am getting an issue when users register, everything else seams fine (from what i can see) but when you submit the registration form the page just hangs and is waiting for a responce which never comes. if you submit the form again you get user already registered error and can login.

i was on php7 and tried downgrading to 5.6 same issue, reinstalled many times now, all permissions and settings have been checked many times. and idea on how to process with fixing this issue would be amazing as i need to get this runninng ASAP or will have to just change software which i dont rly want to do.

error logs is clean and request logs looks like this:
IP.IP.IP.IP - - [16/Jul/2017:17:25:02 +0200] "GET /forums/member.php?action=register HTTP/1.1" 200 12228 "https://DOMAIN.co.uk/forums/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:02 +0200] "GET /forums/task.php HTTP/1.1" 200 43 "https://DOMAIN.co.uk/forums/member.php?action=register" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:03 +0200] "POST /forums/member.php HTTP/1.1" 200 27941 "https://DOMAIN.co.uk/forums/member.php?action=register" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:04 +0200] "GET /forums/captcha.php?action=regimage&imagehash=d56df9b0fa04616c1e557f616c016fde HTTP/1.1" 200 16471 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:07 +0200] "POST /forums/xmlhttp.php?action=username_availability HTTP/1.1" 200 51 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:11 +0200] "POST /forums/xmlhttp.php?action=username_availability HTTP/1.1" 200 6 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:11 +0200] "POST /forums/xmlhttp.php?action=username_availability HTTP/1.1" 200 53 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:14 +0200] "POST /forums/xmlhttp.php?action=username_availability HTTP/1.1" 200 6 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:14 +0200] "POST /forums/xmlhttp.php?action=username_availability HTTP/1.1" 200 53 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:18 +0200] "POST /forums/xmlhttp.php?action=username_availability HTTP/1.1" 200 6 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:42 +0200] "POST /forums/xmlhttp.php?action=validate_captcha HTTP/1.1" 200 6 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:25:43 +0200] "POST /forums/xmlhttp.php?action=validate_question HTTP/1.1" 200 6 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:26:14 +0200] "GET /forums/ HTTP/1.1" 200 13442 "https://DOMAIN.co.uk/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:26:25 +0200] "POST /forums/member.php HTTP/1.1" 200 3748 "https://DOMAIN.co.uk/forums/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
IP.IP.IP.IP - - [16/Jul/2017:17:26:27 +0200] "GET /forums/ HTTP/1.1" 200 14009 "https://DOMAIN.co.uk/forums/member.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"


Specs and details follow:
Apache version: Apache/2.4.6 (CentOS)
Server Build: 3.10.0-514.26.2.el7.x86_64
PHP: 5.6.30 (cli) (built: Jan 19 2017 22:31:39)

[PHP Modules]: bz2 calendar Core ctype curl date ereg exif fileinfo filter ftp gd gettext gmp hash iconv json libxml mbstring mhash mysql mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar readline Reflection session shmop SimpleXML sockets SPL sqlite3 standard tokenizer xml Zend OPcache zip zlib
[Zend Modules]: Zend OPcache

thank you in advanced!
- Rose

Edit: i have also tried removing the captures and security questions. same results
what is your forum url ?

run file verification tool from below location. what does it report ?
admin panel >> tools & maintenance >> file verification

ignore reported images & ignore files reported from install folder & its sub-folders
forum URL: https://aspiregames.co.uk/forums/
File Verification: No Problems Detected

Edit: i can create you an admin account if so need be
Edit2: on manually activating the account in the ACP i experience the same hang
Edit3: after manually activating the newly created test account, the home page still reports the account needs activating despite being activated
What's your server load reporting as in the ACP?
And just on the off-chance, is your CHmod set properly?
Server Load: 1.12 / Memory Usage: 1.25 MB

HTOP: Load average: 0.87 0.84 0.99

i went and reset all perms manually and running from the zip directly seams to make no diff, i do believe its all correct

im fairly sure is something i have done, or have not done but i have no clue at this point
Is your stop forum spam setting enabled? It's possible it's trying to communicate and can't do so for some reason.
just disabled stop forum spam totally, same results

@katos the account you created test10981 i made admin, feel free to poke about. i have to get some sleep soon so if i stop replying thats why
ACP pin is 0000
So after testing it out, the POST data is different between good and bad submits (successful/unsuccessful in getting a response). It looks like the presence of the "regsubmit" parameter needs to be set in the request for it to receive a response. I registered two separate accounts and logged the request data & headers sent to member.php when submit was clicked, the "BAD" data/headers were sent on the first unsuccessful request and the "GOOD" data/headers were sent on the second submit request, which was successful. The request only seems to work if
regsubmit=Submit+Registration!
is present.

Here's the data:
BAD REQ HEADERS:
https://aspiregames.co.uk/forums/member.php
POST /forums/member.php HTTP/1.1
Host: aspiregames.co.uk
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://aspiregames.co.uk/forums/member.php
Content-Type: application/x-www-form-urlencoded
Content-Length: 375
Cookie: mybb[lastvisit]=1500225268; mybb[lastactive]=1500226587; sid=df699c8d9a6fd9dc250216e9c754ea4d
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1

BAD POST DATA:
regcheck1
regcheck2=true
username=test4
password=abc123
password2=abc123
[email protected]
[email protected]
referrername
imagestring=xgyfh
imagehash=481f0d4d9da75040127a222e74c40716
answer=4
question_id=Drk9bfIxtP6DUC9Vd5fAOB6ULlfXT89p
receivepms=1
pmnotice=1
subscriptionmethod=0
timezoneoffset=0
dstcorrection=2
regtime=1500226529
step=registration
action=do_register

-------------------------------------
GOOD REQ HEADERS:
https://aspiregames.co.uk/forums/member.php
POST /forums/member.php HTTP/1.1
Host: aspiregames.co.uk
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://aspiregames.co.uk/forums/member.php
Content-Type: application/x-www-form-urlencoded
Content-Length: 408
Cookie: mybb[lastvisit]=1500225268; mybb[lastactive]=1500226587; sid=df699c8d9a6fd9dc250216e9c754ea4d
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1

GOOD POST DATA:
regcheck1
regcheck2=true
username=test4
password=abc123
password2=abc123
[email protected]
[email protected]
referrername
imagestring=xgyfh
imagehash=481f0d4d9da75040127a222e74c40716
answer=4
question_id=Drk9bfIxtP6DUC9Vd5fAOB6ULlfXT89p
receivepms=1
pmnotice=1
subscriptionmethod=0
timezoneoffset=0
dstcorrection=2
regtime=1500226529
step=registration
action=do_register
regsubmit=Submit+Registration!

BAD REQ HEADERS 2:
POST /forums/member.php HTTP/1.1
Host: aspiregames.co.uk
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://aspiregames.co.uk/forums/member.php
Content-Type: application/x-www-form-urlencoded
Content-Length: 390
Cookie: mybb[lastvisit]=1500225268; mybb[lastactive]=1500226916; sid=df699c8d9a6fd9dc250216e9c754ea4d
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1

BAD POST DATA 2:
regcheck1
regcheck2=true
username=test6
password=abc123
password2=abc123
[email protected]
[email protected]
referrername
imagestring=bu1sg
imagehash=2ed174d9db8fc87f7d36f1cf3832fdb9
answer=4
question_id=22qrdXFpWN9EKWPvEGJaiZHbo50XZNXv
allownotices=1
receivepms=1
pmnotice=1
subscriptionmethod=0
timezoneoffset=0
dstcorrection=2
regtime=1500226882
step=registration
action=do_register

GOOD REQ HEADERS 2:
POST /forums/member.php HTTP/1.1
Host: aspiregames.co.uk
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://aspiregames.co.uk/forums/member.php
Content-Type: application/x-www-form-urlencoded
Content-Length: 423
Cookie: mybb[lastvisit]=1500225268; mybb[lastactive]=1500226916; sid=df699c8d9a6fd9dc250216e9c754ea4d
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1

GOOD POST DATA 2:
regcheck1
regcheck2=true
username=test6
password=abc123
password2=abc123
[email protected]
[email protected]
referrername
imagestring=bu1sg
imagehash=2ed174d9db8fc87f7d36f1cf3832fdb9
answer=4
question_id=22qrdXFpWN9EKWPvEGJaiZHbo50XZNXv
allownotices=1
receivepms=1
pmnotice=1
subscriptionmethod=0
timezoneoffset=0
dstcorrection=2
regtime=1500226882
step=registration
action=do_register
regsubmit=Submit+Registration!
Ok so it appears that your issue is with the redirect to the success page, as the user does get created.
Can I see the content of your .htaccess please?
being a 100% stock install the headers should be correct? ive dont no edits to anything on the software (reinstalled it just before posting here)

the ht is stock

Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
	# Turn off mod_security filtering.
	SecFilterEngine Off

	# The below probably isn't needed, but better safe than sorry.
	SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>
	RewriteEngine on
	RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
	RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

	RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
	RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
	RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
	RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
	RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
	RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
	RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

	RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

	RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

	RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

	RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

	RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

	<IfModule mod_env.c>
		SetEnv SEO_SUPPORT 1
	</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE text/css text/html application/xhtml+xml text/xml application/xml text/plain text/x-component application/javascript application/x-javascript application/rss+xml application/atom+xml application/json application/manifest+json application/x-web-app-manifest+json application/vnd.ms-fontobject application/font-sfnt application/font-woff application/font-woff2 image/svg+xml image/x-icon
</IfModule>

# Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too
<Files "error.log">
	Order Deny,Allow
	Deny from all
</Files>

just going to check the server is enforcing ht

checked, the server is enforcing .ht and nothing should be conflicting with it on vhost side (also tried with no .ht)

ive got to bounce to sleep, (very tired). i appreciate everyone helping out i will do whatever is listed when i get up. i must be missing something i just don't know what
(╯°□°)╯︵ ┻━┻

sigh.. thanks again everyone catch ya in a few hrs

after reinstalling Apache and PHP and MySQL i don't know what this can be anymore, im going to try other software and see where that gets me. Will report the results

BREAKING NEWS

I HAVE FIXED IT!!!!

ok so, the issue was actually with PHPmail(); not sure the specific issue as of yet but i noticed when installing other software the install froze sending test mail, tested this further with a test script and got similar hangs to MyBB registration. I changed the mail to SMTP and provided details and the issue has now gone away and everything is working as expected.

Just wanted to thank everyone who helped out. i spent many hrs working on this and got alot of help and support.
i appreciate all the help i got, thanks again

- Rose
Pages: 1 2