php error in kill_detail.php and admin page

Please report bugs here, please be very detailed in your bug reports. If you've come up with some code to fix the bug, please post it here.
Post Reply
Tupsi
Greenhorn
Posts: 11
Joined: Mon Jan 19, 2009 12:15

php error in kill_detail.php and admin page

Post by Tupsi »

while the details page seems to load fine I get the following php error in my log everytime some access a details page:

Code: Select all

2018/12/20 16:19:06 [error] 8020#8020: *10571 FastCGI sent in stderr: "PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1057
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1057
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1057
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1057
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1057
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1057
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1057
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1057
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1126
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1126
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1126
PHP message: PHP 2:  count(): Parameter must be an array or an object that implements Countable in [killboard]/common/kill_detail.php on line 1126
also accessing /admin gives me this:

Code: Select all

2018/12/20 16:21:50 [error] 8020#8020: *10571 FastCGI sent in stderr: "PHP message: PHP 2:  session_name(): Cannot change session name when session is active in /var/www/myhostname/common/includes/class.session.php on line 46" while reading response header from upstream, client: [ipaddress], server: myhostname, request: "POST /index.php/login/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "myhostname", referrer: "https://myhostname/index.php/login/"
2018/12/20 16:21:50 [error] 8020#8020: *10571 FastCGI sent in stderr: "PHP message: PHP 2:  Use of undefined constant PILOT_ID - assumed 'PILOT_ID' (this will throw an Error in a future version of PHP) in /var/www/myhostname/common/admin/option_config.php on line 132" while reading response header from upstream, client: [ip address], server: myhostname, request: "GET /index.php/admin/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "myhostname", referrer: "https://myhostname/index.php/login/"
using latest 4.2.2.0
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: php error in kill_detail.php and admin page

Post by Salvoxia »

Hi,

thanks for the heads-up, these are not actual errors but notices.
I will take a look to clean that up nevertheless.

Best Regards,
Salvoxia
Post Reply