[typo] 'string not matched' and other problems with Typo 2.5.2

Hammed Malik hammed at gmail.com
Wed Aug 10 17:29:49 EDT 2005


I kept getting a 'string not matched' error yesterday when running Typo 
2.5.2 + MySQL on my windows xp. I tried to do a clean install today to 
isolate the problem. Here's what I did:

copy typo 2.5.2 source into typo2 folder

create dev, test and prod databases and run db/schema.mysql.sql against each 
db

ruby script/server

create account. Changed blog name.

clicked 'your blog' link. page shows correctly.

refresh page and I get this following error:

 IndexError in Articles#index 

string not matched

script/server:49

Show framework trace <http://ruby:3000/#> 

c:/ruby/lib/ruby/1.8/cgi/session/pstore.rb:25:in `[]='
c:/ruby/lib/ruby/1.8/cgi/session/pstore.rb:25:in `[]='
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/flash.rb:133:in
`flash'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/flash.rb:146:in
`fire_flash'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:317:in
`send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:317:in
`call_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:313:in
`each'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:313:in
`call_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.rb:302:in
`before_action'

<snip>

After this point, all pages result in the same error.

Once I 'delete from sessions' in the dev database, I'm able to view the blog 
again.

Switching back and forth between the admin and public pages, everything 
works fine for a bit and then wham! I get the following error:

 ArgumentError in <controller not set>#<action not set> 

undefined class/module User

config/routes.rb:1
script/server:49

Show framework trace <http://ruby:3000/admin#> 

c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:48:in
`dump'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:48:in
`marshal'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:104:in
`marshal_data!'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:333:in
`send'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:333:in
`callback'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:330:in
`each'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:330:in
`callback'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/callbacks.rb:248:in
`create_or_update'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/base.rb:965:in
`save_without_validation'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/validations.rb:650:in
`save_without_transactions'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:128:in
`save'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:128:in
`transaction'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:93:in
`transaction'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:120:in
`transaction'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:128:in
`save'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:261:in
`update'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:261:in
`silence'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:261:in
`update'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/session/active_record_store.rb:268:in
`close'
c:/ruby/lib/ruby/1.8/cgi/session.rb:166:in `callback'
c:/ruby/lib/ruby/1.8/cgi/session.rb:165:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/code_generation.rb:40:in
`include?'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/code_generation.rb:40:in
`method_missing'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:468:in
`generation_code_for'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:410:in
`write_generation'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:404:in
`each'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:404:in
`write_generation'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:552:in
`draw'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:193:in
`load'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:193:in
`load'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/routing.rb:530:in
`reload'
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:49:in
`prepare_application'
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:31:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:105:in
`handle_dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:71:in
`service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:57:in
`dispatch'

This error occured while loading the following files:
   ./script/../config/../config/routes.rb


is there a step I'm missing somewhere? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/typo-list/attachments/20050810/60a4f1e1/attachment.htm


More information about the Typo-list mailing list