|Anonymous | Login | Signup for a new account||2019-08-20 15:03 UTC|
|Main | My View | View Issues | Change Log | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007720||TestLink||Internal issue||public||2016-10-24 10:33||2019-01-19 15:14|
|Status||closed||Resolution||unable to reproduce|
|Product Version||1.9.14 (2015 Q3)|
|Fixed in Version|
|Summary||0007720: PHP Warning in logger class|
|Description||In the logs I get very often this error message:|
PHP Warning: Invalid argument supplied for foreach() in /testlink/lib/functions/logger.class.php on line 201
It looks to me like the variable is not always an array and you should check first if it really is one.
BTW: I have seen here an issue about refactoring the logger class. I am not sure what your plans are. Before you do too much work I would recommend you to look at https://github.com/Seldaek/monolog [^] many large PHP projects use these days monolog. It might be a good solution for you as well.
|Tags||No tags attached.|
|QA Team - Task Workflow Status||TBD|
edited on: 2016-12-11 16:31
Would you mind to try with
and provide feedback?
I've added an extra check, and I'm not able to reproduce on latest code.
Code for logger.class.php seems to be same that 1.9.15 with some checks to avoid to loop over a thing that is not an array.
|no more user feedback|
|2016-10-24 10:33||modir||New Issue|
|2016-12-11 16:16||fman||Note Added: 0025714|
|2016-12-11 16:31||fman||Note Edited: 0025714||View Revisions|
|2016-12-11 16:31||fman||Note View State: 0025714: public|
|2016-12-11 16:31||fman||Assigned To||=> fman|
|2016-12-11 16:31||fman||Status||new => feedback|
|2019-01-19 15:14||fman||QA Team - Task Workflow Status||=> TBD|
|2019-01-19 15:14||fman||Note Added: 0028451|
|2019-01-19 15:14||fman||Status||feedback => closed|
|2019-01-19 15:14||fman||Resolution||open => unable to reproduce|
|Copyright © 2000 - 2019 MantisBT Team|