Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.2, 1.9.3
-
Fix Version/s: None
-
Component/s: Administration, AJAX, Course
-
Labels:None
-
Environment:php 5, mysql 5,apache 2 , moodle 1.9.2 / 3
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
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.
Issue Links
| This issue duplicates: | ||||
| MDL-10221 | Can't delete course items with Ajax enabled |
|
|
|
disabling AJAX in the user's profile
and then, clicking the "delete" command ( X icon )
deletes the wiki successfully