URGENT: Potential major blocker - folder activity error message on Moodle 2.8.7

URGENT: Potential major blocker - folder activity error message on Moodle 2.8.7

על ידי Yezi Yang בתאריך
מספר תגובות: 4

I build Moodle mobile 2.0 for the higher education institution I work in. However, I find that when clicking into a folder activity, there is an error message popping up. After clicking the “OK” button in the error message, the files in the folder can be viewed without any problems. I do the test on both iOS and Android devices, after clicking into a folder, they all show an error message, as can be seen below. The first one is iOS device and the second one is Android device. The messages are not worded exactly the same, but mention the same thing.




Also in the Google Chromium when I see the code of the app, there is an error related to this error message.




So I build completely fresh Moodle servers (Moodle 2.8.5, Moodle 2.8.7 and Moodle 2.9.1) separately from my institution Moodle server, without any plugins or any themes. I download the Moodle mobile 2.0 from apple store for iOS device. I also use the android branch of Github repository link of moodlehq/moodlemobile-phonegapbuild (https://github.com/moodlehq/moodlemobile-phonegapbuild.git) and convert the app through Phonegap build online tool for android device. (The way I convert the Github repository link to an app can be seen at the end of the message.) 


On Moodle 2.8.5 and 2.8.7, both iOS and Android devices have the same error messages as I mentioned above. On Moodle 2.9.1, both of the devices work fine, with no error message. It seems this error message only appears on Moodle 2.8.


Currently, my institution uses Moodle 2.8.7. Since folder activity is a basic activity in Moodle, many teachers are using this activity to organise their lecture resources. This error message issue really influences the behaviour of the Moodle mobile in my institution. In addition, this is the first time we introduces Moodle mobile to staff and students. As a result, it is very important to leave a good impression about this mobile app to users. Obviously, this error message is quite a big problem. I would be grateful if someone in Moodle mobile development could help to solve this issue as soon as possible.


———————————————————————————————————————————


The way I use to convert the app is:

First, get the link of moodlehq/moodlemobile-phonegapbuild in Github (https://github.com/moodlehq/moodlemobile-phonegapbuild), and choose ‘android’ branch. Then copy the URL of the page on the right hand side of the page.




Then, in the phonegap build, I paste the URL and branch in the form. Then Phonegap Build convert the app online.
The app I convert is here: https://build.phonegap.com/apps/1630284/builds



ממוצע דרוגים: -
בתגובה ל: Yezi Yang

Re: URGENT: Potential major blocker - folder activity error message on Moodle 2.8.7

על ידי Dani Palou בתאריך
תמונה של Core developers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers

Hello Yezi,

thanks for reporting this bug. I opened an issue to fix it:

https://tracker.moodle.org/browse/MOBILE-1191

Cheers,

Dani


בתגובה ל: Dani Palou

Re: URGENT: Potential major blocker - folder activity error message on Moodle 2.8.7

על ידי Yezi Yang בתאריך
Dear Dani,

Thank you very much for your efficient support! It is shown that the bug is fixed in Moodle Tracker. However, I did not find the updated code in Github moodlehq/moodlemobile-phonegapbuild. So I wondered when the code can be updated there. Since my institution is in China, Google is blocked here. As a result, we can only put our Moodle mobile app on our institution web link instead of Google store. It means there is no notification or auto-update to users when we update Moodle mobile. Folder activity is a very basic function on Moodle, quite a number of staff is used to putting their lecture resources into folders. We planned to publish our Moodle mobile app to all staff and students in my institution on Sep 1st. However, because we suddendly found this bug, we had to put off the publish date until the bug is fixed. As a result, I would be very grateful if the updated code could be put into the moodlehq/moodlemobile-phonegapbuild Android and iOS branch as soon as possible. Again, many thanks to your and Juan for all your help with this – it’s very kind of you!

Best Regards,
Yezi
בתגובה ל: Dani Palou

Re: URGENT: Potential major blocker - folder activity error message on Moodle 2.8.7

על ידי Yezi Yang בתאריך

Dear Dani,

I check the code change of this bug through the link that is mentioned in Moodle Tracker (https://github.com/dpaloucva/moodlemobile2/commit/7a8a05b2efe085296dea7a9ded1174b1bec0e162), as can be seen below. There is only one small change in core/components/course/services/course.js. I convert the original code of Moodle mobile 2.1 I get from Github moodlehq/moodlemobile-phonegapbuild/android repository with this change. However, when I open a folder in the Moodle mobile app, it still shows the error message. I wondered whether the change mention in the link is the only change I should have to fix the bug, or there are some other changes that Moodle mobile 2.1 in Github does not have affect the behaviour of the bug. In addition, the change is based on modlehq/moodlemobile2 repository. Does the work in moodlehq/moodlemobile-phonegapbuild? I hope that the code that will be released in this week does not have the bug any more.



בתגובה ל: Yezi Yang

Re: URGENT: Potential major blocker - folder activity error message on Moodle 2.8.7

על ידי Dani Palou בתאריך
תמונה של Core developers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers

Hello Yezi,

Moodle Mobile project has 2 kind of files: development files and release (auto-built) files.

When we develop the app we work using the development files, where each controller/service/directive/whatever has its own file. These files are NOT included in the index.html, they aren't used by the app. When we want these changes to take effect, we "build" the release files (under build/ folder) so the changes made in the development files are reflected in the app. Initially we included these build files in the moodlemobile2 repository, but that caused some integration problems so we finally removed them. In the moodlemobile-phonegapbuild repository these build files are included, so there's no need to manually build them.

That means that if you want this change to take effect in the app you have to apply it to the build JS file. In here: https://github.com/moodlehq/moodlemobile-phonegapbuild/blob/master/build/mm.bundle.js#L4802

I hope I made sense חיוך

Dani