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

after upgrade theme setting is gone #2785

Open
mcnesium opened this issue Dec 20, 2016 · 11 comments
Open

after upgrade theme setting is gone #2785

mcnesium opened this issue Dec 20, 2016 · 11 comments
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: install and update feature: occ feature: theming good first issue Small tasks with clear documentation about how and in which place you need to fix things in.

Comments

@mcnesium
Copy link

After upgrading from 10.0.1 to 10.0.2 theme setting in config.php has been set to 'theme' => '',

(reopened from here)

@MorrisJobke
Copy link
Member

@nickvergessen
Copy link
Member

Well this is still the intended behaviour. Themes are disabled on updates because we don't know whether they have been adjusted to the new changes yet?

@nickvergessen
Copy link
Member

server/lib/base.php

Lines 377 to 378 in 30689f3

$oldTheme = $systemConfig->getValue('theme');
$systemConfig->setValue('theme', '');

It also prints the message:

The theme %s has been disabled.

I'm not really sure if we should risk this.

@mcnesium
Copy link
Author

I understand your approach. Though, compared to other software, it seems a little strange to me as an administrator, that an nc instance is more or less reset to default after an upgrade. That includes not only the theme, but apps as well. Any non-default app is disabled after an upgrade. I only use calendar, contacts, direct_menu and mail, so I can't tell whether this is true for all non-default apps.

While after using and upgrading oc/nc for years I am used to just occ app:enable foo by now after an upgrade, I was not really aware of themes being reset too, even though there is a note as you state.

So there are two enhancements coming to my mind:

  • There should be an occ command to (re-)enable a theme just like an app
  • After an upgrade, disabled features should be announced more obvious, both in the browser and on command line. For example a red-backgrounded note "Congratulations, everything went fine, BUT: app 1, app 2, theme X … are still disabled. Re-enable them using occ re-enable everything"

@juliushaertl
Copy link
Member

@mcnesium ./occ config:system:set theme --value=MyTheme should work just fine for enabling the theme again. 😉

@nickvergessen
Copy link
Member

I think the console is already coloring it good:
bildschirmfoto vom 2017-01-18 10-59-06

But yeah, the web UI needs a bit more clearness on that.

@mcnesium
Copy link
Author

This notice scrolls up and is gone, if there is more output. Not unlikely on a production setting. Thats why I proposed to announce it at the end of the upgrade process again.

@DJCrashdummy
Copy link

this also appeared after the update of just the calendar-app itself!

less than a week ago calender 1.5.2 was published and i installed it right away. after this the internal/server-update with the original background-image (i don't know how it is called correct) had to be done. everything went smoothly and so i didn't think further about it...
then a user hinted me that there is a other theme present and i had to detect that 'theme' => 'mytheme', had changed to 'theme' => '',!

i understand and fine with it if themes are disabled for safety reasons, but it would be nice to restore the used theme afterwards or at least a hint after the update to manually do so.

@MorrisJobke MorrisJobke added Hacktoberfest good first issue Small tasks with clear documentation about how and in which place you need to fix things in. labels Dec 15, 2017
@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Oct 1, 2018
@skjnldsv skjnldsv added the 1. to develop Accepted and waiting to be taken care of label Jun 6, 2019
@szaimen

This comment has been minimized.

@szaimen szaimen closed this as completed May 21, 2021
@mcnesium

This comment has been minimized.

@szaimen

This comment has been minimized.

@szaimen szaimen reopened this May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: install and update feature: occ feature: theming good first issue Small tasks with clear documentation about how and in which place you need to fix things in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.