Moodle

XML Parsing Error in calendar/event_delete.html

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.9, 1.9.1, 1.9.2, 2.0
  • Fix Version/s: 1.8.6, 1.9.2
  • Component/s: Usability
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

When I access calendar/event.php?action=delete&id=2, it shows:
XML Parsing Error: mismatched tag. Expected: </input>.
Location: http://dongsheng.moodle.com/18/calendar/event.php?action=delete&id=2
Line Number 156, Column 9: </p>
--------^

Activity

Hide
Dongsheng Cai added a comment -

Fixed, feel free to reopen

Show
Dongsheng Cai added a comment - Fixed, feel free to reopen
Hide
Nicolas Connault added a comment - - edited

In 1.8, I still get

XML Parsing Error: mismatched tag. Expected: </td>.
Location: http://enterprise/moodle_18/calendar/event.php?id=157&action=delete&m=07&d=01&y=2008&confirm=1&repeats=0&course=15
Line Number 118, Column 3:
</div> <!-- end div content -->
--^

Show
Nicolas Connault added a comment - - edited In 1.8, I still get XML Parsing Error: mismatched tag. Expected: </td>. Location: http://enterprise/moodle_18/calendar/event.php?id=157&action=delete&m=07&d=01&y=2008&confirm=1&repeats=0&course=15 Line Number 118, Column 3: </div> <!-- end div content --> --^
Hide
Nicolas Connault added a comment - - edited

And in 1.9, I get

XML Parsing Error: mismatched tag. Expected: </td>.
Location: http://enterprise/moodle_19/calendar/event.php?id=9&action=delete&m=7&d=15&y=2008&confirm=1&repeats=0&course=0
Line Number 132, Column 3:
</div><div id="footer"><hr /><p class="helplink"></p> <div class="validators"><ul>
--^

Show
Nicolas Connault added a comment - - edited And in 1.9, I get XML Parsing Error: mismatched tag. Expected: </td>. Location: http://enterprise/moodle_19/calendar/event.php?id=9&action=delete&m=7&d=15&y=2008&confirm=1&repeats=0&course=0 Line Number 132, Column 3: </div><div id="footer"><hr /><p class="helplink"></p> <div class="validators"><ul> --^
Hide
Dongsheng Cai added a comment -

Hi, Nicolas, the mismatched tags are caused by redirect function (see event.php 305 line), this function will output redirect JavaScript and HTML footer, IMO it is not necessary to fix this.

Show
Dongsheng Cai added a comment - Hi, Nicolas, the mismatched tags are caused by redirect function (see event.php 305 line), this function will output redirect JavaScript and HTML footer, IMO it is not necessary to fix this.
Hide
Dongsheng Cai added a comment -

Do you have any idea to solve this problem?

Show
Dongsheng Cai added a comment - Do you have any idea to solve this problem?
Hide
Petr Škoda (skodak) added a comment -

hmm, redirect can not be used in random places - ideally it should be used before starting any html output, or you have to manually close all tables and divs before using it.

Show
Petr Škoda (skodak) added a comment - hmm, redirect can not be used in random places - ideally it should be used before starting any html output, or you have to manually close all tables and divs before using it.
Hide
Dongsheng Cai added a comment -

There are several random calls of redirect, I will manually close the tags.

Show
Dongsheng Cai added a comment - There are several random calls of redirect, I will manually close the tags.
Hide
Dongsheng Cai added a comment -

Close tags manually before calling redirect, please review, thanks

Show
Dongsheng Cai added a comment - Close tags manually before calling redirect, please review, thanks
Hide
Petr Škoda (skodak) added a comment -

thanks

Show
Petr Škoda (skodak) added a comment - thanks

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: