Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Troubleshooting  >  Thread
   
 
can’t change order of contexts: RecordNotFound
 
sascha
Posted: 17 July 2008 12:39 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  1
Joined  2008-07-17

using tracks-1.6 on debian etch, I seem not to be able to re-order my contexts. I have created only three, but the “order” request seems to think there is one more, and sends an empty id for it:

Processing ContextsController#order (for 87.234.51.206 at 2008-07-17 14:35:37) [POST]
  Session ID: 6b8069d85656a43591fe21391d1bab10
  Parameters: {“authenticity_token”=>“a9c80a3799c9d32c2e7c0b65ce6a313a93ba3e32”, “action”=>“order”, “controller”=>“contexts”, “list-contexts”=>[”“, “9”, “12”, “8”]}


ActiveRecord::RecordNotFound (Couldn’t find Context with ID=):
  /vendor/rails/activerecord/lib/active_record/base.rb:1267:in `find_one’
  /vendor/rails/activerecord/lib/active_record/base.rb:1250:in `find_from_ids’
  /vendor/rails/activerecord/lib/active_record/base.rb:504:in `find’
  /vendor/rails/activerecord/lib/active_record/base.rb:598:in `update’
  /vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `send’
  /vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `method_missing_without_paginate’
  /vendor/rails/activerecord/lib/active_record/base.rb:1693:in `with_scope’
  /vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `send’
  /vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `method_missing_without_paginate’
  /vendor/plugins/will_paginate/lib/will_paginate/finder.rb:139:in `method_missing’
  /app/controllers/contexts_controller.rb:114:in `order’
  /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/inflector.rb:257:in `each_with_index’
  /app/controllers/contexts_controller.rb:113:in `each’
  /app/controllers/contexts_controller.rb:113:in `each_with_index’
  /app/controllers/contexts_controller.rb:113:in `order’
  /vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `send’

happens in firefox-3.0 on an ubuntu linux desktop. looking at the table “contexts” in the db, there also only three contexts stored:

mysql> select id,position from contexts where user_id = 2;
+——+—————+
| id | position |
+——+—————+
|  8 |      1 |
|  9 |      2 |
| 12 |      3 |
+——+—————+
3 rows in set (0.00 sec)

any hint how to fix it would be appreciated.


Thanks,

Sascha

Profile
 
Reinier Balt
Posted: 17 July 2008 05:40 PM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

this bug is fixed in git repository.

Profile
 
   
 
 
‹‹ Take a survey on women’s health, win a gift card!      Tickler doesn’t tickle ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.0989 seconds

Atom Feed
RSS 2.0