Moodle

de_utf8/admin.php There is an error with the `curlcache` string that is causing notices

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 1.9.5
  • Component/s: Language
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

When testing changes I was making to the auth language files I found that the `curlcache` string in de_utf8/admin.php is causing multiple notices to be shown.

Notice: Trying to get property of non-object in /var/www/m20.dev1/moodle/lib/moodlelib.php(5960) : eval()'d code on line 117
Notice: Trying to get property of non-object in /var/www/m20.dev1/moodle/lib/moodlelib.php(5960) : eval()'d code on line 118
Notice: Undefined variable: CFG in /var/www/m20.dev1/moodle/lib/moodlelib.php(5960) : eval()'d code on line 378
Notice: Trying to get property of non-object in /var/www/m20.dev1/moodle/lib/moodlelib.php(5960) : eval()'d code on line 378
+ several more (note the CFG one)

The error can be replicated by simply logging in, changing your language to `de` and then browsing to the admin section.

The error is (I believe) caused because $a is used several time throughout the string sometimes as an object, sometime just '$a'. I'm not too sure what $a is meant to be and as I don't speak that language I really have no clue what is going on. If someone who understands de this could please check it and make a decision about what it should be a fix it that would be fantastic

Activity

Hide
Koen Roggemans added a comment -

Thanks, should be solved after language update - I'll email the 670 lines of text that shouldn't be there to Ralp

Show
Koen Roggemans added a comment - Thanks, should be solved after language update - I'll email the 670 lines of text that shouldn't be there to Ralp
Hide
Helen Foster added a comment -

Sam, thanks for your report, and Koen, thanks for fixing the problem promptly.

Show
Helen Foster added a comment - Sam, thanks for your report, and Koen, thanks for fixing the problem promptly.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: