Moodle

Lots of warning messages when turn on the Debug messages (NORMAL: Show errors, warnings and notices)

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9, 1.9.1
  • Fix Version/s: 1.9.2
  • Component/s: Libraries, Usability
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

When access the "Site Administration" block (login as admin) and try to "Add a new user" (or do something in the Accounts area), if you turn on the debugging mode (see screenshots), you will get a lot of warning messages. Seems like lib/weblib.php could use some clean up maybe...

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Yup, thanks Wen Hao!

that's one change we introduced recently about how the help buttons are printed. So, while keeping BC compatibility... we output that debug info.

IMO this must be addressed by:

  • Change that debug to DEBUG_DEVELOPER level (hasn't sense to have it in NORMAL level)
  • Fix the helpbutton() to use correct parameters.
  • Perhaps we could look for current calls to that function using the $text parameter and fix all them?

Dongsheng, can you, please? I think Mathieu did those changes in helpbutton() function. Sure he can comment you about the correct way. I'm not 100% sure about that.

TIA!

Show
Eloy Lafuente (stronk7) added a comment - Yup, thanks Wen Hao! that's one change we introduced recently about how the help buttons are printed. So, while keeping BC compatibility... we output that debug info. IMO this must be addressed by:
  • Change that debug to DEBUG_DEVELOPER level (hasn't sense to have it in NORMAL level)
  • Fix the helpbutton() to use correct parameters.
  • Perhaps we could look for current calls to that function using the $text parameter and fix all them?
Dongsheng, can you, please? I think Mathieu did those changes in helpbutton() function. Sure he can comment you about the correct way. I'm not 100% sure about that. TIA!
Hide
Dongsheng Cai added a comment -

Hi, Eloy, this issue is caused by user/editadvanced_form.php line 38.
The array parameter will pass to helpbutton() function, if I remove $text parameter, I need to create new help file in lang/en_utf8/help (may be many help files need to be created). If you agree, I can start to create more help files for helpbutton().

I change debug level first.

Show
Dongsheng Cai added a comment - Hi, Eloy, this issue is caused by user/editadvanced_form.php line 38. The array parameter will pass to helpbutton() function, if I remove $text parameter, I need to create new help file in lang/en_utf8/help (may be many help files need to be created). If you agree, I can start to create more help files for helpbutton(). I change debug level first.
Hide
Dongsheng Cai added a comment - - edited

I forgot adding you to watch list, need further discussion.

Show
Dongsheng Cai added a comment - - edited I forgot adding you to watch list, need further discussion.
Hide
Petr Škoda (skodak) added a comment -

I guess this was already fixed this week, closing

thanks

Show
Petr Škoda (skodak) added a comment - I guess this was already fixed this week, closing thanks

People

Dates

  • Created:
    Updated:
    Resolved: