-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[stable31] fix(theming): enforce theme also for login #51753
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
Conversation
Signed-off-by: Ferdinand Thiessen <[email protected]>
| <body id="<?php p($_['bodyid']);?>" <?php foreach ($_['enabledThemes'] as $themeId) { | ||
| p("data-theme-$themeId "); | ||
| }?> data-themes="<?php p(join(',', $_['enabledThemes'])) ?>"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks public/error pages it seems:
2025-04-03T20:40:27.000 m88 IP PHP Undefined array key "enabledThemes" at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#38 │
2025-04-03T20:40:28.000 m88 IP PHP foreach() argument must be of type array|object, null given at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#38 │
2025-04-03T20:40:28.000 m88 IP PHP Undefined array key "enabledThemes" at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#40 │
2025-04-03T20:40:28.000 m88 IP core Rendering themed error page failed. Falling back to un-themed error page. │
2025-04-03T20:40:28.000 m88 IP PHP Undefined array key "enabledThemes" at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#38 │
2025-04-03T20:40:29.000 m88 IP PHP foreach() argument must be of type array|object, null given at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#38 │
2025-04-03T20:40:29.000 m88 IP PHP Undefined array key "enabledThemes" at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#40 │
2025-04-03T20:40:29.000 m88 IP index join(): Argument #1 ($pieces) must be of type array, string given │
2025-04-03T20:40:29.000 m88 IP PHP Undefined array key "enabledThemes" at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#38 │
2025-04-03T20:40:29.000 m88 IP PHP foreach() argument must be of type array|object, null given at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#38 │
2025-04-03T20:40:30.000 m88 IP PHP Undefined array key "enabledThemes" at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#40 │
2025-04-03T20:40:30.000 m88 IP PHP TypeError: join(): Argument #1 ($pieces) must be of type array, string given at /var/www/cloud.nextcloud.com/nextcloud/core/templates/layout.guest.php#40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easiest to demo is:
https://localhost/index.php/doesnotexist instead of an error message you will only see the background.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backport of #50121
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.