themesalmond / moodle-theme_almondb

5 stars 4 forks source link

FrontPage Blocks configuration not showing #32

Closed tpitz closed 8 months ago

tpitz commented 8 months ago

Hi,

I cannot access to the FrontPage Blocks configuration under Site Administration. The tab is correctly showing but when I click on it, nothing happens. I confirm the url is /admin/settings.php?section=themesettingalmondb#theme_almondb_block, but the content rendered below is the content from the first tab. See below:

Capture d’écran 2024-01-12 à 01 26 27

After enabling max debugging errors, the following error appears as I refresh the homepage: Warning: foreach() argument must be of type array|object, null given in /bitnami/moodle/theme/almondb/lib/frontpage_block.php on line 298

Capture d’écran 2024-01-12 à 01 25 17

I'm using Moodle version 4.3 and I deployed it on a GKE (kubernetes managed by GCP) with Helm, so it won't be effortless to add code into the docker image.

Thank's for helping.

Terry

themesalmond commented 8 months ago

Hello, If you are building a live system, you need to normalize the following setting. image

Please define a course and category. The error will disappear after defining the course and category.

Contact us if it still persists.

Best Regards Almond Themes

tpitz commented 8 months ago

Hi,

I created courses and categories and the errors correctly disappeared.

But I still can't access to the FrontPage Blocks tab in the theme settings. It means I cannot rearrange FrontPage's structure, I'm stuck and don't know how to resolve this.

themesalmond commented 8 months ago

Hello, Please don't forget to clear the cache this is an important step after your changes on Moodle. Navigate to → Site administration > Development > Purge all cache

support@themesalmond.com You can contact us at the e-mail address. If you give us an admin login, we can investigate the error.

Best Regards Almond Themes