redmine_google_calendar icon indicating copy to clipboard operation
redmine_google_calendar copied to clipboard

redmine google calendar 404 error

Open swordgaru opened this issue 11 years ago • 6 comments

Installation Environment

  1. os windows7 (64bit)
  2. bitnami redmine 2.3.1 for windows
  3. redmine_google_calendar-0.1.2.zip

Redmine Administration -> Plugins -> Google Calendar Plugin seen. However, clicking the Settings button 404 error (The page you requested has been moved or deleted)

Are unable to resolve. Help

swordgaru avatar Jul 15 '13 08:07 swordgaru

Hello. I have the same problem : Environment: Redmine version 2.4.0.stable Ruby version 1.8.7-p352 (2011-06-30) [x86_64-linux] Rails version 3.2.15 Environment production Database adapter Mysql2

I changed this line to perform installation without error : in plugins/redmine_google_calendar/init.rb changed RAILS_DEFAULT_LOGGER.info to ::Rails.logger.info But after installation with rake, 404 Error : From log/production.log : Started GET "/redmine/settings/plugin/redmine_google_calendar" for *********** at Wed Feb 12 13:15:24 +0100 2014 Processing by SettingsController#plugin as HTML Parameters: {"id"=>"redmine_google_calendar"} Current user: xxxxxxxx (id=3) Rendered settings/plugin.html.erb within layouts/admin (3.0ms) Missing template, responding with 404 Rendered common/error.html.erb within layouts/base (0.2ms) Completed 404 Not Found in 130.8ms (Views: 16.7ms | ActiveRecord: 0.4ms)

It was a migration from redmine 1.X and old projects with old calendar crashes when I browse them. Could you help us?

ludoviskm avatar Feb 12 '14 12:02 ludoviskm

I think it is falling over at the point it should be loading app/views/settings/_googlecalendar_settings.html.erb from the plugin, however I am not sure why, perhaps the filename should be different but I am not sure how to figure out what it should be. The "Missing template" error isn't particularly informative, it gets raised by app/controllers/application_controller.rb somehow

AlanBell avatar May 21 '15 14:05 AlanBell

commenting out the error handler reveals a much better error in the log file: ActionView::Template::Error (Missing partial settings/_googlecalendar_settings with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :rsb]}. Searched in:

  • "/usr/share/redmine/app/views" ): 3:
    4: <%= form_tag({:action => 'plugin'}) do %> 5:
    6: <%= render :partial => @partial, :locals => {:settings => @settings}%> 7:
    8: <%= submit_tag l(:button_apply) %> 9: <% end %> app/views/settings/plugin.html.erb:6:in block in _app_views_settings_plugin_html_erb__843455047411968655_41950900' app/views/settings/plugin.html.erb:4:in_app_views_settings_plugin_html_erb__843455047411968655_41950900'

    looks like the path isn't set for it to go into the plugin looking for templates . . .

AlanBell avatar May 21 '15 14:05 AlanBell

copying the file app/views/settings/_googlecalendar_settings.html.erb from the plugin to the main redmine app/views/settings/ area fixed it for me, but that is a workaround rather than a fix, the plugin should be setting the path somehow

AlanBell avatar May 21 '15 14:05 AlanBell

"copying the file app/views/settings/_googlecalendar_settings.html.erb from the plugin to the main redmine app/views/settings/ area fixed it for me, but that is a workaround rather than a fix, the plugin should be setting the path somehow"

I followed this but I can't seem to find the app/views/settings/_googlecalendar_settings.html.erb - The only file I found is app/views/settings/_googlecalendar_settings.rhtml

I'm using Redmine ver 2.6.3 btw.

ctrvanessa avatar Jul 16 '15 07:07 ctrvanessa

Redmine 4.0.4 _googlecalendar_settings.html.erb <% string_fields = ProjectCustomField.all %>

kisghosty avatar Oct 04 '19 14:10 kisghosty