Issue Details (XML | Word | Printable)

Key: MDL-20520
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Koen Roggemans
Reporter: Sam Hemelryk
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 09/Oct/09 03:10 PM   Updated: 20/Oct/09 04:58 PM
Return to search
Component/s: Languages
Affects Version/s: 2.0
Fix Version/s: 1.9.5

Participants: Helen Foster, Koen Roggemans and Sam Hemelryk
Security Level: None
QA Assignee: Helen Foster
Resolved date: 10/Oct/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
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 :)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Koen Roggemans added a comment - 10/Oct/09 02:40 AM
Thanks, should be solved after language update - I'll email the 670 lines of text that shouldn't be there to Ralp

Helen Foster added a comment - 20/Oct/09 04:58 PM
Sam, thanks for your report, and Koen, thanks for fixing the problem promptly.