moodle-an-hochschulen / moodle-theme_boost_campus

Moodle 3.x Boost child theme which is intended to meet the needs of university campuses and adds several features and improvements ––– for Moodle 4.x please use our Theme Boost Union
GNU General Public License v3.0
38 stars 25 forks source link

Multiple background images result in a white page #9

Closed sennewood closed 7 years ago

sennewood commented 7 years ago

In the boost settings you can enable background images for the login page. One image works fine, but a secound image will always show as a white page.

Kathrin84 commented 7 years ago

Hi Sebastian, do you have some more detailed information for me?

Here is a picture how our setting looks like and it's working fine here: baxkground_images You can also send me your problem picture via mail and I can try to upload it to my system and have a look it it works here. Cheers, Kathrin

sennewood commented 7 years ago

The upload isn't the problem :)

While testing with different pictures the error became a little bit stranger. After adding and deleting pictures (all .jpg), I right now have only one picture left I'm getting a blank background again:

mdl_blank_bg

I had to delete the moodle chache to fix this. So i don't think anymore that the issue are multiple pictures.

Kathrin84 commented 7 years ago

Did you upload the same pictures with the same filenames again that you once had uploaded and deleted? Moodle keeps relations in the database. If you upload an image a second time, it will not be stored twice in the database. This is somehow clever, but while trying out and developing this might cause problems. I had similar issues with the badge area. You could try to delete the pictures and upload them with a different filename and then purging the caches. I hope this will solve the problems you have.

And please have a look at the web inspector what it says regarding your image. There's a src-URL and you can have a look if this URL is correct or maybe if it's linking to an image that's not existing anymore (due to reasons I mentioned above).

sennewood commented 7 years ago

Interesting behavior ... well, that's explains it. Thank you :)