moosh icon indicating copy to clipboard operation
moosh copied to clipboard

Problem with import theme and Snap theme

Open juanda99 opened this issue 4 years ago • 4 comments

  • moosh version: 0.32
  • moodle version: 3.7.6
    • database: MariaDB 10.4
  • php version: 7.3
  • operating system: Debian 10

Import Snap Theme. One image (background all site wide image) does not get rendered.

Image is ok in the snap_settings.xml file: <setting name="poster" file="90859268d138710dc847926a64c2865dac00d66e">/Sardineta323.jpg</setting>

It also appears configured in the administrator -> appearance-> Theme snap menu.

I tried removing cache with php admin/cli/purge_caches.php, with no success.

It only gets "activated" after clicking on Save changes button (in the administrator -> appearance-> Theme snap menu), though no changes have been made.

I can see this code added to index.php:

<style>#page-site-index #page-header, #page-login-index #page {background-image: url(http://aratest.catedu.es/pluginfile.php/1/theme_snap/coverimage/1590041403/site-image.jpg);}</style>

Maybe it's template fault and nothing to do with Moosh. Any suggestion or hack to be done so we can configure (import) theme completly unattended?

juanda99 avatar May 25 '20 22:05 juanda99

It worked for me after clearing the caches - both via UI and admin/cli/purge_caches.php script.

But I've done export / import on the same installation. Are you exporting from one Moodle and then importing into a new installation?

tmuras avatar May 27 '20 17:05 tmuras

We didn't clear UI cache, could it be the reason? Export and import with different installation. I mean, its all with docker, so creating a new container with previous conf.

juanda99 avatar May 27 '20 18:05 juanda99

Just poster image. Using another theme (moove) without problems.

juanda99 avatar May 27 '20 18:05 juanda99

I'm relatively certain that this is a Snap issue, not a Moosh bug.

I believe that image is resized from the one that is uploaded, and that is the process that gets kicked off by saving the settings page and/or clearing the cache. Not sure why clearing the cache didn't work for the original reporter, but relatively sure if there is an issue it's not in Moosh.

davidscotson avatar Dec 16 '20 13:12 davidscotson