Support Forum
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...
Visit Cruise Talk Central and Mr Papa's World
its where ever you are storing sp plugins...
by default it would be wp-content/sp-resources/forum-plugins/ban
Visit Cruise Talk Central and Mr Papa's World
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!
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?
Visit Cruise Talk Central and Mr Papa's World
This is exactly what I did:
1. I cleared the error log
2. Edited the sp-ban-admin-save.php file per instructions (below) & uploaded file to server
function sp_ban_admin_do_save_bans() {
$ips = explode("\n", trim($_POST['ip_addr']));
sp_update_option('banned_ips', sp_esc_str($ips));
$ip_ranges = explode("\n", trim($_POST['ip_addr_range']));
sp_update_option('banned_ip_ranges', sp_esc_str($ip_ranges));
$hostnames = explode("\n", trim($_POST['hostname']));
sp_update_option('banned_hostnames', sp_esc_str($hostnames));
$user_agents = explode("\n", trim($_POST['user_agent']));
sp_update_option('banned_agents', sp_esc_str($user_agents));
return __('Bans updated', 'sp-ban');
}
3. Entered 3 IP addresses (one per line)
27.159.223.93
27.252.78.193
31.73.110.211
4. Clicked Updated Bans
5. All IP addresses disappeared and were no longer in the box
6. Checked error log (see attached pdf)
I am afraid I confused and have lost the bubble here a bit... The code I linked doesnt look quite right and doesnt match what is in the upcoming bans plugin update...
That update is coming out tomorrow with sp 5.3... Can we until then and just update the plugin and see if that resolves it?
Visit Cruise Talk Central and Mr Papa's World
5.3 and the plugin updates, including bans, have been pushed out...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)