error 404 when trying to create a sub project
Added by Guy Barnhart-Magen about 13 years ago
Hi,
when i try to create a subproject i get a 404 error. using log in debug mode shows the following:
Processing ProjectsController#show (for 192.168.85.1 at 2011-12-22 09:57:10) [GET]
Parameters: {"action"=>"show", "id"=>"add", "parent_id"=>"issui", "controller"=>"projects"}
SQL (0.2ms) SELECT max(`settings`.updated_on) AS max_updated_on FROM `settings`
User Load (0.1ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) AND (users.status = 1) AND ( (`users`.`type` = 'User' OR `users`.`type` = 'AnonymousUser' ) )
Project Load (0.2ms) SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'add') LIMIT 1
Rendering template within layouts/base
Rendering common/error (404)
UserPreference Load (0.2ms) SELECT * FROM `user_preferences` WHERE (`user_preferences`.user_id = 1) LIMIT 1
Member Load Including Associations (0.2ms) SELECT `members`.`id` AS t0_r0, `members`.`user_id` AS t0_r1, `members`.`project_id` AS t0_r2, `members`.`created_on` AS t0_r3, `members`.`mail_notification` AS t0_r4, `projects`.`id` AS t1_r0, `projects`.`name` AS t1_r1, `projects`.`description` AS t1_r2, `projects`.`homepage` AS t1_r3, `projects`.`is_public` AS t1_r4, `projects`.`parent_id` AS t1_r5, `projects`.`created_on` AS t1_r6, `projects`.`updated_on` AS t1_r7, `projects`.`identifier` AS t1_r8, `projects`.`status` AS t1_r9, `projects`.`lft` AS t1_r10, `projects`.`rgt` AS t1_r11, `roles`.`id` AS t2_r0, `roles`.`name` AS t2_r1, `roles`.`position` AS t2_r2, `roles`.`assignable` AS t2_r3, `roles`.`builtin` AS t2_r4, `roles`.`permissions` AS t2_r5, `roles`.`issues_visibility` AS t2_r6 FROM `members` LEFT OUTER JOIN `projects` ON `projects`.id = `members`.project_id LEFT OUTER JOIN `member_roles` ON (`members`.`id` = `member_roles`.`member_id`) LEFT OUTER JOIN `roles` ON (`roles`.`id` = `member_roles`.`role_id`) WHERE (`members`.user_id = 1 AND (projects.status=1)) ORDER BY projects.name
Filter chain halted as [:find_project] rendered_or_redirected.
Completed in 18ms (View: 14, DB: 1) | 404 Not Found [https://192.168.85.129/redmine/projects/add?parent_id=issui]
the line causing the issue seems to be:
SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'add') LIMIT 1
when i looked at the database directly i could see that there is no record in the projects table with the identifier "add".
Please help,
Guy
running:
Redmine 1.2.3.stable.8195 (MySQL)
actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
daemon_controller (0.2.6)
fastthread (1.0.7)
i18n (0.4.2)
mysql (2.8.1)
passenger (3.0.11)
rack (1.1.2)
rails (2.3.11)
rake (0.8.7)
Replies (2)
RE: error 404 when trying to create a sub project - Added by Guy Barnhart-Magen about 13 years ago
I just tried dumping the database and doing a fresh migrate,
now i can create a project in root but i cannot create a subproject
RE: error 404 when trying to create a sub project - Added by Guy Barnhart-Magen about 13 years ago
dont i look stupid,
found the cause - an old Chuck Norris plugin...
i was too afraid to touch it