ezFAQ not working at all, Code Review not showing translations

Added by Benedikt Niessen over 10 years ago

Hi,

Im very new to redmine, installed the latest version (0.8.3 I guess) on my server yesterday.

Redmine itself works wonderful (even Id like to disable loggine in productive somehow), but then I installed 3 Plugins:
- ezFAQ
- Code Review
- Codebook

Codebook works fine so far, but Code Review and ezFAQ not all even it worked in the beginning (I think).

ezFAQ doesnt show the translation of the placeholders (e.g. label_title_ezfaq in the navigation bar), when I click on it I get a Error 500:

Processing EzfaqController#index (for 77.59.195.138 at 2009-09-04 09:14:53) [GET]
  Session ID: 04f8d31431adc4f1557e9801957d0930
  Parameters: {"action"=>"index", "id"=>"testp", "controller"=>"ezfaq"}
Rendering template within layouts/base
Rendering ezfaq/index.html.erb

ActionView::TemplateError (undefined method `other_formats_links' for #<ActionView::Base:0x804e8a8f8>) on line #27 of ezfaq/index.html.erb:
24:   <p class="nodata"><%= l(:label_no_data) %></p>
25: <% end %>
26:
27: <% other_formats_links do |f| %>
28:     <%= f.link_to 'PDF' %>
29: <% end %>
30:

    vendor/plugins/ezfaq_plugin/app/views/ezfaq/index.html.erb:27:in `_run_erb_47vendor47plugins47ezfaq_plugin47app47views47ezfaq47index46html46erb'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
    vendor/rails/actionpack/lib/action_view/base.rb:248:in `render_file'
    vendor/rails/actionpack/lib/action_controller/base.rb:1112:in `render_for_file'
    vendor/rails/actionpack/lib/action_controller/base.rb:872:in `render_with_no_layout'
    vendor/rails/actionpack/lib/action_controller/layout.rb:251:in `render_without_benchmark'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
    vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
    vendor/plugins/ezfaq_plugin/app/controllers/ezfaq_controller.rb:39:in `index'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:131:in `call'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:131:in `custom'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:160:in `call'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:160:in `respond'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:154:in `each'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:154:in `respond'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:107:in `respond_to'
    vendor/plugins/ezfaq_plugin/app/controllers/ezfaq_controller.rb:38:in `index'
    vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `send'
    vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
    vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
    vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
    vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
    vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
    vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
    vendor/rails/railties/lib/fcgi_handler.rb:103:in `process_request'
    vendor/rails/railties/lib/fcgi_handler.rb:153:in `with_signal_handler'
    vendor/rails/railties/lib/fcgi_handler.rb:101:in `process_request'
    vendor/rails/railties/lib/fcgi_handler.rb:78:in `process_each_request'
    /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:612:in `each_cgi'
    /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:609:in `each'
    /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:609:in `each_cgi'
    vendor/rails/railties/lib/fcgi_handler.rb:77:in `process_each_request'
    vendor/rails/railties/lib/fcgi_handler.rb:76:in `catch'
    vendor/rails/railties/lib/fcgi_handler.rb:76:in `process_each_request'
    vendor/rails/railties/lib/fcgi_handler.rb:50:in `process!'
    vendor/rails/railties/lib/fcgi_handler.rb:24:in `process!'
    public/dispatch.fcgi:24

Rendering /usr/local/www/redmine/public/500.html (500 Internal Server Error)

Processing EzfaqController#index (for 77.59.195.138 at 2009-09-04 09:14:53) [GET]
  Session ID: 04f8d31431adc4f1557e9801957d0930
  Parameters: {"action"=>"index", "id"=>"testp", "controller"=>"ezfaq"}
Rendering template within layouts/base
Rendering ezfaq/index.html.erb

ActionView::TemplateError (undefined method `other_formats_links' for #<ActionView::Base:0x804d5b1d0>) on line #27 of ezfaq/index.html.erb:
24:   <p class="nodata"><%= l(:label_no_data) %></p>
25: <% end %>
26:
27: <% other_formats_links do |f| %>
28:     <%= f.link_to 'PDF' %>
29: <% end %>
30:

    vendor/plugins/ezfaq_plugin/app/views/ezfaq/index.html.erb:27:in `_run_erb_47vendor47plugins47ezfaq_plugin47app47views47ezfaq47index46html46erb'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
    vendor/rails/actionpack/lib/action_view/base.rb:248:in `render_file'
    vendor/rails/actionpack/lib/action_controller/base.rb:1112:in `render_for_file'
    vendor/rails/actionpack/lib/action_controller/base.rb:872:in `render_with_no_layout'
    vendor/rails/actionpack/lib/action_controller/layout.rb:251:in `render_without_benchmark'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
    vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
    vendor/plugins/ezfaq_plugin/app/controllers/ezfaq_controller.rb:39:in `index'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:131:in `call'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:131:in `custom'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:160:in `call'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:160:in `respond'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:154:in `each'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:154:in `respond'
    vendor/rails/actionpack/lib/action_controller/mime_responds.rb:107:in `respond_to'
    vendor/plugins/ezfaq_plugin/app/controllers/ezfaq_controller.rb:38:in `index'
    vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `send'
    vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
    vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
    vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
    vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
    vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
    vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
    vendor/rails/railties/lib/fcgi_handler.rb:103:in `process_request'
    vendor/rails/railties/lib/fcgi_handler.rb:153:in `with_signal_handler'
    vendor/rails/railties/lib/fcgi_handler.rb:101:in `process_request'
    vendor/rails/railties/lib/fcgi_handler.rb:78:in `process_each_request'
    /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:612:in `each_cgi'
    /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:609:in `each'
    /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:609:in `each_cgi'
    vendor/rails/railties/lib/fcgi_handler.rb:77:in `process_each_request'
    vendor/rails/railties/lib/fcgi_handler.rb:76:in `catch'
    vendor/rails/railties/lib/fcgi_handler.rb:76:in `process_each_request'
    vendor/rails/railties/lib/fcgi_handler.rb:50:in `process!'
    vendor/rails/railties/lib/fcgi_handler.rb:24:in `process!'
    public/dispatch.fcgi:24

Rendering /usr/local/www/redmine/public/500.html (500 Internal Server Error)

Code Review also has the problem with the translation (whatever language I choose) but "works". Maybe its the same problem?

I would really appreciate your help as I dont really know much about Ruby/Rails.

Thanks a lot for hints!!

Replies (6)

RE: ezFAQ not working at all, Code Review not showing translations - Added by Benedikt Niessen over 10 years ago

I would like to add some information about the system:

- Ruby implementation and version: ruby-1.8.7.160_4,1
- Rails version (rails --version): rubygem-rails-2.3.3
- Operating system: FreeBSD 7.2-p2
- Database used, and its version: mysql-server-5.0.85
- Ruby-aware server used: lighttpd-1.4.23

The command "rails script/about":

About your application's environment
Ruby version              1.8.7 (amd64-freebsd7)
RubyGems version          1.3.5
Rails version             2.1.2
Active Record version     2.1.2
Action Pack version       2.1.2
Active Resource version   2.1.2
Action Mailer version     2.1.2
Active Support version    2.1.2
Edge Rails revision       unknown
Application root          /usr/local/www/redmine
Environment               development
Database adapter          mysql

Strange, here it says Rails is 2.1.2 but from the ports I installed 2.3.3. Has the script a problem or is sth wrong here?

RE: ezFAQ not working at all, Code Review not showing translations - Added by Haruyuki Iida over 10 years ago

Hi.

Code review and ezFAQ runs only on production environment.

Thanks.

RE: ezFAQ not working at all, Code Review not showing translations - Added by Linghua Tseng over 10 years ago

I have the same problem.

Ruby version              1.8.7 (i386-freebsd7)
RubyGems version          1.3.5
Rails version             2.1.2
Active Record version     2.1.2
Action Pack version       2.1.2
Active Resource version   2.1.2
Action Mailer version     2.1.2
Active Support version    2.1.2
Edge Rails revision       unknown
Application root          /home/www/redmine.pllab.org
Environment               production
Database adapter          sqlite3
Database schema version   101

FreeBSD 7.2-STABLE & Apache 2.2.13 (MPM=worker)

RE: ezFAQ not working at all, Code Review not showing translations - Added by Linghua Tseng over 10 years ago

Sorry, I forgot to read your README.

=== ezFAQ plugin 0.3.5

This is a FAQ management plugin for Redmine.
ONLY compatible with Redmine last devel. NOT compatible with Redmine 0.8.x

I'm not using the trunk version, so I cannot fetch it from git repository.
I've installed 0.0.2.1 and it worked.

(1-6/6)