Project

General

Profile

Bug #1358

Error on deleting a tasklist

Added by Anonymous about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Elevated
Assignee:
-
Category:
Pages
Target version:
-
Start date:
10/21/2009
Due date:
% Done:

0%

QA Check:
Feature Branch:

Description

I tried to delete permanently the following tasklist:

http://my.uniteforclimate.org/youthclimate/should-we-move-to-drupal-cms-before-cop15+3032

and got the following error:
http://pastie.org/663746

History

#1 Updated by micah about 8 years ago

Issue #1358 has been reported by ficho.

and got the following error:
http://pastie.org/663746

copying traceback here because pastie.org links expire:

Mysql::Error: Unknown column 'moderated_flags.foreign_key' in 'where
clause': SELECT * FROM `moderated_flags`     WHERE
(`moderated_flags`.foreign_key = 3032) AND ( (`moderated_flags`.`type` =
'ModeratedPage' ) ) 

    145          log_info(message, name, 0)
    146          raise ActiveRecord::StatementInvalid, message
=>  147        end
    148
    149        def format_log_entry(message, dump = nil)

RAILS_ROOT: /usr/apps/crabgrass/releases/20091013045239
Application Trace | Framework Trace | Full Trace

vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:147:in
`log'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:299:in
`execute'
vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:516:in
`select'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
`select_all_without_query_cache'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:59:in
`select_all'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:80:in
`cache_sql'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:59:in
`select_all'
vendor/rails/activerecord/lib/active_record/base.rb:582:in `find_by_sql'
vendor/rails/activerecord/lib/active_record/base.rb:1341:in `find_every'
vendor/rails/activerecord/lib/active_record/base.rb:536:in `find'
vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:47:in
`find'
vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:305:in
`find_target'
vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:259:in
`load_target'
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:173:in
`method_missing'
vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:274:in
`method_missing_without_paginate'
vendor/plugins/will_paginate/lib/will_paginate/finder.rb:176:in
`method_missing'
vendor/rails/activerecord/lib/active_record/associations.rb:1271:in
`has_many_dependent_destroy_for_moderated_pages'
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in
`evaluate_method'
vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'
vendor/rails/activesupport/lib/active_support/callbacks.rb:93:in `run'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `each'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `run'
vendor/rails/activesupport/lib/active_support/callbacks.rb:272:in
`run_callbacks'
vendor/rails/activerecord/lib/active_record/callbacks.rb:298:in
`callback'

Also available in: Atom PDF