Announcement

#1 2020-03-11 23:28:40

fruityten
Member
2020-03-11
4

Undefined index error since upgrade

Greetings,

I have noticed I have this error below occuring roughly 150 times each time the piwigo instance is loaded. This is causing my log files to be quite big! This started happening since upgrading to the latest version.

Code:

[Wed Mar 11 22:24:03.594928 2020] [ssl:info] [pid 75597] [client 192.168.1.10:52373] AH01964: Connection to child 13 established (server itsjp.pro:443)
[Wed Mar 11 22:24:18.938929 2020] [ssl:info] [pid 75602] [client 192.168.1.1:47110] AH01964: Connection to child 18 established (server itsjp.pro:443)
[Wed Mar 11 22:24:18.950456 2020] [php7:notice] [pid 75602] [client 192.168.1.1:47110] PHP Notice:  Undefined index: HTTP_HOST in /var/www/piwigo/include/functions_url.inc.php on line 56
[Wed Mar 11 22:24:18.950511 2020] [php7:notice] [pid 75602] [client 192.168.1.1:47110] PHP Notice:  Undefined index: HTTP_HOST in /var/www/piwigo/include/functions_url.inc.php on line 56
[Wed Mar 11 22:24:18.950530 2020] [php7:notice] [pid 75602] [client 192.168.1.1:47110] PHP Notice:  Undefined index: HTTP_HOST in /var/www/piwigo/include/functions_url.inc.php on line 56
[Wed Mar 11 22:24:18.950542 2020] [php7:notice] [pid 75602] [client 192.168.1.1:47110] PHP Notice:  Undefined index: HTTP_HOST in /var/www/piwigo/include/functions_url.inc.php on line 56
[Wed Mar 11 22:24:18.950555 2020] [php7:notice] [pid 75602] [client 192.168.1.1:47110] PHP Notice:  Undefined index: HTTP_HOST in /var/www/piwigo/include/functions_url.inc.php on line 56

Does anyone know why this might be occuring and how to fix it?

I look after another piwigo instance, it isn't as large, I also get this same error when loading the site but only once which is acceptable.

I would appreciate any suggestions or insight.

Thanks
James


Edit: added more info and screenshot of filesystem growth since upgrade.


Piwigo 2.10.1
Operating system: Linux
PHP: 7.3.14-1~deb10u1
MySQL: 5.5.5-10.3.22-MariaDB-0+deb10u1
Graphics Library: ImageMagick 6.9.10-23
URLs: https://fruityten.co.uk & https://itsjp.pro

Last edited by fruityten (2020-03-12 00:00:23)

Offline

 

#2 2020-03-12 12:57:43

erAck
Only trying to help
2015-09-06
2023

Re: Undefined index error since upgrade

Silence the Notice message level in your php.ini:

Code:

error_reporting = E_ALL & ~E_NOTICE

or maybe in your Piwigo's local/config/config.inc.php (not sure if that actually helps for the logs)

Code:

$conf['show_php_errors'] = E_ALL & ~E_NOTICE;

though usually one also doesn't want to see any deprecated messages in the UI so that would be

Code:

$conf['show_php_errors'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED;

Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2020-03-12 19:01:12

fruityten
Member
2020-03-11
4

Re: Undefined index error since upgrade

Hi and thanks for your reply.

My first mitigation action was to try changing the php.ini but this didn't stop the notices. It was the change below to the piwigo config.inc.php which has stopped them. FYI for anyone else with this issue.

Code:

$conf['show_php_errors'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED;

I haven't reviewed the install instructions for a while but this might be worth mentioning this there. Or perhaps a bug ticket is more appropriate.

Anyway, thanks again.

Offline

 

#4 2020-03-13 11:16:44

erAck
Only trying to help
2015-09-06
2023

Re: Undefined index error since upgrade

Fwiw, I only have
$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED;
in Piwigo config and in php.ini there's
error_reporting = E_ALL & ~E_NOTICE
and I don't have those notice log entries. But then again I'm using PHP 7.2 and not PHP 7.3


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

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