Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$PAGE->context was not set errors created when loading Snap configured assets #283

Open
x-iy opened this issue Jul 18, 2024 · 1 comment

Comments

@x-iy
Copy link

x-iy commented Jul 18, 2024

Whenever a Snap theme configured image eg. Logo, Cover image, Carousel image etc. a
PHP message: Debugging: Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result in error is created.

This looks to be related to #201 (comment) where \moodle_page::initialise_theme_and_output is being called directly.

@gbarat87
Copy link

Hi,

I'm having the same error showing up, pointing to line 239 of /theme/snap/config.php: call to moodle_page->initialise_theme_and_output()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants