ONLYOFFICE / onlyoffice-redmine

The app which enables the users to edit office documents from Redmine using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Redmine
Apache License 2.0
22 stars 11 forks source link

Wiki not found #65

Open smoebody opened 1 year ago

smoebody commented 1 year ago

Hi,

after installing this plugin i cannot open a project's wiki anymore. I get a 404 and the redmine logs say:

I, [2023-09-28T15:25:57.557420 #1]  INFO -- : Processing by WikiController#show as HTML
I, [2023-09-28T15:25:57.557481 #1]  INFO -- :   Parameters: {"project_id"=>"*redacted*"}
I, [2023-09-28T15:25:57.566614 #1]  INFO -- :   Current user: *redacted* (id=29)
I, [2023-09-28T15:25:57.575285 #1]  INFO -- :   Rendered plugins/onlyoffice_redmine/app/views/wiki/show.html.erb within layouts/base (Duration: 0.7ms | Allocations: 318)
I, [2023-09-28T15:25:57.575359 #1]  INFO -- :   Rendered layout layouts/base.html.erb (Duration: 0.9ms | Allocations: 345)
W, [2023-09-28T15:25:57.575452 #1]  WARN -- : Missing template, responding with 404: Missing template wiki/show with {:locale=>[:de, :en], :formats=>[:html], :variants=>[], :handlers=>[]}. Searched in:
  * "/usr/src/redmine/plugins/zzz_hmt/app/views"
  * "/usr/src/redmine/plugins/redmine_wysiwyg_editor/app/views"
  * "/usr/src/redmine/plugins/redmine_ics_export/app/views"
  * "/usr/src/redmine/plugins/redmine_env_auth/app/views"
  * "/usr/src/redmine/plugins/redmine_dmsf/app/views"
  * "/usr/src/redmine/plugins/redmine_contacts_helpdesk/app/views"
  * "/usr/src/redmine/plugins/redmine_contacts/app/views"
  * "/usr/src/redmine/plugins/plantuml/app/views"
  * "/usr/src/redmine/plugins/onlyoffice_redmine/app/views"
  * "/usr/src/redmine/plugins/additionals/app/views"
  * "/usr/src/redmine/app/views"
  * "/usr/local/bundle/gems/redmine_crm-0.0.60/app/views"
  * "/usr/local/bundle/gems/render_async-2.1.11/app/views"
  * "/usr/src/redmine/plugins/additionals/app/views"

any ideas?

RandaNP commented 1 year ago

Same problem here on Redmine 5.0.5 and onlyoffice_redmine-2-1-0. Renamed file "/usr/src/redmine/plugins/onlyoffice_redmine/app/views/show.html.erb" and wiki return up missing onlyoffice edit and convert button (we don't use MS docs on the wiki, so it's ok for now).

SergeyKorneyev commented 9 months ago

Please check if the issue persists with the recently released version 3.0 of the plugin.

smoebody commented 9 months ago

Since then i upgraded to Redmine 5.1.1 which this plugin is not compatible with. see #153

smoebody commented 8 months ago

After you fixed #153 I tested again but the issue still exists.

RandaNP commented 7 months ago

After update to 3.1.0, with redmine 5.0.5, the issue remains. Logs on wiki call:

redmine-redmine-1     | I, [2024-03-08T12:11:48.420265 #1]  INFO -- : Processing by WikiController#show as HTML
redmine-redmine-1     | I, [2024-03-08T12:11:48.420411 #1]  INFO -- :   Parameters: {"project_id"=>"documentazione-docker-e-docker-compose"}
redmine-redmine-1     | I, [2024-03-08T12:11:48.433730 #1]  INFO -- :   Current user: mrandon (id=6)
redmine-redmine-1     | E, [2024-03-08T12:11:48.574442 #1] ERROR -- : Deface: 'wiki-show' matched 0 times with 'p.wiki-update-info'
redmine-redmine-1     | I, [2024-03-08T12:11:48.580917 #1]  INFO -- :   Rendered plugins/onlyoffice_redmine/app/views/wiki/show.html.erb within layouts/base (Duration: 9.9ms | Allocations: 24
19)
redmine-redmine-1     | I, [2024-03-08T12:11:48.580987 #1]  INFO -- :   Rendered layout layouts/base.html.erb (Duration: 10.0ms | Allocations: 2452)
redmine-redmine-1     | W, [2024-03-08T12:11:48.581420 #1]  WARN -- : Missing template, responding with 404: Missing template wiki/show with {:locale=>[:it, :en], :formats=>[:html], :variants
=>[], :handlers=>[]}. Searched in:
redmine-redmine-1     |   * "/usr/src/redmine/plugins/redmine_agile/app/views"
redmine-redmine-1     |   * "/usr/src/redmine/plugins/onlyoffice_redmine/app/views"
redmine-redmine-1     |   * "/usr/src/redmine/plugins/additionals/app/views"
redmine-redmine-1     |   * "/usr/src/redmine/app/views"
redmine-redmine-1     |   * "/usr/local/bundle/gems/redmine_crm-0.0.63/app/views"
redmine-redmine-1     |   * "/usr/local/bundle/gems/render_async-2.1.11/app/views"
redmine-redmine-1     |   * "/usr/src/redmine/plugins/additionals/app/views"
redmine-redmine-1     |
redmine-redmine-1     | I, [2024-03-08T12:11:48.582324 #1]  INFO -- :   Rendered common/error.html.erb within layouts/base (Duration: 0.2ms | Allocations: 63)
redmine-redmine-1     | I, [2024-03-08T12:11:48.660025 #1]  INFO -- :   Rendered layout layouts/base.html.erb (Duration: 77.9ms | Allocations: 16461)
redmine-redmine-1     | I, [2024-03-08T12:11:48.660411 #1]  INFO -- : Completed 404 Not Found in 240ms (Views: 44.9ms | ActiveRecord: 91.5ms | Allocations: 32267)

Renamed file "/usr/src/redmine/plugins/onlyoffice_redmine/app/views/wiki/show.html.erb" to show2.html.erb and wiki return up missing onlyoffice edit and convert button (we don't use MS docs on the wiki, so it's ok for now).

vanyauhalin commented 7 months ago

https://github.com/alphanodes/additionals/issues/134#issue-1217145305

HighwayStar commented 1 week ago

I faced same issue but on issue/show template. This happens because of additionals using deface gem for views modifications and onlyoffice_redmine using render_parent. I have other plugins in use that pepends on deface gem, but no other based on render_parent.