Support Forum

Ban Plugin: Where to see the added IPs?

18 Answers

New Answer

EL Elsa
Elsa
Member

Thank you Yellow Swordfish.  I see that is where I can enter them, but I would like to be able to review the list of banned IP’s and do not know where to find that.

MP Mr Papa
Mr Papa
Member

where you enter them IS the list…  you enter the IPs you want to ban…   so whatever you enter will be the list of banned IPs…  whatever you enter in that field, will also be displayed as a starting point in the same field when you come back to the page…

EL Elsa
Elsa
Member

Thank you again for your response.  There must be a bug or something, because I’ve tested this a few times and whenever I return to the page, there aren’t any of the IPs I entered (the box is completely empty).

MP Mr Papa
Mr Papa
Member

So when you save the IPs, what is the returned status message?  It will show up for a short while after saving in a little popup message…  is there an error?

we had a small handful of users that ran into a server specific issue, so possible you are too, but they would see an error message…

you can try the fix for that rare issue here:  https://simple-press.com/support-forum/sp5-plugin-topics/ban-plugin-implode-warnings-when-i-try-to-add-an-ipaddress-to-add-ip-ban/#p125841

EL Elsa
Elsa
Member

Thank you again Mr. Papa.  I am not seeing any error message.  A little white box appears for a couple of seconds that says Bans Updated.  The IP addresses have disappeared though, and the input box is empty.  Since I’m not getting an error, should I use the fix you linked to, or does that signify that it’s a different issue?

MP Mr Papa
Mr Papa
Member

First, please type in a reply here, what you are entering for a ban… just to make sure the format is correct…

if its correct, then yes, I would suggest making the change…

have you looked at forum – toolbox – error log for anymore info yet?

EL Elsa
Elsa
Member

I am cutting and pasting this:

27.159.223.93
27.252.78.193
31.73.110.211

Thanks!

EL Elsa
Elsa
Member
Tuesday, July 30, 2013
2:09 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 65
function: Unavailable
Warning | implode() [function.implode]: Invalid arguments passed
Tuesday, July 30, 2013
2:09 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 65
function: implode
Warning | implode() [function.implode]: Invalid arguments passed
Tuesday, July 30, 2013
2:09 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 57
function: implode
Warning | implode() [function.implode]: Invalid arguments passed
Tuesday, July 30, 2013
2:09 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 47
function: implode
Warning | implode() [function.implode]: Invalid arguments passed
Tuesday, July 30, 2013
2:09 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 39
function: implode
Warning | implode() [function.implode]: Invalid arguments passed
MP Mr Papa
Mr Papa
Member

so  yes, those are the rare errors I was talking about…  a handful of server configurations seem to throw them…

so make the code changes I showed…  we have already done that in the next version…

EL Elsa
Elsa
Member

Thank you so much for your quick response!  I’ve searched everywhere, I must be blind, because I can’t find the php file you said to edit.  Can you possibly provide me with the path? 

MP Mr Papa
Mr Papa
Member

its where ever you are storing sp plugins…

by default it would be wp-content/sp-resources/forum-plugins/ban

EL Elsa
Elsa
Member

Thank you Mr. Papa, that was helpful and I found it right away.  I edited according to your instructions, but when I tested it- the IPs are still disappearing.

Here’s the entries from the error log (in case that’s helpful):

Wednesday, July 31, 2013
12:32 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 65
function: Unavailable
Warning | implode() [function.implode]: Invalid arguments passed
Wednesday, July 31, 2013
12:32 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 65
function: implode
Warning | implode() [function.implode]: Invalid arguments passed
Wednesday, July 31, 2013
12:32 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 57
function: implode
Warning | implode() [function.implode]: Invalid arguments passed
Wednesday, July 31, 2013
12:32 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 47
function: implode
Warning | implode() [function.implode]: Invalid arguments passed
Wednesday, July 31, 2013
12:32 pm
php file: saelsa/public_html/wp-content/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php
line: 39
function: implode
Warning | implode() [function.implode]: Invalid arguments passed

Sorry to be such a pain with this, but our Forums attract a large number of trolls and being able to get this setting to work is very important to us.  We so appreciate your help with all of this!

MP Mr Papa
Mr Papa
Member

are you sure made the code change requested?  after the change, clear the error log and try again…  you shouldnt be seeing the error with the code change…

and the IPs are entered one per line?