Snap Theme Unable to Install

Snap Theme Unable to Install

by Lee Daymond -
Number of replies: 11

Moodle version 3.0.2

Snap theme - latest 3.0.4


Hi all

Have been trying to install this for a couple days now with no success. Have installed folders directly into themes folder using ftp and also directly via the theme link on the here on moodle.org. And get this message.... Hitting a dead end, any help greatly appreciated. I assumed that the dependencies required would maybe be a more recent version of Moodle but should be compatible with any Moodle > 3.0??

Screenshot

Average of ratings: -
In reply to Lee Daymond

Re: Snap Theme Unable to Install

by Richard Oelmann -
Mmàggini di Core developers Mmàggini di Plugin developers Mmàggini di Testers

Hi Lee,

Although it does say 'Moodle3.0' in the themes database, looking at that 'Requires' and at the snap/version.php it does state

$plugin->requires = 2015111604; // Requires this Moodle version (3.0.4).

You could try editing that back to 2015111602 (Moodle3.0.2) But there is NO guarantee that would work.

The better solution, if you are able, would be to upgrade your site to the latest Moodle version - or at least the latest 3.0 (3.0.6+)


Hope that helps

Richard

In reply to Richard Oelmann

Re: Snap Theme Unable to Install

by Lee Daymond -

Thanks for this Richard, I would prefer to do this to be honest and upgrade to latest 3.1. But I'm a little uncertain, have read and watched numerous guides on this, but being a bit of a novice I'm not that confident. I have a 'paid for' theme set up on my existing one and numerous courses/materials set up, if you could point me to any resources that are really good on this topic I'd happily have a go. Kind regards



In reply to Lee Daymond

Re: Snap Theme Unable to Install

by Richard Oelmann -
Mmàggini di Core developers Mmàggini di Plugin developers Mmàggini di Testers

If you are not sure, then the first thing I would advise is to find a way to get a test system if you don't already have one.

You could even run that on your own local PC/laptop. There are complete install packages available for Mac/Windows, including XAMP, while setting it up a basic test system on Linux is also fairly straightforward.

https://download.moodle.org/releases/latest/

You can then use that to ensure your bought theme works on 3.1 before upgrading your live site (It probably will, but I would advising testing to be sure! smile ). You can also test Snap on that test site rather than on your live site - testing on Live is never really advisable. If everything then works the way you want it to, then you can think about upgrading your live site.


Richard


In reply to Richard Oelmann

Re: Snap Theme Unable to Install

by Lee Daymond -
I'll have a go at setting up a sub domain and maybe install on there for now and see how it goes. Thanks for your help, much appreciated.
In reply to Lee Daymond

Re: Snap Theme Unable to Install

by David Scotson -
You might want to try upgrading to 3.0.6, the latest minor update to 3.0 first as it's a much smaller jump and gets you all the security fixes for version 3:

https://docs.moodle.org/dev/Moodle_3.0.6_release_notes

A full version jump might be worthwhile (depending on your aims) but I'd upgrade to 3.0.6 first and then think about if it's worth it to upgrade further.
In reply to Richard Oelmann

Re: Snap Theme Unable to Install

by Lee Daymond -

Hi Richard sorry to go back to this, when you say try 'editing that back' how exactly would I go about this?


Thanks

In reply to Lee Daymond

Re: Snap Theme Unable to Install

by Richard Oelmann -
Mmàggini di Core developers Mmàggini di Plugin developers Mmàggini di Testers

You would need to edit that line of the /theme/snap/version.php file

BUT as I said earlier, there is no guarantee this would work as Snap wont have been tested on 3.0.2 and does say it requires 3.0.4

In reply to Lee Daymond

Re: Snap Theme Unable to Install

by Mary Evans -

Hi Lee,

If you are not sure what exactly to change in the snap/version.php

Here's an example: This is what you need in the version.php

$plugin->version   = 2016042905;
$plugin->requires  = 2015111600; // Moodle 3.0
$plugin->release   = '3.0.4 (Build: 20160509)';
$plugin->maturity  = MATURITY_STABLE;
$plugin->component = 'theme_snap';

In reply to Mary Evans

Re: Snap Theme Unable to Install

by Lee Daymond -

Thanks both for your help, didn't work unfortunately. I think best approach is to tackle the full Moodle update then install the most recent version of the theme.


Kind regards

In reply to Lee Daymond

Re: Snap Theme Unable to Install

by Mary Evans -

Did you Purge all caches?

Site Administration > Development > Purge all caches

You need to as that clears cache that your site stores so the uploader would be reading old files not new ones.

In reply to Mary Evans

Re: Snap Theme Unable to Install

by Lee Daymond -

Thanks Mary, I've managed to update to latest version of Moodle and install the theme fine. I followed a few videos and got some good advice from another thread. However, was working fine for a little while but now I find that no matter which link I go to, no matter where I'm navigating within the site, i just hit dead end and blank pages?? I can't even get my Dashboard to show, therefore cant login and change the theme. This seemed to happen after I switched off maintenance mode?

Any ideas?

Thanks