Support Forum

Ban having errors upon activation

CD Christopher Downey
Christopher Downey
Member

I am attempting to utilize the “Ban” plug-in, but it has errors for the IP addresses. The error is:

/sp-resources/forum-plugins/ban/admin/sp-ban-admin.php on line 39, 57,47 & 65

Anyone have this same error and know the remedy when they first installed the plug-in? I really need to ban IPs but it’s no allowing me because of this.

36 Answers

New Answer

MP Mr Papa
Mr Papa
Member

are you sure its an error?? and not a notice? can you post the actual message?

CD Christopher Downey
Christopher Downey
Member

Mr Papa said
are you sure its an error?? and not a notice? can you post the actual message?

It’s an error. The beginning of the error is:

Warning: implode() [function.implode]: Invalid arguments passed in

And the end is what I posted in the first post of the thread. It’s on those 4 lines and shows up on my forum page in the header when the plug-in is activated.

 

MP Mr Papa
Mr Papa
Member

sorry, replying by email, so some stuff may have been stripped…

can you add screenshot of your ban options page? the various bans are entered one per line, correct?

will stop by forum later this morning to get better visual of what you have posted…

CD Christopher Downey
Christopher Downey
Member

Mr Papa said
sorry, replying by email, so some stuff may have been stripped…

can you add screenshot of your ban options page? the various bans are entered one per line, correct?

will stop by forum later this morning to get better visual of what you have posted…

No worries, I appreciate the help. I cannot enter any bans because of the errors, but they would be entered by single lines. I’ve attached a SS so you can see the errors. There are no errors in any other of the ban options.Ban-options-page.png

 

MP Mr Papa
Mr Papa
Member

in the wp admin, at forum – users – bans, you cannot enter any bans?

can you go to forum – plugins – plugin list and try uninstalling the plugin and then reactivating it? this is odd because we have quite a few folks using the plugin with no issue…

after I grab some lunch, will stop by the forum and see your images…

CD Christopher Downey
Christopher Downey
Member

Mr Papa said
in the wp admin, at forum – users – bans, you cannot enter any bans?

can you go to forum – plugins – plugin list and try uninstalling the plugin and then reactivating it? this is odd because we have quite a few folks using the plugin with no issue…

after I grab some lunch, will stop by the forum and see your images…

When I enter bans it comes up as the screenshot I attached and no bans are active.

I uninstalled & reinstalled then activated and it did the same thing. :(

 

MP Mr Papa
Mr Papa
Member

can you take a look inside your db?  using phpmyadmin or similar…

in the sfoptions table, please look for the option_names of: banned_ips, banned_ip_ranges, banned_hostnames and banned_agents

and post their values here…

CD Christopher Downey
Christopher Downey
Member

Mr Papa said
can you take a look inside your db?  using phpmyadmin or similar…

in the sfoptions table, please look for the option_names of: banned_ips, banned_ip_ranges, banned_hostnames and banned_agents

and post their values here…

Every one of their values is Array

MP Mr Papa
Mr Papa
Member

array???  hmmm… wonder how that is possible… what version of wp?  sp?  and ban plugin?

CD Christopher Downey
Christopher Downey
Member

Mr Papa said
array???  hmmm… wonder how that is possible… what version of wp?  sp?  and ban plugin?

SP: Version 5.2.5

WP: Version 3.5.1

Ban: Version 1.0.2

 

MP Mr Papa
Mr Papa
Member

and can you verify when you uninstall the ban plugin that the sfoptions entries I asked about go away?  and activate again and see if they come back?

at install time, those options are initialized to:

a:0:{}

or at least should be…  not sure why they would not be for you…

another option would be to just change those four to that value…  but would like to understand why not for you – and you only thus far…

which version of php and mysql?

CD Christopher Downey
Christopher Downey
Member

Mr Papa said
and can you verify when you uninstall the ban plugin that the sfoptions entries I asked about go away?  and activate again and see if they come back?

at install time, those options are initialized to:

a:0:{}

or at least should be…  not sure why they would not be for you…

another option would be to just change those four to that value…  but would like to understand why not for you – and you only thus far…

which version of php and mysql?

They do not go away after deactivation & deletion. I don’t know version of php / mysql, I’m accessing on my hosting site not through WP.

 

CD Christopher Downey
Christopher Downey
Member

Mr Papa said
did you try just changing the values?

Doesn’t work. Still getting error messages. Actually, when I enter an IP it gives the error message and puts “Array” back in the option_value. The only one that stays is the banned_users.