Error 404 when editing Project or User

Added by benjamin agullana over 8 years ago

Hi everybody,

I got a 404 error when i try to edit a project or a user.
I opened up my log file and see it :

Processing ProjectsController#vetus (for 192.168.0.52 at 2011-03-03 18:11:25) [POST]
  Parameters: {"commit"=>"Sauvegarder", "action"=>"vetus", "authenticity_token"=>"Xl7B0m3kOjQ3lCH25NsQq0yma3aAtazDcMm/onB7sIc=", "id"=>"edit", "project"=>{"issue_custom_field_ids"=>[""], "name"=>"Vétus", "custom_field_values"=>{"2"=>"", "3"=>"", "4"=>""}, "tracker_ids"=>["1", "5", "8", "2", "7", "4", "6", "9", ""], "homepage"=>"azfag", "parent_id"=>"21", "is_public"=>"1", "description"=>""}, "controller"=>"projects"}
Rendering template within layouts/base
Rendering common/404 (404)
Filter chain halted as [:find_project] rendered_or_redirected.
Completed in 16ms (View: 16, DB: 0) | 404 Not Found [http://192.168.0.252/projects/vetus/edit]

You can see that the parameters "id" and "action" are inverted... It should be "action"=>"edit" and "id"=>"vetus"
I use Redmine 1.0.1 Stable (MySQL) on IIS

If someone knows how to fix this bug tell me,

thanks.

Replies (13)

RE: Error 404 when editing Project or User - Added by Etienne Massip over 8 years ago

Do you have any plugins installed ?

RE: Error 404 when editing Project or User - Added by benjamin agullana over 8 years ago

I'm not the one who installed Redmine and I can't more info about the guy who instlaled it.
When i look in vendor/plugins directory I see :
  • acts_as_activity_provider
  • acts_as_attachable
  • acts_as_customizable
  • acts_as_event
  • acts_as_list
  • acts_as_searchable
  • acts_as_tree
  • acts_as_versioned
  • acts_as_watchable
  • awesome_nested_set
  • classic_pagination
  • coderay-0.9.2
  • engines
  • gravatar
  • open_id_authentication
  • prepend_engine_views
  • redmine_watchers_by_role
  • rfpdf
  • ruby-net-ldap-0.0.4

I guess those are the default plugins ?

RE: Error 404 when editing Project or User - Added by Etienne Massip over 8 years ago

Yes, except for redmine_watchers_by_role.

Could you try without it ?

RE: Error 404 when editing Project or User - Added by benjamin agullana over 8 years ago

Ok, but how i uninstall it ? By removing folder ?

Thanks you for your help.

RE: Error 404 when editing Project or User - Added by benjamin agullana over 8 years ago

Ok i found how to uninstall it.
I rebooted Mongrel services and retry to modify a project...
Then I get an error 404 again :( And no changes happened to the projects settings.

RE: Error 404 when editing Project or User - Added by benjamin agullana over 8 years ago

Ok, I have exactly the same problem whan editing a user. Maybe it could help to find a solution ?

RE: Error 404 when editing Project or User - Added by Etienne Massip over 8 years ago

Sorry, looking at error it seems that redmine is expecting a project named "vetus" which does not exist anymore.

How was this project removed ?

RE: Error 404 when editing Project or User - Added by benjamin agullana over 8 years ago

Project named "Vetus" exists and is active. Look at the parameters, it seems Redmine reverse those parameters.

RE: Error 404 when editing Project or User - Added by benjamin agullana over 8 years ago

I decided to upgrage my Redmine to version 1.1.1.
It solved the problem when I edit a user, but when I want to see a project homepage I got an error 500 !

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.

Back

In my log file I got it :

Processing ProjectsController#show (for 192.168.0.52 at 2011-03-07 17:45:49) [GET]
  Parameters: {"action"=>"show", "id"=>"finestspa", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show

ActionView::TemplateError (undefined method `visible?' for #<ActiveRecord::Associations::BelongsToAssociation:0x9ddc700>) on line #19 of app/views/projects/show.rhtml:
16:      <li><%=l(:label_subproject_plural)%>:
17:         <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
18:   <% end %>
19:     <% @project.visible_custom_field_values.each do |custom_value| %>
20:     <% if !custom_value.value.blank? %>
21:        <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
22:     <% end %>

    app/models/custom_value.rb:38:in `visible?'
    app/views/projects/show.rhtml:19:in `_run_rhtml_app47views47projects47show46rhtml'
    app/controllers/projects_controller.rb:166:in `show'

Rendering C:/Ruby/Redmine/public/500.html (500 Internal Server Error)

Can you help me ? Thanks

RE: Error 404 when editing Project or User - Added by Etienne Massip over 8 years ago

Did you run db migration ?

RE: Error 404 when editing Project or User - Added by benjamin agullana over 8 years ago

Yes, I did : rake db:migrate RAILS_ENV="production" 

RE: Error 404 when editing Project or User - Added by benjamin agullana over 8 years ago

Ok ! I did it again ! And got some messages... I restarted all Mongrel services and now all works fine !

Thanks man !

(1-13/13)