List Info

Thread: Trouble with latest gem typo.




Trouble with latest gem typo.
user name
2007-02-02 14:57:01
Dear list,

I´m running latest gem installable Typo. I had a
"Application error (Rails)" from the typo version
I had running.
So I hoped running the following would get me back on
track:

gem update typo; gem install typo . ;
cp ../oldworking-typo/config/database.yml config/;
typo start .

But I still get the Application error (Rails) message. Did a
rake
db:migrate without sucsess.

When trying to access myhost:4547/admin, I get redirected
to
http
://myhost:4547/admin/general/update_database


the log says this:

Processing GeneralController#update_database (for
195.159.113.10 at
2007-02-02 21:44:17) [GET]
  Session ID: a9cf2317dc5a376ae8e5e854e81d6bec
  Parameters:
{"action"=>"update_database",
"controller"=>"admin/general"}


NoMethodError (undefined method `collect' for
nil:NilClass):
    /app/controllers/admin/general_controller.rb:18:in
`update_database'
   
/vendor/rails/actionpack/lib/action_controller/base.rb:941:i
n `send'
   
/vendor/rails/actionpack/lib/action_controller/base.rb:941:i
n
`perform_action_without_filters'
   
/vendor/rails/actionpack/lib/action_controller/filters.rb:36
8:in
`perform_action_without_benchmark'
   
/vendor/rails/actionpack/lib/action_controller/benchmarking.
rb:69:in
`perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
   
/vendor/rails/actionpack/lib/action_controller/benchmarking.
rb:69:in
`perform_action_without_rescue'
   
/vendor/rails/actionpack/lib/action_controller/rescue.rb:82:
in
`perform_action'
   
/vendor/rails/actionpack/lib/action_controller/base.rb:408:i
n `send'
   
/vendor/rails/actionpack/lib/action_controller/base.rb:408:i
n
`process_without_filters'
   
/vendor/rails/actionpack/lib/action_controller/filters.rb:37
7:in
`process_without_session_management_support'
   
/vendor/rails/actionpack/lib/action_controller/session_manag
ement.rb:117:in
`process'
    /vendor/rails/railties/lib/dispatcher.rb:38:in
`dispatch'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.
rb:78:in
`process'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.
rb:76:in
`synchronize'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.
rb:76:in
`process'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618
:in
`process_client'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617
:in `each'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617
:in
`process_client'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736
:in `run'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736
:in `initialize'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736
:in `new'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736
:in `run'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720
:in `initialize'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720
:in `new'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720
:in `run'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/config
urator.rb:271:in
`run'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/config
urator.rb:270:in
`each'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/config
urator.rb:270:in
`run'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:
127:in `run'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/comman
d.rb:211:in
`run'
   
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:
243
    /usr/bin/mongrel_rails:18:in `load'
    /usr/bin/mongrel_rails:18


I ran rake db:migrate afterward, just to make sure.
Any suggestions to how to get my blog up running again?

All help is highly appreciated!

Best regards,
Martin Stabenfeldt



ActiveRecord::StatementInvalid: Mysql::Error: Unknown column
'url' in
'field list': INSERT INTO contents (`updated_at`, `body`,
`guid`,
`published`, `url`, `author`, `type`, `id`, `blog_id`,
`published_at`,
`article_id`, `state`, `created_at`, `email`) VALUES
('2004-05-02
20:00:02', 'Comment body _italic_ *bold*',
'b1i2n3g4o5t6i7v', 1,
'www.google.com', 'John Bar', 'Comment', 15, 1, '2004-05-02
20:00:02',
14, 'ContentState::Ham', '2004-05-02 20:00:02',
'john.bargoogle.com')
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/connection_ada
pters/abstract_adapter.rb:120:in
`log'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/connection_ada
pters/mysql_adapter.rb:184:in
`execute'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:28
8:in
`insert_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:28
7:in
`each'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:28
7:in
`insert_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:25
7:in
`create_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:25
7:in
`each'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:25
7:in
`create_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/connection_ada
pters/abstract/database_statements.rb:51:in
`transaction'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:25
5:in
`create_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/base.rb:794:in

`silence'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:24
8:in
`create_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:56
5:in
`load_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:51
2:in
`setup_with_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:54
7:in
`setup'

151) Error:
test_xml_atom10(XmlControllerTest):
ActiveRecord::StatementInvalid: Mysql::Error: Unknown column
'url' in
'field list': INSERT INTO contents (`updated_at`, `body`,
`guid`,
`published`, `url`, `author`, `type`, `id`, `blog_id`,
`published_at`,
`article_id`, `state`, `created_at`, `email`) VALUES
('2004-05-02
20:00:02', 'Comment body _italic_ *bold*',
'b1i2n3g4o5t6i7v', 1,
'www.google.com', 'John Bar', 'Comment', 15, 1, '2004-05-02
20:00:02',
14, 'ContentState::Ham', '2004-05-02 20:00:02',
'john.bargoogle.com')
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/connection_ada
pters/abstract_adapter.rb:120:in
`log'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/connection_ada
pters/mysql_adapter.rb:184:in
`execute'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:28
8:in
`insert_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:28
7:in
`each'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:28
7:in
`insert_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:25
7:in
`create_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:25
7:in
`each'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:25
7:in
`create_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/connection_ada
pters/abstract/database_statements.rb:51:in
`transaction'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:25
5:in
`create_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/base.rb:794:in

`silence'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:24
8:in
`create_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:56
5:in
`load_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:51
2:in
`setup_with_fixtures'
   
/home/martins/public_html/typo-current/temp/gemtest/config/.
./vendor/rails/activerecord/lib/active_record/fixtures.rb:54
7:in
`setup'

210 tests, 192 assertions, 0 failures, 151 errors
rake aborted!
Test failures
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )