[typo] Hemingway theme

Timothy Freund tim at digital-achievement.com
Sat Jun 10 17:24:40 EDT 2006


Uzair:

Concerning the "Table 'uzair_typo.triggers' doesn't exist" error:  I 
wonder if you initially installed your typo instance in a schema named 
uzair_typo, but perhaps the migrations ran in the default schema rather 
than your uzair_typo schema.

In other words, it may have created a triggers table, but the triggers 
table may not be in the right place.

I run my Typo instances on PostgreSQL, and I haven't dealt with 
migrations much, so forgive me if this is completely off base.  I am 
interested to hear what the solution is.

Thanks,

Tim



Syed Uzair Aqeel wrote:
> Related, but not quite the problem that Kyle was having:
> 
> ---
> 
> ActionView::TemplateError (uninitialized constant
> Sidebars::SidebarController) on line #42 of themes/hemingway/layouts/defaul
> t.rhtml:
> 39:     <hr class="hide" />
> 40:     <div id="ancillary">
> 41:             <div class="inside">
> 42:                     <%= render_component(:controller =>
> 'sidebars/sidebar', :action => 'display_plugins') %>
> 43:                     <div class="clear"></div>
> 44:             </div>
> 45:     </div>
> 
> ---
> 
> This is after updating to revision 1055 and running script/migrate.
> 
> When I try to bring up the admin console, I get:
> 
> ---
> 
> Processing GeneralController#index (for 82.35.78.134 at 2006-06-10 04:12:57)
> [GET]
>   Session ID: 2405f7734723b624a57d5b5311720136
>   Parameters: {"action"=>"index", "controller"=>"admin/general"}
> 
> 
> ActiveRecord::StatementInvalid (MysqlError: Table 'uzair_typo.triggers'
> doesn't exist: SELECT * FROM triggers WHERE (due_at <
> = '2006-06-10 04:12:57') ):
>  
> /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_ad
> apter.rb:120:in `log'
>  
> /vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapt
> er.rb:185:in `execute'
>  
> /vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapt
> er.rb:337:in `select'
>  
> /vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapt
> er.rb:176:in `select_all'
>     /vendor/rails/activerecord/lib/active_record/base.rb:390:in
> `find_by_sql'
>     /vendor/rails/activerecord/lib/active_record/base.rb:924:in `find_every'
>     /vendor/rails/activerecord/lib/active_record/base.rb:381:in `find'
>     /vendor/rails/activerecord/lib/active_record/base.rb:461:in
> `destroy_all'
>     /app/models/trigger.rb:12:in `fire'
>     /app/controllers/application.rb:15:in `fire_triggers'
>     /vendor/rails/actionpack/lib/action_controller/filters.rb:399:in `send'
>     /vendor/rails/actionpack/lib/action_controller/filters.rb:399:in
> `call_filters'
>     /vendor/rails/actionpack/lib/action_controller/filters.rb:394:in `each'
>     /vendor/rails/actionpack/lib/action_controller/filters.rb:394:in
> `call_filters'
>     /vendor/rails/actionpack/lib/action_controller/filters.rb:383:in
> `before_action'
>     /vendor/rails/actionpack/lib/action_controller/filters.rb:365:in
> `perform_action_without_benchmark'
>     /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue'
>     /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69: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:381:in `send'
>     /vendor/rails/actionpack/lib/action_controller/base.rb:381:in
> `process_without_filters'
>     /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
> `process_without_session_management_support'
>  
> /vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in
> `process'
>     /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch'
>     /vendor/rails/railties/lib/fcgi_handler.rb:150:in `process_request'
>     /vendor/rails/railties/lib/fcgi_handler.rb:54:in `process!'
>     /vendor/rails/railties/lib/fcgi_handler.rb:53:in `each_cgi'
>     /usr/lib/ruby/1.8/fcgi.rb:597:in `each'
>     /usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi'
>     /vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!'
>     /vendor/rails/railties/lib/fcgi_handler.rb:23:in `process!'
>     dispatch.fcgi:24
> 
> ---
> 
> Me no likey.
> 
> Uzair
> 
> 
>>-----Original Message-----
>>From: typo-list-bounces at rubyforge.org [mailto:typo-list-
>>bounces at rubyforge.org] On Behalf Of Timothy Freund
>>Sent: Friday, June 09, 2006 6:57 AM
>>To: typo-list at rubyforge.org
>>Subject: Re: [typo] Hemingway theme
>>
>>Kyle --
>>
>>I noticed that it seemed to load a little slow as well.
>>
>>I use the pretty standard sidebar plugins, so maybe I'm not testing the
>>same things that you are.  I typically use the Archives, Categories,
>>Static, Flickr, and XML Syndication sidebar plugins.  All of those seem
>>to work fine for me in Hemingway.
>>
>>What sidebar plugins are you using?  Does the error return when you add
>>any plugin, just a certain plugin, or a certain number/combination of
>>plugins?
>>
>>Tim
>>
>>
>>Kyle Heon wrote:
>>
>>>Tim,
>>>
>>>Thanks for the reply. Yeah, this is the latest. I pulled it down last
>>>night from the same link you provide below.
>>>
>>>I narrowed this down to the sidebars as well. I'm running the latest
>>>trunk version of Typo (as of last night, not sure on the revision
>>>number). When I remove ALL of my sidebars the pages load (albeit
>>>slowly). Once I begin to add them back in the errors returns.
>>>
>>>-K
>>>
>>>Hi Kyle -- I'm new to the Typo list, but perhaps we can figure this out
>>>anyway.
>>>
>>>It looks like there is a defect filed with that same error message here:
>>>http://www.typosphere.org/trac/ticket/806
>>>
>>>Does anything on that page ring a bell?  It looks like the problem came
>>>down to a custom sidebar issue with the original poster's Typo.
>>>
>>>Just in case it doesn't, I tried the same thing with Hemingway on Typo
>>>version 1055, and it seemed to work OK.  Hemingway was the latest, as I
>>>found it here:
>>>http://warpspire.com/hemingway/hemingway-for-typo
>>>
>>>What version of Typo are you running?  What information does the Full
>>>Trace option give?
>>>
>>>Hopefully that helps,
>>>
>>>Tim
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>Typo-list mailing list
>>>Typo-list at rubyforge.org
>>>http://rubyforge.org/mailman/listinfo/typo-list
>>
>>
>>--
>>Timothy Freund
>>http://digital-achievement.com
>>http://edodyssey.com
>>_______________________________________________
>>Typo-list mailing list
>>Typo-list at rubyforge.org
>>http://rubyforge.org/mailman/listinfo/typo-list
> 
> 
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list

-- 
Timothy Freund
http://digital-achievement.com
http://edodyssey.com


More information about the Typo-list mailing list