but it's kinda important to get what's in the DB matched up and accurate with what really is in moodledata/filedir/ As you have discovered, backups have issues and if one restored the backup that had issues it's not going to fix on the fly. remove the file in the Moodle UI, and re-upload. Then use the Moodle UI to edit, the link to the graphic. That creates a file that is 0 bytes by that name in that location.Ĭhown apache:apache 41cfeee5884a43a4650a851f4f85e7b28316fcc9Ībove sets ownership so that Moodle can see it. You need a file in there so Moodle will let you edit. Let's say there wasn't a file with the contenthash name at filedir/41/cf/ but the directories are. If you run across an issue of Moodle not letting you edit it you might have to create blank files that contain nothing but the fac they are present moodle will allow editing. 1 apache apache 4451 cf]# file -b 41cfeee5884a43a4650a851f4f85e7b28316fcc9įile exist and accoring to file -b is a jpeg. In a moodledata/filedir filedir]# cd 41]# cd cf]# ls -l Is there file with the contenthash name:Ĭommand line way. Is there a 'cf' directory there (2nd two characters of the contenthash). Then see if there is a '41' subdirectory? (first two characters of the contenthash) Go into it. Then, in something that can browse files, go to moodledata/filedir/ Select contenthash,filename from `mdl_files` where `mimetype` like "%image%" Parse that contenthash variable 'mentally' then use whatever you have to browse files in /moodledata/filedir/#/#/to see if there is a contenthashed name file at that location. the only way to find out if those files are in moodledata is to use DB queries to find the 'contenthash' variable. " is there a way to see if those images exist anywhere in the server is correct.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |