Essential Theme - Unable to drag and drop files on course page

Essential Theme - Unable to drag and drop files on course page

by Fiona MacAlister -
Number of replies: 9

Our users are encountering a problem with the drag and drop facility on course pages. It no longer works. When I tried it earlier this morning I received the following error:

"resource interpreted as document but transferred with mime type"

Strangely enough I cannot now produce this same error in the Console. The document simply doesn't load and asks to open it on my computer. There is a possible solution to this problem in this thread: https://moodle.org/mod/forum/discuss.php?d=232182  However, my current Essential theme doesn't appear to have a general.php into which I can place the code given by Mary Evans. Or should this be placed in a parent theme?

I am not experiencing the same problem on the 'Add a resource' page, the drag and drop works fine on this sort of page.

This is definitely a theme issue as I am able to drag and drop on course pages if I switch to both the Clean and Formal White themes. However, I would prefer not to have to switch to another theme as our users really like the look and feel of Essential.

 

 

Average of ratings: -
In reply to Fiona MacAlister

Re: Essential Theme - Unable to drag and drop files on course page

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Again, probably down to JavaScript breaking.  The MIME Type error will almost certainly because the DND is not working and its as if you are dragging a file to a browser window without DND which if not a known type to display will download it again.  Hence the error for a given set-up.  Please do the console thing again!

In reply to Fiona MacAlister

Re: Essential Theme - Unable to drag and drop files on course page

by Mary Evans -

No never touch the parent theme.  The general.php referred to in that forum discussion is in an older version of Essential. So that fix might not apply. I'll check this out and see what's happening.  By the way which version of Moodle are you using and which version of essential? I know that the version of this theme in the plugins directory was not working correctly in other areas, but not sure if Julian has fixed it or not.

In reply to Mary Evans

Re: Essential Theme - Unable to drag and drop files on course page

by Fiona MacAlister -

Hi Mary

Version of Moodle: 2.5.3 (Build: 20131213)

Version of Essential: 2.6 (Build: 20131008)

 

In reply to Fiona MacAlister

Re: Essential Theme - Unable to drag and drop files on course page

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Oh fudge, it looks like the plugins directory code https://moodle.org/plugins/pluginversions.php?plugin=theme_essential is STILL out of sync with the same release on GitHub https://github.com/moodleman/moodle-theme_essential/tree/ESSENTIAL_26 - please get a wiggle on Julian!!

The way to tell is the 'layout' folder should contain 'columnsX.php' type files and not 'general.php', but the version and release are the same.

P.S. Issue in place https://github.com/moodleman/moodle-theme_essential/issues/108.

In reply to Gareth J Barnard

Re: Essential Theme - Unable to drag and drop files on course page

by Mary Evans -

I wish Julian would delete all those old branches as it is very confusing if you don't use GIT.

In reply to Gareth J Barnard

Re: Essential Theme - Unable to drag and drop files on course page

by Fiona MacAlister -

The version that I used, as far as I am aware, was the version from GIT. Gareth directed me to it on another thread in the Themes forum where I experienced a problem with the theme update, due to the incorrect version being available a few days before.

Which version should be installed?

In reply to Fiona MacAlister

Re: Essential Theme - Unable to drag and drop files on course page

by Mary Evans -

This one...

https://github.com/moodleman/moodle-theme_essential/archive/ESSENTIAL_26.zip

However I was talking about the version of Moodle itself which in my case is Moodle 2.5.4 whereas you are using Moodle 2.5.3 if I am not mistaken?

As for the changes to the config.php I suggested, well that is more tricky then I thought, so don;t do it as you will get errors.

Cheers

Mary

In reply to Gareth J Barnard

Re: Essential Theme - Unable to drag and drop files on course page

by Julian Ridden -

Hey, lets be a little clear here. The Master branch in GitHub is my development branch. What is in the my 2.6 branch is up to date with what is in moodle.

I have just created a new branch today for a new version of the theme and updated Moodle.org as well with this release. But do remember that "master" and the Moodle DB will pretty much always be out of whack.

Julian

In reply to Julian Ridden

Re: Essential Theme - Unable to drag and drop files on course page

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Julian,

To be fair, no it is not.  This https://moodle.org/plugins/pluginversion.php?id=4481 is not the same as this https://github.com/moodleman/moodle-theme_essential/tree/ESSENTIAL_26.  The former has 'layout/general.php' and the latter has 'layout/columnsX.php' type files.  They are meant to be the same version are they not?

Cheers,

Gareth

Average of ratings:Useful (1)