flyersa / MuninMX-Frontend

Frontend for MuninMX
5 stars 1 forks source link

Experiencing php notice log entries #10

Closed staelche closed 7 years ago

staelche commented 7 years ago

I am experiencing quite an amount of php notices entries while surfing over the frontend. In the snippet below I loaded the /index.php and and clicked on a node to get to /view.php?nid=...

Although, the page is working properly it clutters the error log and probably covers some important messages at some point.

2016/12/14 14:16:41 [error] 549#0: *161 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: info in /var/www/muninmx/index.php on line 2
PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /var/www/muninmx/inc/startup.php on line 83
PHP message: PHP Notice:  Undefined index: REDIRECT_URL in /var/www/muninmx/inc/startup.php on line 91
PHP message: PHP Notice:  Undefined index: action in /var/www/muninmx/index.php on line 13
PHP message: PHP Notice:  Undefined index: minify in /var/www/muninmx/index.php on line 32
PHP message: PHP Notice:  Use of undefined constant username - assumed 'username' in /var/www/muninmx/templates/nav/left.tpl.php on line 8
PHP message: PHP Notice:  Undefined variable: plugin in /var/www/muninmx/modules/tokumx/function.php on line 18
PHP message: PHP Notice:  Undefined index: action in /var/www/muninmx/index.php on line 78
PHP message: PHP Notice:  Undefined index: action in /var/www/muninmx/index.php on line 95
PHP message: PHP Notice:  Undefined property: stdClass::$enablejarvis in /var/www/muninmx/templates/core/scripts.tpl.php on line 84" while reading response header from upstream, client: 192.168.56.1, server: munin2.sso.check24.de, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "munin2.sso.check24.de", referrer: "https://munin2.sso.check24.de/login.php"
2016/12/14 14:16:41 [error] 549#0: *158 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /var/www/muninmx/inc/startup.php on line 83
PHP message: PHP Notice:  Undefined index: REDIRECT_URL in /var/www/muninmx/inc/startup.php on line 91
PHP message: PHP Notice:  Undefined variable: input in /var/www/muninmx/dtaTable.php on line 127
PHP message: PHP Notice:  Use of undefined constant id - assumed 'id' in /var/www/muninmx/dtaTable.php on line 146
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 75
PHP message: PHP Notice:  Use of undefined constant id - assumed 'id' in /var/www/muninmx/dtaTable.php on line 152
PHP message: PHP Notice:  Use of undefined constant id - assumed 'id' in /var/www/muninmx/dtaTable.php on line 157
PHP message: PHP Notice:  Use of undefined constant hostname - assumed 'hostname' in /var/www/muninmx/dtaTable.php on line 157
PHP message: PHP Notice:  Use of undefined constant groupname - assumed 'groupname' in /var/www/muninmx/dtaTable.php on line 158
PHP message: PHP Notice:  Use of undefined constant groupname - assumed 'groupname' in /var/www/muninmx/dtaTable.php on line 158
PHP message: PHP Notice:  Undefined variable: r in /var/www/muninmx/modules/munin/function.php on line 496
PHP message: PHP Notice:  Use of undefined constant id - assumed 'id' in /var/www/muninmx/dtaTable.php on line 146
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 75
PHP message: PHP Notice:  Use of undefined constant id - assumed 'id' in /var/www/muninmx/dtaTable.php on line 152
PHP message: PHP Notice:  Use of undefined constant id - assumed 'id' in /var/www/muninmx/dtaTable.php on line 157
PHP message: PHP Notice:  Use of undefined constant hostname - assumed 'hostname' in /var/www/muninmx/dtaTable.php on line 157
PHP message: PHP Notice:  Use of undefined constant groupname - assumed 'groupname' in /var/www/muninmx/dtaTable.p
2016/12/14 14:16:41 [error] 549#0: *161 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /var/www/muninmx/inc/startup.php on line 83
PHP message: PHP Notice:  Undefined index: REDIRECT_URL in /var/www/muninmx/inc/startup.php on line 91" while reading response header from upstream, client: 192.168.56.1, server: munin2.sso.check24.de, request: "GET /ajax/timezone.php?timezone=Europe/Berlin&_=1481721403567 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "munin2.sso.check24.de", referrer: "https://munin2.sso.check24.de/index.php"
2016/12/14 14:16:55 [error] 549#0: *161 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /var/www/muninmx/inc/startup.php on line 83
PHP message: PHP Notice:  Undefined index: REDIRECT_URL in /var/www/muninmx/inc/startup.php on line 91
PHP message: PHP Notice:  Undefined index: debug in /var/www/muninmx/view.php on line 9
PHP message: PHP Notice:  Undefined index: favorite in /var/www/muninmx/view.php on line 60
PHP message: PHP Notice:  Undefined index: favorite in /var/www/muninmx/view.php on line 77
PHP message: PHP Notice:  Undefined index: minify in /var/www/muninmx/view.php on line 121
PHP message: PHP Notice:  Use of undefined constant username - assumed 'username' in /var/www/muninmx/templates/nav/left.tpl.php on line 8
PHP message: PHP Notice:  Undefined variable: plugin in /var/www/muninmx/modules/tokumx/function.php on line 18
PHP message: PHP Notice:  Undefined index: category in /var/www/muninmx/view.php on line 151
PHP message: PHP Notice:  Undefined index: stype in /var/www/muninmx/view.php on line 163
PHP message: PHP Notice:  Undefined index: stype in /var/www/muninmx/view.php on line 163
PHP message: PHP Notice:  Undefined index: stype in /var/www/muninmx/view.php on line 163
PHP message: PHP Notice:  Undefined index: stype in /var/www/muninmx/view.php on line 163
PHP message: PHP Notice:  Undefined index: debug in /var/www/muninmx/view.php on line 170
PHP message: PHP Notice:  Undefined index: disableevents in /var/www/muninmx/view.php on line 175
PHP message: PHP Notice:  Undefined index: disableevents in /var/www/muninmx/view.php on line 181
PHP message: PHP Notice:  Undefined index: rplugs in /var/www/muninmx/view.php on line 188
PHP message: PHP Notice:  Undefined index: action in /var/www/muninmx/view.php on line 200
PHP message: PHP Notice:  Undefined index: action in /var/www/muninmx/view.php on line 217
PHP message: PHP Notice:  Undefined index: action in /var/www/muninmx/view.php on line 226
PHP message: PHP Notice:  U
2016/12/14 14:16:55 [error] 549#0: *161 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/
2016/12/14 14:16:55 [error] 549#0: *161 FastCGI sent in stderr: "age: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/cinterval/function.php on line 64
PHP message: PHP Notice:  Undefined variable: and in /var/www/muninmx/modules/contacts/function.php on line 486
PHP message: PHP Notice:  Undefined index: action in /var/www/muninmx/view.php on line 753
PHP message: PHP Notice:  Undefined property: stdClass::$enablejarvis in /var/www/muninmx/templates/core/scripts.tpl.php on line 84" while reading response header from upstream, client: 192.168.56.1, server: munin2.sso.check24.de, request: "GET /view.php?nid=2 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "munin2.sso.check24.de", referrer: "https://munin2.sso.check24.de/index.php"
2016/12/14 14:16:56 [error] 549#0: *161 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /var/www/muninmx/inc/startup.php on line 83
PHP message: PHP Notice:  Undefined index: REDIRECT_URL in /var/www/muninmx/inc/startup.php on line 91" while reading response header from upstream, client: 192.168.56.1, server: munin2.sso.check24.de, request: "GET /ajax/timezone.php?timezone=Europe/Berlin HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "munin2.sso.check24.de", referrer: "https://munin2.sso.check24.de/view.php?nid=2"
flyersa commented 7 years ago

yeah its notice because some variables miss the ' in the code ;) Just disable php_notices in php.ini and set error_level to E_ERROR

staelche commented 7 years ago

Ok. Not very clean though.

flyersa commented 7 years ago

well it was not written by developers but system engineers ;)