View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
10479Feature requestsOtherpublic2018-06-29 13:38
Reporterollehar Assigned To 
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary10479: Error reporting/no more white-pages
Description
  1. Disable white-pages in admin interface to ease error report.
  2. Keep white-pages in survey mode, but have it reported in the admin interface so the admin can report the error.
TagsNo tags attached.
Bug heat4
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2016-02-18 09:26

developer   ~35378

Last edited: 2016-02-18 09:30

Hi,

Maybe 3 part:
debug = 0 : show some error only to 1st super admin (but : think it's best to log error in a file)
debug = 1 : show error to super admin
debug = 2 : show error to any admin
debug = 3 : show error for whole

Or another option : debugView : 0/1/2/3

I think it's always best to take the error to be shown by server only :
https://github.com/LimeSurvey/LimeSurvey/blob/master/index.php#L173

DenisChenu

DenisChenu

2016-02-18 09:31

developer   ~35379

Something with : if super admin : reset error_reporting to default from server ....

ollehar

ollehar

2016-02-18 13:33

administrator   ~35397

Cool, I was thinking more in the lines of an error log interface in the admin.

DenisChenu

DenisChenu

2016-02-18 13:57

developer   ~35400

Last edited: 2016-02-18 13:57

You mean something : a show debug log in Admin part : and show the log of Yii ?

If yes :

Start by set error loging to a file in internal.php : 'class'=>'CFileLogRoute',
http://www.yiiframework.com/doc/guide/1.1/en/topics.logging

And add, somewhere, in admin part to see this file .

Better idea !

PS: we can add actually log in config.php file, in web too.

DenisChenu

DenisChenu

2016-02-18 13:59

developer   ~35402

PS: remind : it's alway better to log elsewhere : web don't need access to log file ..... (in 3.0 : runtime is not inside web dir).

ollehar

ollehar

2016-02-18 15:37

administrator   ~35410

Yes, a debug log in admin, but only if we have errors (or maybe we can enable/disable it in global settings?). That way we can encourage users to report bugs, and we don't have to tell them to "set debug = 2 and reload".

DenisChenu

DenisChenu

2016-02-18 16:19

developer   ~35415

'levels'=>'error',
'categories'=>'system.*',

We can even log in a sqlite DB CDbLogRoute

I already use sqlite DB for some caching in plugin.

DenisChenu

DenisChenu

2018-06-29 13:38

developer   ~48403

See some idea : https://github.com/LimeSurvey/LimeSurvey/pull/1089#issuecomment-401286535

Issue History

Date Modified Username Field Change
2016-02-16 14:11 ollehar New Issue
2016-02-18 09:26 DenisChenu Note Added: 35378
2016-02-18 09:30 DenisChenu Note Edited: 35378
2016-02-18 09:31 DenisChenu Note Added: 35379
2016-02-18 13:33 ollehar Note Added: 35397
2016-02-18 13:57 DenisChenu Note Added: 35400
2016-02-18 13:57 DenisChenu Note Edited: 35400
2016-02-18 13:57 DenisChenu Note Edited: 35400
2016-02-18 13:59 DenisChenu Note Added: 35402
2016-02-18 15:37 ollehar Note Added: 35410
2016-02-18 16:19 DenisChenu Note Added: 35415
2018-06-29 13:38 DenisChenu Note Added: 48403