The error is not consistance, and happends now and then during different actions; like changing a logo in a label, uploading a file.
The error causes the set Grid image to dissapear, after re uploading the image will show again. (Not even all images will disapear it's random).
Anyone with an idea what causes the error and how to solve?
(I did see some bug issues on Grid on errors during restore, though they where checked as solved)
The information shown:
Hi Gemma,
To be honest, I'm at a loss as to why this is happening. I have never replicated the error and its been reported before: https://moodle.org/mod/forum/discuss.php?d=316768.
What were the errors shown on the restore please? I've already fixed one restore issue in V2.9.1.2. With reference to: https://moodle.org/mod/forum/discuss.php?d=316768#p1270850 which does this line: https://github.com/gjb2048/moodle-format_grid/blob/master/lib.php#L1460 please could you look in your 'php.log' file and report the information along with performing the instructions it states.
Cheers,
Gareth
P.S. As far as I'm aware, the code is correct in that this line: https://github.com/gjb2048/moodle-format_grid/blob/master/lib.php#L1375 uses the information stored in the database to locate the image in the moodledata area. The record is created correctly on restore by the standard course restore code as it is a section image. The Grid code just sorts itself out here: https://github.com/gjb2048/moodle-format_grid/blob/master/backup/moodle2/restore_format_grid_plugin.class.php#L117.
I spoke with the coursedesigners about it, and they say it happends randomly but after using the "import" function. They import course date from a "standard" or former course.
The error pops up on different occassions after the import, but always when a change is been made (importing a file, changing an image etc).
I requested the log from my hosting party, so I do hope to get more information on it.
Hi Gemma,
Thanks. So are they importing resources etc. from a course that is not in the format?
If there was a reliable means of replicating the situation then I would be in a position to start figuring out what on Earth is going on .
Cheers,
Gareth
Just to be sure I have asked them the sequence of actions (though I am not able to reproduce the error even following those)
Before they import from a different course they make sure the courseformat is Grid, so the formats are the same.
FYI: They recently switched to 2.9.1.
In Moodle 2.6 they imported resources etc as well. With the same sequence of actions.
Though the pictures uploaded in Grid never imported with it.
So after they had imported the resources, they always had to upload the images in Grid.
While now they see the grid images coming with the import.
So maybe that's the change? The fact that with importing the grid images import as well, but when they try to change (maybe a day later or something) the server tries to find the images in the wrong place?