Closed thepurpleblob closed 5 months ago
Please attach steve.png - the exact file that causes and you know causes the problem.
Dear @thepurpleblob,
Test file:
being:
that gives:
with improved reporting: https://github.com/gjbarnard/moodle-format_grid/commit/fa913b1ec3d51e591c67233bfe3fce7ac8753180 - but essentially the same.
Therefore I suspect that the user has uploaded a file that is not a valid image. Patching with the improved error reporting will tell you the user id of the image uploader so that you can take your questioning further with them.
If indeed this is the case, then I would like a demonstration of appreciation for the support I have provided.
Gareth
Thanks for your enthusiasm here. I kind of assumed pilot error. I'm still waiting to get hold of the actual file from the person reporting the problem.
Enthusiasm, no, annoyance, yes, as I was considering a release and now this is a spanner in the works.
I've had no response from our member of staff, so I dug the file out of filedir. Unless I've screwed up (!), Steve.png is, in fact, a PDF document (renamed)...
Ok, so given this is there the possibility that the user has done this on purpose to annoy you? If so then please tell the 'adult' to grow up, that actions have consequences and would they like to financially compensate me for my time?
I doubt it... it's unusual for a member of staff, but we frequently have students who think they can convert a document from (say) .docx to .pdf simply by changing the extension. It's a tough world out there!
I have no access to funding; I can only thank you for your time. I must owe you several beers if we are ever in the same place at the same time!
Dear @thepurpleblob,
Thank you for letting me know and offering beer. Perhaps your employer would consider sponsoring me? I think I may have asked in the past, but am asking again as I'm self employed and all of this support is on my own time.
Gareth
Dear @thepurpleblob,
The patch https://github.com/gjbarnard/moodle-format_grid/commit/4dbedc15aba9f7da9283746274dcb075a39cfadb now does this:
So that you'll be able to repair what's been broken on the course more easily. I've also removed the user id (GDPR probably gets annoyed about this in the screen output), so now the files table id can be easily seen and then used by an authorised person to find the record and get the id of the user, track them down and then make enquiries.
G
Thanks again.
Unfortunately, I can't change my code (reams of paperwork and permission from a committee required). I just deleted it out of the files table. A bit brutal but got the course working again.
Dear @thepurpleblob,
Oh the paperwork! I'm intending to do a Moodle dot org release soon, so that should bypass the 'committee'.
G
Dear @thepurpleblob,
I hope you're alright with storm Isha. I've been thinking and perhaps I can send a begging eMail to your boss / people who do have financial authority asking for sponsorship for the support I'm giving. To this end, would it be possible to have some contact details please? Do see https://github.com/gjbarnard/moodle-format_grid/blob/main/Support.md for my eMail / non-public ways of contacting me.
Gareth
Fixed.
Moodle 4.1.6 Grid: 2022112607
Getting this on one course...
Image information is empty - Image information is empty - itemid > 539521, filename > Steve.png and sectionid > 539521. Please report error details and the information contained in the php.log file to developer..
More information about this error Debug info: Error code: noimageinformation Stack trace:
It's preventing the course page from displaying at all :(
I've done nothing at all (yet) to investigate this but thought I would raise a ticket in case you have any ideas :)