Moodle

Disappearing Course with IE & AJAX Format

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7
  • Fix Version/s: 1.7, 1.8, 1.9.6
  • Component/s: Course
  • Labels:
    None
  • Affected Branches:
    MOODLE_17_STABLE
  • Fixed Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

Description

Finally managed to get a reproducable bug with IE:

  • Create a new course with weekly outline
  • turn editting on, and use the ajax drag and drop to move the new forum from the first section to the second section
  • turn editting off
  • turn edditing on

You now can't see any parts of the page.

Issue Links

Activity

Hide
Dan Poltawski added a comment -

Screenshot of what happens and the error which IE birngs up

Show
Dan Poltawski added a comment - Screenshot of what happens and the error which IE birngs up
Hide
Dan Poltawski added a comment -

i've tried this again today with latest cvs. Problem still exists

Show
Dan Poltawski added a comment - i've tried this again today with latest cvs. Problem still exists
Hide
Vy-Shane Sin Fat added a comment -

Can you paste the offending line as well as a few lines before and after from the html source code? (View source from browser).

Show
Vy-Shane Sin Fat added a comment - Can you paste the offending line as well as a few lines before and after from the html source code? (View source from browser).
Hide
Dan Poltawski added a comment -

I don't know how IE generates its line numbers, but the line with *** before it is actually line 138. However I suspect its the getElementById line:

<img alt="Help, Add a resource" src="http://beta.moodle.cleo.net.uk/pix/help.gif" /></a></span><select name="jump" onchange="self.location=document.ressection0.jump.options[document.ressection0.jump.selectedIndex].value;">
<option value="javascript:void(0)">Add a resource...</option>
<option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=text">Compose a text page</option>
<option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=html">Compose a web page</option>

      • <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=file">Link to a file or web site</option>
        <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=directory">Display a directory</option>
        <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=ims">Add an IMS Content Package</option>
        <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=label">Insert a label</option>
        </select><input type="hidden" name="sesskey" value="DXqGF0AFWv" /><noscript id="noscriptressection0" style="display: inline;"><input type="submit" value="Go" /></noscript><script type="text/javascript">
        <!--
        document.getElementById("noscriptressection0").style.display = "none";
        -->
        </script></form
Show
Dan Poltawski added a comment - I don't know how IE generates its line numbers, but the line with *** before it is actually line 138. However I suspect its the getElementById line: <img alt="Help, Add a resource" src="http://beta.moodle.cleo.net.uk/pix/help.gif" /></a></span><select name="jump" onchange="self.location=document.ressection0.jump.options[document.ressection0.jump.selectedIndex].value;"> <option value="javascript:void(0)">Add a resource...</option> <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=text">Compose a text page</option> <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=html">Compose a web page</option>
      • <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=file">Link to a file or web site</option> <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=directory">Display a directory</option> <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=resource&type=ims">Add an IMS Content Package</option> <option value="http://beta.moodle.cleo.net.uk/course/mod.php?id=11&section=0&sesskey=DXqGF0AFWv&add=label">Insert a label</option> </select><input type="hidden" name="sesskey" value="DXqGF0AFWv" /><noscript id="noscriptressection0" style="display: inline;"><input type="submit" value="Go" /></noscript><script type="text/javascript"> <!-- document.getElementById("noscriptressection0").style.display = "none"; --> </script></form
Hide
Vy-Shane Sin Fat added a comment -

I've fixed the javascript error. However, I doubt that this will fix the AJAX issues. It does not seem to be related. But the error should go away in IE now. Can you help me confirm this?

Show
Vy-Shane Sin Fat added a comment - I've fixed the javascript error. However, I doubt that this will fix the AJAX issues. It does not seem to be related. But the error should go away in IE now. Can you help me confirm this?
Hide
Dan Poltawski added a comment -

I now dont seem to get the AJAX course editting and get a new JS error:

'main.portal is null or not an object' (points to the third lien down here)

<script type='text/javascript' src='http://beta.moodle.cleo.net.uk/lib/ajax/ajaxcourse.js'></script>
<script language='javascript'>
main.portal.id = 11;
main.portal.blocks = new Array(['l',
'inst131',
'0'],['l',
'inst111',
'0'],['r',
'inst91',
'0'],['r',
'inst121',
'0'],['r',
'inst141',
'0'])

Show
Dan Poltawski added a comment - I now dont seem to get the AJAX course editting and get a new JS error: 'main.portal is null or not an object' (points to the third lien down here) <script type='text/javascript' src='http://beta.moodle.cleo.net.uk/lib/ajax/ajaxcourse.js'></script> <script language='javascript'> main.portal.id = 11; main.portal.blocks = new Array(['l', 'inst131', '0'],['l', 'inst111', '0'],['r', 'inst91', '0'],['r', 'inst121', '0'],['r', 'inst141', '0'])
Hide
Dan Poltawski added a comment -

(thats the tracker messing with the top line)

Show
Dan Poltawski added a comment - (thats the tracker messing with the top line)
Hide
Dan Poltawski added a comment -

Hmm - I can't seem to get ajax editting with firefox either?

Show
Dan Poltawski added a comment - Hmm - I can't seem to get ajax editting with firefox either?
Hide
Vy-Shane Sin Fat added a comment -

I've just checked in some fixes (few minutes ago). There are still some issues I'm working on, but the AJAX should show up now in Firefox.

Show
Vy-Shane Sin Fat added a comment - I've just checked in some fixes (few minutes ago). There are still some issues I'm working on, but the AJAX should show up now in Firefox.
Hide
Rossiani Wijaya added a comment -

The issues has been resolved on 1.9.6 version.

Please download the latest version.

Thank you

Closing

Show
Rossiani Wijaya added a comment - The issues has been resolved on 1.9.6 version. Please download the latest version. Thank you Closing

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: