AUR web interface

Tasklist

FS#46420 - PHP notices and warnings filling up error log

Attached to Project: AUR web interface
Opened by Evangelos Foutras (foutrelis) - Thursday, 24 September 2015, 15:55 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 03 October 2015, 10:17 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.0
Due in Version 4.1.1
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

We recently ran out of space on /var/log on the server that hosts https://aur.archlinux.org/

The following notices were flooding the PHP error log for the above hostname:

* PHP Notice: Undefined index: Popularity in /../public/web/lib/aurjson.class.php on line 266
* PHP Notice: Undefined index: callback in /../public/web/lib/aurjson.class.php on line 107
* PHP Notice: Undefined index: package_url in /../public/web/lib/confparser.inc.php on line 15

In addition to the above, there are some warnings as well:

* PHP Warning: Variable passed to each() is not an array or object in /../public/web/template/pkg_search_results.php on line 49
* PHP Warning: in_array() expects parameter 2 to be array, null given in /../public/web/lib/credentials.inc.php on line 41
* PHP Warning: in_array() expects parameter 2 to be array, null given in /../public/web/template/pkg_details.php on line 100

I've excluded notices from the error log for now (~E_NOTICE) but the first warning above is generated quite often too.
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Saturday, 03 October 2015, 10:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 4.1.1.
Comment by Evangelos Foutras (foutrelis) - Saturday, 03 October 2015, 08:16 GMT
Seeing the following in v4.1.0:

PHP Notice: Undefined index: arg in /../web/lib/aurjson.class.php on line 332 (1154 times)
PHP Warning: usort() expects parameter 1 to be array, null given in /../web/template/pkg_details.php on line 56 (170 times)
PHP Notice: Undefined index: Name in /../web/html/packages.php on line 24 (5 times)

(The counts are based on a 3-minute log period.)

Loading...