[Nitro] More Trouble With Og

Dan Yoder dan at zeraweb.com
Tue Mar 22 03:08:53 EST 2005


I went ahead and created the blog database, hoping maybe once that was  
squared away I would at least have a running app. But I got another  
error when it tried to query the database:

  INFO: Connecting to database 'blog' using the 'mysql' adapter.
DEBUG: Og auto manages the following classes:
DEBUG: [BlogEntry, Category, Comment]
ERROR: DB error Table 'blog.og_blogentry' doesn't exist, [SELECT * FROM  
og_blogentry LIMIT 1]
ERROR: /usr/local/lib/ruby/1.8/mysql.rb:453:in `read'
/usr/local/lib/ruby/1.8/mysql.rb:345:in `read_query_result'
/usr/local/lib/ruby/1.8/mysql.rb:160:in `real_query'
/usr/local/lib/ruby/1.8/mysql.rb:275:in `query'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/adapters/mysql.rb: 
276:in `query'
(eval):10:in `query'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/adapters/mysql.rb: 
112:in `calc_field_index'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/adapter.rb:454:in  
`eval_og_read'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/adapter.rb:303:in  
`eval_lifecycle_methods'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:220:in  
`convert'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:159:in  
`manage'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:169:in  
`manage_classes'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:168:in  
`each'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:168:in  
`manage_classes'
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:93:in  
`initialize'
run.rb:20:in `new'
run.rb:20
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/adapters/mysql.rb: 
115:in `calc_field_index': undefined method `num_fields' for  
nil:NilClass (NoMethodError)
         from  
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/adapter.rb:454:in  
`eval_og_read'
         from  
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/adapter.rb:303:in  
`eval_lifecycle_methods'
         from  
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:220:in  
`convert'
         from  
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:159:in  
`manage'
         from  
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:169:in  
`manage_classes'
         from  
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:168:in  
`each'
         from  
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:168:in  
`manage_classes'
         from  
/usr/local/lib/ruby/gems/1.8/gems/og-0.13.0/lib/og/database.rb:93:in  
`initialize'
         from run.rb:20:in `new'
         from run.rb:20




More information about the Nitro-general mailing list