Internal Error with any plugins
Added by Rohit Singh over 13 years ago
I am facing a problem with using any stable plugins like knowledgebase.
Whenever i try to create an Article, it gives an Internal Error. Same goes with JChat.
Heres what all am using:
lighttpd -v
lighttpd/1.4.26 (ssl) - a light and fast webserver
Build-Date: Apr 6 2010 11:42:30
gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /var/lib/gems/1.8
- /root/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
@gem list
- LOCAL GEMS ***
actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
acts-as-taggable-on (2.0.6)
i18n (0.4.2)
mysql (2.8.1)
rack (1.1.2)
rails (2.3.11)
rake (0.8.7)
@
The OS is Ubuntu 10.04 x86_64
Replies (9)
RE: Internal Error with any plugins
-
Added by Felix Schäfer over 13 years ago
What Redmine version are you running?
RE: Internal Error with any plugins
-
Added by Rohit Singh over 13 years ago
Am using Redmine version:
Redmine 1.1.2.devel (MySQL)
RE: Internal Error with any plugins
-
Added by Felix Schäfer over 13 years ago
Is there any trace in your production.log
(or development.log
) Redmine log?
RE: Internal Error with any plugins
-
Added by Rohit Singh over 13 years ago
tail production.log
13: <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
lib/tabular_form_builder.rb:35:in `text_field'
vendor/plugins/redmine_knowledgebase/app/views/articles/_form.html.erb:10
vendor/plugins/redmine_knowledgebase/app/views/articles/new.html.erb:3
app/helpers/application_helper.rb:765:in `labelled_tabular_form_for'
vendor/plugins/redmine_knowledgebase/app/views/articles/new.html.erb:2
public/dispatch.fcgi:24
Rendering /var/www/armais.co/projects/public/500.html (500 Internal Server Error)
This is upon creating a new article in Knowledgebase plugin. Happens with anything that has
to add something to the db.
RE: Internal Error with any plugins
-
Added by Felix Schäfer over 13 years ago
He, that was just not enough :-) Get the full log entry for the request please.
RE: Internal Error with any plugins
-
Added by Rohit Singh over 13 years ago
Sorry, hope this ones enough.
vendor/plugins/redmine_knowledgebase/app/views/articles/new.html.erb:3
app/helpers/application_helper.rb:765:in `labelled_tabular_form_for'
vendor/plugins/redmine_knowledgebase/app/views/articles/new.html.erb:2
public/dispatch.fcgi:24
Rendering /var/www/armais.co/projects/public/500.html (500 Internal Server Error)
Processing ArticlesController#new (for xxx.xxx.xxx.xxx at 2011-04-11 11:02:10) [GET]
Parameters: {"action"=>"new", "controller"=>"articles"}
Rendering template within layouts/base
Rendering articles/new
ActionView::TemplateError (Mysql::Error: Table 'redmine.taggings' doesn't exist: SHOW FIELDS FROM `taggings`) on line #10 of vendor/plugins/redmine_knowledgebase/app/views/articles/_form.html.erb:
7: <p><%= f.text_field :title, :size => 60, :label => l(:label_title) ></p>
8: <p><= f.text_area :summary, :cols => 60, :rows => 5, :class => 'wiki-edit', :label => l(:label_summary) ></p>
9: <p><= f.text_area :content, :cols => 60, :rows => 15, :class => 'wiki-edit', :label => l(:label_content) ></p>
10: <p><= f.text_field :tag_list, :size => 80 ></p>
11: </div>
12: <div class="box">
13: <p><label><=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
lib/tabular_form_builder.rb:35:in `text_field'
vendor/plugins/redmine_knowledgebase/app/views/articles/_form.html.erb:10
vendor/plugins/redmine_knowledgebase/app/views/articles/new.html.erb:3
app/helpers/application_helper.rb:765:in `labelled_tabular_form_for'
vendor/plugins/redmine_knowledgebase/app/views/articles/new.html.erb:2
public/dispatch.fcgi:24
Rendering /var/www/armais.co/projects/public/500.html (500 Internal Server Error)
RE: Internal Error with any plugins
-
Added by Felix Schäfer over 13 years ago
It appears you haven't run the database migrations for the plugins, have a look at the generic plugin installation instructions here in the wiki and run the migrations accordingly.
RE: Internal Error with any plugins
-
Added by Rohit Singh over 13 years ago
rake db:migrate:plugins ? that line i have run many a times. Even with the verbose switch.
But it seems the table taggings is not getting created. Any pointers where I can find
its definition to create manually ? I mean, am asking where a generic plugin will store its
db config.
RE: Internal Error with any plugins
-
Added by Felix Schäfer over 13 years ago
If you use it in the production environment, you have to run RAILS_ENV=production rake db:migrate:plugins
. The tables should get created alongside the Redmine ones in the DB you have configured for Redmine.