Not able to see files in attachment area

Not able to see files in attachment area

Carlson Smith發表於
Number of replies: 14

Good day,

I have went through the posts but I seem to be lacking understanding and not able to resolve my issue fully.

Below is a screenshot of my issue:


There should be 2 files, but it just won't show them.  After going through past posts, when javascript is disabled, the files appear.  Please see screenshot of files appearing below chrome browser debugging error.


Changing date/time zone did nothing and cannot find where the log I would need to read from moodle debugging is located in the server.

Please help T_T

Running a https via config.php, so according to the warning from admin panel, using online yui library is strongly advised against.

評比平均分數: -
In reply to Carlson Smith

Re: Not able to see files in attachment area

Ken Task發表於
Particularly helpful Moodlers的相片

I see on the POST line something called 'sentry' reference to version and client.   What is that?

'SoS', Ken

In reply to Ken Task

Re: Not able to see files in attachment area

Carlson Smith發表於
Good day Ken.

Thank you for responding. I have absolutely no idea what that is.
Google search says it is used for error detection. I did have Moodle debugging turned on at the time of using Chrome's built-in error detection.
In reply to Carlson Smith

Re: Not able to see files in attachment area

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
Never heard either. Could it be this https://confection.io/trackers/ingest-sentry-io/ ?
In reply to Carlson Smith

Re: Not able to see files in attachment area

Ken Task發表於
Particularly helpful Moodlers的相片

Got FireFox?  Try that also!

YUI library is yahoo and I do remember sometime ago talk about removing it from Moodle (no longer being maintained) but still there.

Think that YUI stuff is cached so might try purging caches to see if that clears it.

'SoS', Ken


In reply to Ken Task

Re: Not able to see files in attachment area

Carlson Smith發表於
Tried firefox debugger, same issue.
Below is screenshot of firefox debugger, it doesn't show the sentry one



And again, if javascript is disabled, everything works.

Tried clearing YUI cache, no change.
In reply to Carlson Smith

Re: Not able to see files in attachment area

Ken Task發表於
Particularly helpful Moodlers的相片
Those are backup files. I don't think I've ever seen an area that had All/Download All and then buttons for Delete/Move/Rename for every file in any file area/system. So how are you arriving at that screen? And is this an addon?
'SoS', Ken
In reply to Ken Task

Re: Not able to see files in attachment area

Carlson Smith發表於
Hi Ken.
I arrive to that screen by going inside a course container. then I click the gear icon in the top right corner, then click "restore", then click "manage backup files".
Once I am at that area, I disable javascript from running in the browser.
In reply to Carlson Smith

Re: Not able to see files in attachment area

Ken Task發表於
Particularly helpful Moodlers的相片
Just checked a 3.9.highest, 3.10.highest, 3.11.highest - following same path you have given and I don't see any screen like your second screen shot that shows buttons beside each .mbz file for delete, move, rename.
In each view ... the buttons top right corner of that area ... nothing like that.

In your screen shot, however, see the middle button appears to be grayed out.
What happens if you change the view?  See my screen clip.

What version of moodle are you running?

And do you have any customizations related to backup/restore?

What if you changed the theme for a course to boost ... same?

'SoS', Ken
附件 Screen Shot 2022-10-06 at 8.49.51 PM.png
In reply to Ken Task

Re: Not able to see files in attachment area

Carlson Smith發表於
I see those icons when javascript is enabled, but files do not show up in the attachment area.
When javascript is disabled, those icons go away.

The version moodle being ran is 3.10. There are no customizations related to backup/restore.

Classes may still be going on (as much as its 10pm), but will try to do a quick theme switch and back and let you know.
The Moove theme is what is being used currently.

When i disable javascript while in the Moodle Orange High School sandbox, the upload area looks the same as what I posted as well.
In reply to Carlson Smith

Re: Not able to see files in attachment area

Ken Task發表於
Particularly helpful Moodlers的相片

Rather than using Orange, I use my own sandboxes ...

Sandbox 3.10 version 3.10.11 (Build: 20220509) maintained by git.  Installed moove theme and setup one course with it.

No errors/issues ...

And definetly do NOT see that blue background screen shot of yours listing backup files with buttons to right of each file.

PHP is 7.4.32 and environment checks are all ok ... no complaints about DB.

Am not bragging here, just trying to give you something to look at.

'SoS', Ken


In reply to Ken Task

Re: Not able to see files in attachment area

Carlson Smith發表於
No worries Ken. I suspect it to be some file wasn't properly replaced while doing the update.

Just not certain which php file affects that particular function. We have a fresh installed sandbox of our own as well, the issue is not there.

I have not tested that sandbox with "Javascript" turned off / disabled to see if it looks the same. Never the less, the fact that can see the files with javascript turned off versus not seeing it when javascript is on, is what I am concerned about. It would be nice if debugger could say exactly which javascript is called upon to enable the files to be seen in the attachment area.

As said before, the blue background only appears when Javascript is turned off. That is to say, when the function js calls are disabled, it displays the content raw.

Still attempting to narrow down which php file the file attachment area uses, but to no avail so took to the forums to see if anyone knows or has experienced this issue.
In reply to Carlson Smith

Re: Not able to see files in attachment area

Ken Task發表於
Particularly helpful Moodlers的相片

Folks have experienced similar, but don't believe I've ever see a url to which libraries.

your site/admin/settings.php?section=ajax

config.php - combo loading

$CFG->yuicomboloading='0';
or
$CFG->yuicomboloading='1';

Maybe add the following to see what it reports??

$CFG->yuiloglevel = 'debug';
$CFG->debug = 32767;

https://docs.moodle.org/dev/YUI

'SoS', Ken