moosh
moosh copied to clipboard
Problem with import theme and Snap theme
- 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?
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?
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.
Just poster image. Using another theme (moove) without problems.
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.