How to fix corrupted Labels
1.9 By Maryel Mendiola
By Maryel Mendiola
Have you ever seen (or write) a Label with corrupt html or some script that Moodle doesn't recognize ?
And suddenly You . . . • can't edit the label, • can't delete it, • can't do anything, and the edit icons have all disappeared. Well . . . Don’t worry
, Be happy
Because it is very easy to fix corrupt labels. Just follow the next Step by Step
By Maryel Mendiola
Look at this Label. It makes freaky things
By Maryel Mendiola
Like this:
By Maryel Mendiola
By Maryel Mendiola
Right click and “View Page Source”
By Maryel Mendiola
In source page, it is recommended to find a text we typed in label and the text can easily be found Maybe we should choose “OMG� (Oh my God!!) to find at source page
By Maryel Mendiola
This is how Page Source looks
Now, when we find the text we are looking for, we need to look near it and find this class
< class="activity label" id="module-XXXX > Where XXXX is a number and is the ID label we are going to use
By Maryel Mendiola
Yes !!!
By Maryel Mendiola
By Maryel Mendiola
Once edit URL is typed, the â&#x20AC;&#x2DC;Updating Labelâ&#x20AC;&#x2122; page appears
It is highly recommended to delete Everything in this Label through button By Maryel Mendiola
This way it is guaranteed that no code stay there
pernicious pernicious code code
activated
By Maryel Mendiola
When it is everything deleted:
We just type a point (or other short character) And we get this By Maryel Mendiola
Editing Icons recovered Do you see the point we typed? The right Blocks are back!!
We can see The Topics again
Our front page recovered and clean â&#x2DC;ş
By Maryel Mendiola
Maria
By Maryel Mendiola