Announcement

#1 2024-01-25 12:12:47

KarmaZ
Member
2024-01-25
4

BanIp issue, error message

Hi.

I'm using the BanIp pluhin, because i got a lot of ip adresses who visit my site, few thousand just last days. So i innstall the BanIp. But then i get this two errors.

Warning: Undefined array key 1 in /customers/6/1/f/abc.net/httpd.www/ph/plugins/BanIP/main.inc.php on line 57 Warning: Undefined array key 2 in /customers/6/1/f/abc.net/httpd.www/ph/plugins/BanIP/main.inc.php on line 57 Warning: Cannot modify header information - headers already sent by (output started at /customers/6/1/f/abc.net/httpd.www/ph/plugins/BanIP/main.inc.php:57) in /customers/6/1/f/abc.net/httpd.www/ph/include/page_header.php on line 99


Since I'm not so good in php, I don't figured out what i need change for fix this. Hope someone can help me.


Thanks

Offline

 

#2 2024-01-25 12:42:05

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7208

Re: BanIp issue, error message

Hi :-)

use you VPN ?

BanIP version  (the last line 57 is empty)


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2024-01-25 13:32:52

KarmaZ
Member
2024-01-25
4

Re: BanIp issue, error message

For now I use my phone as router, and maybe that could cause the issue.?

Offline

 

#4 2024-01-25 22:12:23

KarmaZ
Member
2024-01-25
4

Re: BanIp issue, error message

Here is the line 57:

$Vip2 = $plage[0].".".$plage[1].".".$plage[2].".*";

Offline

 

#5 2024-01-27 07:50:28

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7208

Re: BanIp issue, error message

Hi :-)

can you take this file http://piwigo.org/svn/extensions/BanIP/admin.php for test

your error says your not ip adress ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2024-01-28 11:28:30

KarmaZ
Member
2024-01-25
4

Re: BanIp issue, error message

I found out the issue, it was because my ip was ipv6, so the script doesen't known the Ip. I changed to ipv4, and now the script runs perfect. So maybe something to edit in the script for the future, because many use ipv6, but then you get the error again.

Thanks :)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact