taqueci / redmine_wysiwyg_editor

Redmine WYSIWYG Editor plugin
GNU General Public License v2.0
114 stars 27 forks source link

RoutingError after installation #115

Closed dpalic closed 3 years ago

dpalic commented 3 years ago

After installation my wiki page stays emtpy and is unusable. How to fix this?

image

environment: ubuntu 18.04 with default redmine 3.4.4 cd /usr/share/redmine/plugins git clone https://github.com/taqueci/redmine_wysiwyg_editor.git chown -R www-data.www-data redmine_wysiwyg_editor

and getting this error in log

ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_wysiwyg_editor/javascripts/tinymce/tinymce.min.js"):
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  /usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:38:in `call_app'
  /usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:22:in `call'
  /usr/lib/ruby/vendor_ruby/request_store/middleware.rb:9:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/request_id.rb:21:in `call'
  /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:22:in `call'
  /usr/lib/ruby/vendor_ruby/rack/runtime.rb:18:in `call'
  /usr/lib/ruby/vendor_ruby/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/static.rb:120:in `call'
  /usr/lib/ruby/vendor_ruby/rack/content_length.rb:15:in `call'
  /usr/lib/ruby/vendor_ruby/rack/sendfile.rb:113:in `call'
  /usr/lib/ruby/vendor_ruby/rails/engine.rb:518:in `call'
  /usr/lib/ruby/vendor_ruby/rails/application.rb:165:in `call'
  /usr/lib/ruby/vendor_ruby/rails/railtie.rb:194:in `public_send'
  /usr/lib/ruby/vendor_ruby/rails/railtie.rb:194:in `method_missing'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
taqueci commented 3 years ago

Hi @dpalic

Could you please tell me your environment and plugins? (Administration » Information)

dpalic commented 3 years ago

sure

it is a default ubuntu installation with redmine package included

Environment:
  Redmine version                3.4.4.stable
  Ruby version                   2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
  Rails version                  4.2.10
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Subversion                     1.9.7
  Mercurial                      4.5.3
  Git                            2.17.1
  Filesystem                     
Redmine plugins:
  computed_custom_field          1.0.6
dpalic commented 3 years ago

is there any update to this? also can I somehow modify the code to test and report? e.g. not clear there (in which file) the routes are defined, so I could try a local code modification)

digging deeper all assets are not accessible

therefore my question to the installation. In which plugin folder dies it need to be installed?

if I install it into lib/plugins I am getting

F, [2021-02-23T07:52:05.064972 #8826] FATAL -- : 
ActionView::Template::Error (Missing partial redmine_wysiwyg_editor/_redmine_wysiwyg_editor_partial with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :rsb]}. Searched in:
  * "/usr/share/redmine/plugins/redmine_timelog_manager/app/views"
  * "/usr/share/redmine/plugins/redmine_project_manager/app/views"
  * "/usr/share/redmine/plugins/computed_custom_field/app/views"
  * "/usr/share/redmine/app/views"
):
    13: <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
    14: <%= javascript_heads %>
    15: <%= heads_for_theme %>
    16: <%= call_hook :view_layouts_base_html_head %>
    17: <!-- page specific tags -->
    18: <%= yield :header_tags -%>
    19: </head>
  lib/redmine/hook/view_listener.rb:59:in `block (2 levels) in render_on'
  lib/redmine/hook/view_listener.rb:57:in `map'
  lib/redmine/hook/view_listener.rb:57:in `block in render_on'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:96:in `call_hook'
  app/views/layouts/base.html.erb:16:in `_app_views_layouts_base_html_erb___1799167654187265982_47164958503600'
  app/controllers/application_controller.rb:491:in `block (2 levels) in render_error'
  app/controllers/application_controller.rb:489:in `render_error'
  app/controllers/application_controller.rb:477:in `render_404'
  app/controllers/application_controller.rb:501:in `missing_template'
dpalic commented 3 years ago

found my issue and this issue is fixed

here a pull request

https://github.com/taqueci/redmine_wysiwyg_editor/pull/117

taqueci commented 3 years ago

Merged. Thank you!

dpalic commented 3 years ago

edited it once more https://github.com/taqueci/redmine_wysiwyg_editor/pull/118