Editing Mode turns off after every alteration to course

Editing Mode turns off after every alteration to course

by Malcolm Hay -
Number of replies: 2

Editing Mode turns off after every alteration to course for some users - solved (in this instance for now)

Moodle 3.5.3+ (Build: 20181116), PHP 7.2 (7.2.10.0.0.18.04.1), mysql (5.7.24-0ubuntu0.18.04.1)

I am posting this to find out how wide-spread the above problem is. The last reference I was able to find in Tracker was regarding Moodle versions 1.8-1.9 in 2008. (https://tracker.moodle.org/browse/MDL-11536)

One responder to the post wrote "that the "editing" attribute of the collection $USER lost his value after each change on the course." No solution was offered and the thread was closed in 2013 after no more responses and the support for the versions ended.

Our problem also affected only a handful of users regardless of the computer they used, operating system or browser. While editing their courses every alteration they saved turned off editing mode, making it tedious for them to maintain their courses.

We eventually decided that it could only be tied to their actual user profile. In all cases we altered the Student ID in the optional section, updated and then changed it back. This seemed to reset the profile and the problem disappeared.

At this point, we are assuming that the database entries for a few users have been corrupted and that updating the profile has overwritten this. I do not think it was linked to the actual student ID.

There is also a possibility that this might also be linked to a problem we had with a course where the course completion data was not displayed returning the error message "Exception - call to a member function get_formatted_name() on null"

After backing the course up, including the user data, and restoring it into itself the course completion data displayed correctly.

Our dev server is running an identical environment to our live server and has not displayed any of these symptoms, even with the same user profiles.

It would be interesting to find out if others have had or are having these issues and what solutions were put in place to solve them. We are still trying to track down what could possibly be the root cause.

Regards,

Malcolm Hay

Average of ratings: -
In reply to Malcolm Hay

Re: Editing Mode turns off after every alteration to course

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Never heard of it before. 

The first thing I would do is to run with full Debugging on and reproduce the problem. Check your web server's error log for anything relevant logged. 

It's also worth reproducing the problem with the JavaScript Console open in your browser - just to see if anything shows up. 

In reply to Malcolm Hay

Re: Editing Mode turns off after every alteration to course

by William Lu -
Picture of Particularly helpful Moodlers
Just update on behalf of Malcolm, as his workmate.

Now, the editing button bugs are affecting more and more teachers, including my dummy testing teacher accounts. So I have a good chance to test as a ‘real’ teacher.
And I’ve been testing this last week many times.

I found out that if there any External tool existed in a course, then, the teacher’s editing button may get the bug.

Remove the external tool will fix it.

But, some teachers do need these External tools, Like Echo360 or Zoom.

So, these teachers with the External tools still are still suffering the bug.

Please help.

Thanks.