zouchaoqun / ezfaq Goto Github PK
View Code? Open in Web Editor NEWFAQ management plugin for Redmine
Home Page: http://ezwork.techcon.thtf.com.cn
FAQ management plugin for Redmine
Home Page: http://ezwork.techcon.thtf.com.cn
=== 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 === Feature 1. Ask question and request a user to answer it. 2. FAQ is grouped by categories. 3. FAQ's modification has history logs. 4. Send notify email to the author and the assigned user who should answer the question. 5. FAQ creation or update is added to redmine's activity. 6. FAQ and FAQ-list can be exported to PDF document. 7. FAQ are searchable using redmine's search engine. === Note Since the plugin applies a patch to redmine core, it can only run properly under production environment. When runs under development envrionment, the faq with attachments will fail to show. Redmine currently doesn't support plugin to extend its search scope, so you have to modify redmine's search controller to search FAQ. (Edit ln51 in search_controller.rb, add faqs to the @object_types) === Plugin installation 1. Copy the plugin directory(ezfaq_plugin) into the vendor/plugins directory NOTE: The plugin directory must be ezfaq_plugin! 2. Migrate plugin: rake db:migrate_plugins 3. Start Redmine Installed plugins are listed on 'Admin -> Plugins' screen. === Changelog 0.3.5 -> Correct a mailer error when adding new faqs. 0.3.4 -> Update readme: only compitable with redmine devel. Some bug fix. 0.3.3 -> Complete ru.yml. 0.3.2 -> Make some FAQ strings localizable.(missed in 0.3.1) 0.3.1 -> Add ru.yml. Make all of the FAQ strings localizable. 0.3.0 -> Check for redmine's compatibility. 0.2.3 -> Fix: html email lost layout; text mail showed as attachment Changes: new star images from Denis Tomashenko. 0.2.2 -> Fix: export to pdf hangs when pdf's title and note not set. 0.2.1 -> Faq can be searched using redmine's search page. (But you must modify redmine's search_controller to extend its search scope, this would be resolved when a plugin_hook is commited) (To modify search_controller, see ln51 in search_controller.rb) 0.2.0 -> Fix mailer error. Thanks for Eric Davis. 0.1.9 -> Add export to PDF function to FAQ and FAQ-list. This version has a mailer error, the mail function is disabled and will be corrected in 0.2.0. 0.1.0 -> Compitable with redmine devel after r2493 and rails 2.2.2 Add cs.yml language. 0.0.4 -> Add faq into project's activity. Add preview ablility to faq's new and edit page. Add copy ablility to faq's show page. Use redmine's pagination instead of will_paginate(so will_paginate is no longer needed). Add de.yml language. 0.0.3 -> Change attatchment related methods, because redmine r2116 has changed it's attatchment manage mechanism. Change permission and menu into gloc strings and now they can be localized. === Credits Thanks edavis10 at http://github.com/edavis10/ for his redmine core patch. (Look at lib/attachment_patch.rb) Thanks Denis Tomashenko for his wonderful star images. === Language contributors cs.yml - Marek Hulán de.yml - Mathias Kühn ru.yml - Alexander Kirillov fr.yml - james pic ja.yml - Akiko Takano it.yml - Davide Saurino === Contact info Homepage -> http://ezwork.techcon.thtf.com.cn/projects/ezwork powered by redmine Email -> [email protected]
We have revision 3824 of redmine installed (latest dev 1.0 as I write) on fedora 13 with mysql. We have 0.3.5 of ezfaq installed. This worked fine with 0.9.2 of redmine, but since upgrading we see the following error in the production log file when updating an existing faq:
Processing EzfaqController#edit (for 192.168.2.82 at 2010-07-01 14:15:56) [POST]
Parameters: {"faq"=>{"related_message_id"=>"", "answer"=>"Test Update", "related_version_id"=>"", "version"=>"1", "category_id"=>"", "question"=>"Pass the Multiple Values at a time in Query Expression", "is_valid"=>"true", "due_date"=>"", "assigned_to_id"=>"", "difficulty"=>"5", "related_issue_id"=>""}, "commit"=>"Update", "action"=>"edit", "faq_id"=>"23", "authenticity_token"=>"ds/2SRiKkzB9xeNDfGFoX+E3/Ug0trRg8eJvd2mwWuM=", "id"=>"saturn-help", "controller"=>"ezfaq", "difficulty_label"=>"Difficulty", "attachments"=>{"1"=>{"description"=>""}}}
NoMethodError (undefined method attach_files' for #<EzfaqController:0xb61df5f4>): vendor/plugins/ezfaq_plugin/app/controllers/ezfaq_controller.rb:99:in
edit'
thin (1.2.7) lib/thin/connection.rb:76:in pre_process' thin (1.2.7) lib/thin/connection.rb:74:in
catch'
thin (1.2.7) lib/thin/connection.rb:74:in pre_process' thin (1.2.7) lib/thin/connection.rb:57:in
process'
thin (1.2.7) lib/thin/connection.rb:42:in receive_data' eventmachine (0.12.10) lib/eventmachine.rb:256:in
run_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in run' thin (1.2.7) lib/thin/backends/base.rb:57:in
start'
thin (1.2.7) lib/thin/server.rb:156:in start' thin (1.2.7) lib/thin/controllers/controller.rb:80:in
start'
thin (1.2.7) lib/thin/runner.rb:177:in send' thin (1.2.7) lib/thin/runner.rb:177:in
run_command'
thin (1.2.7) lib/thin/runner.rb:143:in run!' thin (1.2.7) bin/thin:6 /usr/bin/thin:19:in
load'
/usr/bin/thin:19
Rendering /home/redmine/Applications/redmine-1.0.beta1/public/500.html (500 Internal Server Error)
Following errors occur while adding new FAQ entries, seems to be trivial but wanted to write an issue before fixing it myself.
Redmine: Recent trunk (Rev 2835)
ezFAQ: Recent trunk (Rev 0.3.5-7-g45f8502)
ActionView::TemplateError (`@FAQ #1 has been created by Christoph Kappel.
' is not allowed as an instance variable name) in vendor/plugins/ezfaq_plugin/app/views/faq_mailer/faq_add.text.plain.rhtml:
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:290:in `instance_variable_set'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:290:in `_evaluate_assigns_and_ivars'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:290:in `each'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:290:in `_evaluate_assigns_and_ivars'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:36:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:36:in `render'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in `render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in `render'
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:564:in `render'
app/models/mailer.rb:333:in `render_message'
vendor/plugins/ezfaq_plugin/app/models/faq_mailer.rb:37:in `faq_add'
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/part_container.rb:28:in `part'
vendor/plugins/ezfaq_plugin/app/models/faq_mailer.rb:36:in `faq_add'
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:462:in `__send__'
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:462:in `create!'
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:455:in `initialize'
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:392:in `new'
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:392:in `method_missing'
vendor/plugins/ezfaq_plugin/app/controllers/ezfaq_controller.rb:79:in `new'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in `cache'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in `handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
Rendering /var/www/redmine/public/500.html (500 Internal Server Error)
Opening FAQ entries in via link is sometimes disturbing. I would like to have the entries directly after it's headline on the FAQ page without actually leaving the page.
Before hacking your code myself - what do you think about this?
Hi.
ezFAQ is a nice plugin. Thanks for your work.
By the way, I got a problem. This plugin does not works with SQLite3.
Following error was happend.
ActiveRecord::StatementInvalid in EzfaqController#index SQLite3::SQLException: no such column: true: SELECT * FROM "faqs" WHERE (project_id = 1 and category_id is not null and is_valid = true)
This error happens because SQLite's boolean value is '1' or '0', not a 'true' or 'false'.
Change the code from
:condtions => 'is_valid = true'
to
:contditions => ['is_valid = ?', true]
Then it will be works.
I changed your code like below.
In ezfaq_controller.rb, line 34, 35.
@categorized_faqs = Faq.find(:all, :conditions => ["project_id = #{@project.id} and category_id is not null and is_valid = ?", true]) @not_categorized_faqs = Faq.find(:all, :conditions => ["project_id = #{@project.id} and category_id is null and is_valid = ?", true], :order => "question")
line 47.
@invalid_faqs = Faq.find(:all, :conditions => ["project_id = #{@project.id} and is_valid = ?", false], :order => sort_clause)
I tested these codes with both SQLite3 and MySQL. And it works well.
thanks.
Find here a new, better French translation (at least complete...).
# ezFAQ plugin # French translation updated by Thibaut Cuvelier on May 29th, 2010 fr: label_ezfaq: ezFAQ plug-in label_title_ezfaq: FAQ label_faq: FAQ label_faq_new: Nouvelle FAQ label_faq_updated: FAQ mise-à-jour label_faq_category: Catégorie de FAQ label_faq_category_new: Nouvelle catégorie de FAQ label_manage_faq_category: Gérer catégories de FAQ label_view_invalid_faqs: Voir FAQ invalides label_invalid_faqs: Liste des FAQ invalides label_valid: Valide label_invalid: Invalide label_not_categorized: Non catégorisée label_info_for_input_id: (Merci de saisir l'identifiant) label_manage: Gérer label_faq_setting: Paramètres de la FAQ label_updated_time_by: Mise-à-jour par {{author}} {{age}} field_question: Question field_answer: Réponse field_difficulty: Difficulté field_viewed_count: Vues field_related_version: Version relative field_related_issue: Demande relative field_related_message: Message relatif field_is_valid: Valide field_faq_counts_under_category: Nombre de FAQ field_pdf_title: Titre du document PDF field_faq_note: Note de la FAQ (affichée avant la liste des FAQ) field_note: Note de la FAQ text_faq_category_destroy_question: Certaines FAQ ({{value}}) sont assignée à cette catégorie. Que voulez-vous faire ? text_faq_category_destroy_assignments: Effacer les assignations de catégorie text_faq_category_reassign_to: Ré-assigner les FAQ de cette catégorie text_faq_added: FAQ {{title}} créé par {{author}}. text_faq_updated: FAQ {{title}} mise-à-jour par {{author}}. text_faq_pdf_title_not_set: Attention ! Il faut spécifier le titre du PDF dans les paramètres de la FAQ d'abord. permission_view_faqs: Voir la FAQ permission_add_faqs: Nouvelle FAQ permission_edit_faqs: Éditer la FAQ permission_delete_faqs: Supprimer la FAQ permission_manage_faq_categories: Gérer les catégories de FAQ permission_faq_setting: Paramètres de la FAQ project_module_ezfaq: FAQ label_faq_plural: FAQ
Would it be possible to make this plugin compatible with Redmine 2.0.3 ?
Hi,
I've got an error if I try to add a new faq. The FAQs are created successfully but this error is very annoying. Some advise how to fix that?
Log:
NoMethodError (undefined method `attach_files' for #<EzfaqController:0xb582e5c8>):
vendor/plugins/ezfaq_plugin/app/controllers/ezfaq_controller.rb:77:in `new'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
While saving a new/edited FAQ-item I receive the following error using EzFAQ 0.3.4:
Processing EzfaqController#new (for 192.168.1.2 at 2009-05-06 18:26:31) [POST] Parameters: {"faq"=>{"related_message_id"=>"", "answer"=>"Answer 1", "related_version_id"=>"", "category_id"=>"1", "question"=>"FAQ 1", "assigned_to_id"=>"", "due_date"=>"2009-05-07", "difficulty"=>"5", "related_issue_id"=>""}, "commit"=>"Create", "action"=>"new", "id"=>"test", "controller"=>"ezfaq", "attachments"=>{"1"=>{"description"=>"", "file"=>""}}, "difficulty_label"=>"Difficluty"} ActionView::TemplateError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id) on line #1 of vendor/plugins/ezfaq_plugin/app/views/faq_mailer/faq_add.text.plain.rhtml: 1: <%= l(:text_faq_added, :title => "##{@faq.id}", :author => @faq.author) %> 2: 3: ---------------------------------------- 4: <%= render :partial => "faq_text_plain", :locals => { :faq => @faq, :faq_url => @faq_url } %> /path/to/redmine/vendor/plugins/ezfaq_plugin/app/views/faq_mailer/faq_add.text.plain.rhtml:1 /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in `send' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in `render' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in `render_template' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in `render' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:564:in `render' /path/to/redmine/app/models/mailer.rb:300:in `render_message' /path/to/redmine/vendor/plugins/ezfaq_plugin/app/models/faq_mailer.rb:37:in `faq_add' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/part_container.rb:28:in `part' /path/to/redmine/vendor/plugins/ezfaq_plugin/app/models/faq_mailer.rb:36:in `faq_add' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:462:in `__send__' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:462:in `create!' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:455:in `initialize' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:392:in `new' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/base.rb:392:in `method_missing' /path/to/redmine/vendor/plugins/ezfaq_plugin/app/controllers/ezfaq_controller.rb:79:in `new' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `send' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action_without_filters' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/1.8/benchmark.rb:293:in `measure' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in `perform_action_without_caching' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in `cache' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:53:in `perform_action' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `send' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `process_without_filters' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_without_session_management_support' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in `handle_request' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/request_handler.rb:38:in `process_request' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_request_handler.rb:163:in `main_loop' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:307:in `start_request_handler' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:276:in `handle_spawn_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in `safe_fork' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `fork' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `safe_fork' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:274:in `handle_spawn_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:165:in `safe_fork' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `fork' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/utils.rb:163:in `safe_fork' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:273:in `handle_spawn_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `__send__' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `main_loop' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in `start_synchronously' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:135:in `start' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in `fork' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in `start' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/application_spawner.rb:177:in `start' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:270:in `handle_spawn_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:263:in `synchronize' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:263:in `handle_spawn_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `__send__' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `main_loop' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in `start_synchronously' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:135:in `start' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in `fork' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:112:in `start' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/railz/framework_spawner.rb:87:in `start' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:218:in `spawn_rails_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in `synchronize' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:213:in `spawn_rails_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:122:in `spawn_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/spawn_manager.rb:247:in `handle_spawn_application' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `__send__' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:317:in `main_loop' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/abstract_server.rb:168:in `start_synchronously' /opt/ruby-enterprise-1.8.6-20080810/lib/ruby/gems/1.8/gems/passenger-2.0.3/bin/passenger-spawn-server:46 Rendering ./public/500.html (500 Internal Server Error)
My environment:
the plugin has not been updated for long time, anyone could make it to compatable with redmine3.2.3? thanks
Hi.
I found another problem.
There is no faq icon found in activity page when Redmine's root url is not '/'.
ex.
mongrel_rails -start -e production --prefix /redmine
Because following line in EzfaqLayoutHook does not work when root is not '/'.
'<style type="text/css">dt.faqs { background-image: url(/plugin_assets/ezfaq_plugin/images/question.png); }</style>'
Change code to
baseurl = url_for(:controller => 'ezfaq', :action => 'index') '<style type="text/css">dt.faqs { background-image: url(' + baseurl + '/../plugin_assets/ezfaq_plugin/images/question.png); }</style>'
Then it will works.
I enabled the plugin and gave it.
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.