Announcement

  •  » Extensions
  •  » BanIP extension displays a notice for guests since PWG update 2.9.2

#1 2017-11-22 07:24:27

galixte
Member
Marseille
2005-01-28
15

BanIP extension displays a notice for guests since PWG update 2.9.2

Hi,

I have updated my gallery to 2.9.2 version. Now, on all pages, guest users can read this message in the header:

Code:

Notice: Undefined offset: 1 in /plugins/BanIP/main.inc.php on line 54

Notice: Undefined offset: 2 in /plugins/BanIP/main.inc.php on line 54

I think it comes from this extension: [extension by ddtddt] BanIP.

Piwigo version: 2.9.2
PHP version: 5.6.32
MySQL version: 5.6.38

Regards.

Last edited by galixte (2017-11-22 07:31:26)

Offline

 

#2 2017-11-22 20:43:53

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

Re: BanIP extension displays a notice for guests since PWG update 2.9.2

Hi :-)

you're use htaccess ?


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 2017-11-22 20:59:49

galixte
Member
Marseille
2005-01-28
15

Re: BanIP extension displays a notice for guests since PWG update 2.9.2

Yes ?

EDIT: I checked, and i don’t use an .htaccess file.

My gallery is installed on a sub-domain, like: http://photos.domain.tld.

Last edited by galixte (2017-11-22 21:03:52)

Offline

 

#4 2017-11-23 06:07:48

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

Re: BanIP extension displays a notice for guests since PWG update 2.9.2

Hi :-)

Can you add line end line 52
echo  $Vip;

and give me first line on galery page


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

 

#5 2017-11-23 12:19:24

galixte
Member
Marseille
2005-01-28
15

Re: BanIP extension displays a notice for guests since PWG update 2.9.2

In main.inc.php, i replaced the line 52:

Code:

  $Vip = $_SERVER["REMOTE_ADDR"];

to:

Code:

  $Vip = $_SERVER["REMOTE_ADDR"];echo  $Vip;

In source code, on index page, the first line is :

Code:

xxx.xxx.xxx.xxx<!DOCTYPE html>

where xxx.xxx.xxx.xxx is my IP address.

Last edited by galixte (2017-11-23 12:26:08)

Offline

 

#6 2017-11-23 21:13:31

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

Re: BanIP extension displays a notice for guests since PWG update 2.9.2

Hi :-)

It's perfect

guest users have why on page


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

 

#7 2018-04-10 23:49:53

galixte
Member
Marseille
2005-01-28
15

Re: BanIP extension displays a notice for guests since PWG update 2.9.2

Hi,

sorry for late, guest users have the same:

Code:

xxx.xxx.xxx.xxx<!DOCTYPE html>

Piwigo version: 2.9.3
PHP version: 5.6.35
MySQL version: 5.6.39

Regards.

Last edited by galixte (2018-04-10 23:50:57)

Offline

 

#8 2018-05-18 08:35:41

galixte
Member
Marseille
2005-01-28
15

Re: BanIP extension displays a notice for guests since PWG update 2.9.2

Hi,

bump, please.

Offline

 

#9 2018-05-18 09:21:14

flop25
Piwigo Team
2006-07-06
6801

Re: BanIP extension displays a notice for guests since PWG update 2.9.2

Do you speak French?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 
  •  » Extensions
  •  » BanIP extension displays a notice for guests since PWG update 2.9.2

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact