HugoHasenbein / redmine_project_themes

Redmine plugin for provides project specific themes
https://www.redmine.org/plugins/redmine_project_theme
GNU General Public License v2.0
7 stars 3 forks source link

Not changing themes per project on Redmine 4.1.0 #7

Open ikalaushin opened 2 years ago

ikalaushin commented 2 years ago

Hello. I have an issue that I can'not solve for now because I'm not a ruby coder =(

I have created a few themes with a bit different styles and when I've tried to set up per-project theme, Redmine saved changes without any error, but in result I had the default (not set in Admin Area as active) theme for project. May be there are an issue in theme naming or locating or etc?

Environment:

SCM:

Redmine plugins:

HugoHasenbein commented 2 years ago

Dear User,

where did you save the new theme?

best regards

Stephan

Am 29.11.2021 um 20:49 schrieb Иван @.***>:

Hello. I have an issue that I can'not solve for now because I'm not a ruby coder =(

I have created a few themes fith a bit different styles and when I've tried to set up per-project theme, Redmine saved changes without any error, but in result I had the default (not set in Admin Area as active) theme for project. May be there are an issue in theme naming or licating or etc?

Environment:

Redmine version 4.1.0.stable Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu] Rails version 5.2.4.1 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp SCM:

Git 2.17.1 Filesystem GitMirror 2.17.1 Redmine plugins:

redmine_apijs 6.8.1 redmine_git_mirror 0.8.0 redmine_gitlab_hook 4.0.0 redmine_issue_templates 1.1.0 redmine_issues_tree 0.0.14 redmine_project_themes 1.1.1 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_project_themes/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRF4Z5MJQSAAYYTYYW3UOPKM7ANCNFSM5I76ZY7Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ikalaushin commented 2 years ago

Dear User, where did you save the new theme? best regards Stephan

Hello. II saved theme in the ~/redmine/public/themes/theme-name folder, like regular redmine themes. And my new themes works if I set it as Redmine-wide theme, but not work if I set them as project-theme. Standart Redmine theme "Classic" not works as project-theme too :( Every of present themes works as Redmine-wide theme. No one works as project-theme. And I found no errors in redmine's /redmine/logproduction.log

ikalaushin commented 2 years ago

Adding a part of Redmine's log, while savind the project theme:

Started PUT "/projects/manilamainsite/settings/project_themes_settings" for 95.56.72.233 at 2021-11-30 17:10:01 +0000
Processing by ProjectThemesSettingsController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"RhSruR8vJykeJ4vD2ALQ/hnVNXtDp0tIaJX1bk25L0n8UA9EFHZvxhwu2l2+bPJiAd3GbkGgkeZ0VoTqzSLSJg==", "project"=>{"theme_id"=>"kvarta-ph"}, "save"=>"Сохранить", "id"=>"manilamainsite"}
  Current user: i.kalaushin (id=5)
Redirected to https://rm-d.pik-broker.ru/projects/manilamainsite/settings/project_themes_settings
Completed 302 Found in 15ms (ActiveRecord: 3.6ms)
Started GET "/projects/manilamainsite/settings/project_themes_settings" for 95.56.72.233 at 2021-11-30 17:10:01 +0000
Processing by ProjectsController#settings as HTML
  Parameters: {"id"=>"manilamainsite", "tab"=>"project_themes_settings"}
  Current user: i.kalaushin (id=5)
  Rendering projects/settings.html.erb within layouts/base
  Rendered projects/_form.html.erb (9.8ms)
  Rendered projects/_edit.html.erb (10.8ms)
  Rendered projects/settings/_members.html.erb (33.2ms)
  Rendered projects/settings/_issues.html.erb (13.3ms)
  Rendered projects/settings/_versions.html.erb (4.6ms)
  Rendered projects/settings/_issue_categories.html.erb (4.3ms)
  Rendered projects/settings/_repositories.html.erb (2.6ms)
  Rendered projects/settings/_activities.html.erb (4.6ms)
  Rendered plugins/redmine_project_themes/app/views/project_themes_settings/_form.html.erb (0.6ms)
  Rendered plugins/redmine_project_themes/app/views/project_themes_settings/_update.html.erb (0.8ms)
  Rendered common/_tabs.html.erb (77.6ms)
  Rendered projects/settings.html.erb within layouts/base (79.2ms)
  Rendered plugins/redmine_apijs/app/views/application/_browser.html.erb (0.1ms)
Completed 200 OK in 107ms (Views: 93.6ms | ActiveRecord: 11.9ms)
ikalaushin commented 2 years ago

Excuse me. Any updates? May I give you any more info you may be needed in to debug?

HugoHasenbein commented 2 years ago

Do you store the themes on https://rm-d.pik-broker.ru/projects/manilamainsite/settings/project_themes_settings https://rm-d.pik-broker.ru/projects/manilamainsite/settings/project_themes_settings I notice, the theme is loaded from an absolute url, not relative

Am 13.12.2021 um 18:01 schrieb Иван @.***>:

Excuse me. Any updates? May I give you any more info you may be needed in to debug?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_project_themes/issues/7#issuecomment-992680343, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRBB67AHNK2FWQOPNVTUQYRGTANCNFSM5I76ZY7Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ikalaushin commented 2 years ago

Hello. I can not clearly understand a question. Do you need to know in which folder in filesystem themes are stored OR on which page (which URL) I set the setting?

Folder where all themes (standart and my custom themes) located is /redmine/public/themes/ URL where I'm trying to set any theme as "project theme" for my project is https://rm-d.pik-broker.ru/projects/manilamainsite/settings/project_themes_settings

Every of present theme (standart or custom) works as Redmine main theme (for all projects and pages, settings page URL https://rm-d.pik-broker.ru/settings?tab=display) No one of present theme (standart or custom) works as "project theme" for my project (settings page URL is https://rm-d.pik-broker.ru/projects/manilamainsite/settings/project_themes_settings)