Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17745

unable to delete resources or activities using rest.php AJAX

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 1.9.2, 1.9.3
    • None
    • php 5, mysql 5,apache 2 , moodle 1.9.2 / 3
    • MySQL
    • MOODLE_19_STABLE

      after importing a course (from a moodle 1.9.2 system) into a new moodle 1.9.2 fresh install
      i am unable to delete resources or activities using the AJAX "X" icon to the left of the resource.
      moving works fine (and all other activities, related to rest.php file)

      i upgraded the install to 1.9.3 and this issue persists.

      when i click "X" the firebug console reports the following RED line:
      DELETE http://rosh-tov.co.il/course/rest.php?courseId=6&class=resource&id=93

      and this is the body of the response from the server:

      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>403 Forbidden</title>
      </head><body>
      <h1>Forbidden</h1>
      <p>You don't have permission to access /course/rest.php
      on this server.</p>
      <p>Additionally, a 404 Not Found
      error was encountered while trying to use an ErrorDocument to handle the request.</p>
      <hr>
      <address>Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at rosh-tov.co.il Port 80</address>
      </body></html>
      ===============================================================

      i checked the DB and all the parameters are correct.

      btw,
      moving the resource up and down changes the resource's data in the DB and works fine.

            rwijaya Rossiani Wijaya
            nadavkav Nadav Kavalerchik
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.