Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
I just upgraded to 6.4.1 and now when my users try to send a PM, they get a message that "Your account has been banned or locked: : "

Any help or info on this?

Sponsored Links
Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
Does anyone monitor this forum?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
????
Hold your horses.

For fastest official service, visit www.ubbcentral.com to open a trouble ticket with infopop support. Otherwise it's user to user support here.

- Did you upload ALL of the 6.4.1 files (don't trust the changedfiles list )
- What are the results of this query:
SELECT * FROM w3t_Banned

Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
Sorry for my impatience... but I have some 2000 members breathing down my neck... wondering if they have been banned and why...

I get my standard ban list when I run that query... nothing unusual. All the usual suspects are there and no extras.

And yes, I uploaded them all.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No accidental wildcard IP bans??

There's no issue with that version and PMs. If anything is modified, then I'd check using unmodified scripts and track it down from there.

I was curious to see if you had any Hostname bans in your banned table?

sendmessage.php calls the check_ban function in the ubbt.inc.php file.
Code
<br />    function check_ban($Uid="",$Cat="") {<br /><br />       global $ubbt_lang,$dbh,$config;<br />       $Hostname = find_environmental('REMOTE_ADDR');<br />       $Hostname_q = addslashes($Hostname);<br /><br />       if ($Uid) {<br />          $extra = "B_Uid='$Uid' OR ";<br />       }<br />       $query = "<br />          SELECT B_Hostname,B_Uid,B_Reason<br />          FROM   {$config['tbprefix']}Banned<br />          WHERE  $extra B_Hostname LIKE '$Hostname_q'<br />       ";<br />       $sth = $dbh -> do_query($query);<br />       list ($Checkuser,$Checkhost,$Reason) = $dbh -> fetch_array($sth);<br />       $dbh -> finish_sth($sth);<br />       if ( ($Checkuser) || ($Checkhost) ) {<br />          $html = new html;<br />          $html -> not_right("{$ubbt_lang['YOU_BANNED']}: $Reason", $Cat);<br />       }<br />    }<br />  }<br />


Which basically stops them if theres a username or IP match in the banned table.

To debug it a bit, above the $sth = line above, you could add

echo "$query";

Then try to send a PM (from an account that doesn't work). it'll let you see the query it's using, that may offers some clues as to why it's finding results with that query.

Sponsored Links
Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
This happened with clean files... no mods installed yet. And it is happening with me also. Every member is affected by it.

I'll try what you suggested. Let me finish adding Quick Reply... almost done...

Joined: Jan 2002
Posts: 266
Kel
Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
Well hell... I don't know what I did but it worked.

I added the echo and that did nothing. I noticed that the query was to the showprivate.php file and not showmessage.php. So I added the echo to that one too and got nothing. So then I just went to the "clean" files that I downloaded with the upgrade software and re-installed those two files. VIOLA! ... all is well! Perhaps I missed one or two of those in the upload?!?! I'm so damn tired I can't see straight...

Thanks for leading me in the right direction Josh... much appreciated!!

I'm off to bed...

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You're welcome. I wondered if a file didn't get uploaded. Sometimes your FTP program times out and you don't notice either.

Glad you got it working.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)