Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Unable to delete course

$
0
0
by Ken Task.  

What is "CAEICAT1ESO"?

Is that a course title/shortname?

The debug does refer to 'recyclebin' and a 'tool_recyclebin_pre_course_delete()' function.

Is that course still viewable?   IF so, go all the way to the bottom of that course page and see if there is a module (activity/resource in the course that shows 'deletion pending'.

Emma is probably onto something about roles and permissions (dunno), but let's pursue a little more ...

Do you have access to phpmyadmin or ssh where you can use the mysql client?   If so, let's see what is in the mdl_files table related to recyclebin.

mysql> select filename,filearea,userid from mdl_files where filename like '%.mbz';

userid will provide info for checking users permissions on the course, me thinks.

Also check the settings for recyclebin.

/admin/settings.php?section=tool_recyclebin

In settings, set them to lowest value or shortest time to retain.

Would also set 'auto hide' opposite so that a recyclebin link shows in the course admin menu all the time rather than appearing only when something is in recyclebin.   That gives one the ability to force removal the items.

Also check ownerships permissions on your moodledata/temp/backup/ because that is the area moodle will use to build a backup ... recyclebin or other.

Cron job and scheduled task running OK?

There are 2 scheduled task related to recyclebin:
\tool_recyclebin\task\cleanup_category_bin
\tool_recyclebin\task\cleanup_course_bin

If you set the path to php-cli in your site config, one could use the 'run now' link that would show in either of those task.

And, finally, if you have CLI access, this course deletion could also be 'stuck' and now referenced as such that an adhoc_task needs to be executed.

From: /admin/tool/task/cli/

php adhoc_task.php --execute

Might also give us a clue as to what is failing.

'SoS', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>