From bill at bfccomputing.com Tue Mar 4 00:15:23 2008 From: bill at bfccomputing.com (Bill McGonigle) Date: Tue, 4 Mar 2008 00:15:23 -0500 Subject: [typo] Typo on mongrel + apache + ubuntu In-Reply-To: References: Message-ID: Oops, sorry, missed your reply. On Feb 22, 2008, at 11:08, Pat Ferrel wrote: > Do you have sysv init.d scripts to start typo? No, I have to admit to having some rc.local lines. :P -Bill ----- Bill McGonigle, Owner Work: 603.448.4440 BFC Computing, LLC Home: 603.448.1668 bill at bfccomputing.com Cell: 603.252.2606 http://www.bfccomputing.com/ Page: 603.442.1833 Blog: http://blog.bfccomputing.com/ VCard: http://bfccomputing.com/vcard/bill.vcf From bill at bfccomputing.com Wed Mar 5 03:33:42 2008 From: bill at bfccomputing.com (Bill McGonigle) Date: Wed, 5 Mar 2008 03:33:42 -0500 Subject: [typo] Plugin 'all'? Message-ID: <71CBCB27-1BF2-4997-A14A-2C46180F3381@bfccomputing.com> Hi, I'm having an issue upgrading to version 5.0.3 from 4.1.1. I think I need pointing in the right direction. First, I'm a bit confused about how to get rid of unneeded sidebar plugins before upgrading. Or am I supposed to update to 5 first, then install missing plug-ins? I'm somewhat clueless about enumerating the relevant plugins on version 4 and then matching them on version 5. script/plugin doesn't seem to have a 'list locally installed' option; on 4, I have several items in my vendor/plugins/ directory - does that represent the entirety of the installed plug- ins or are they also listed in the schema? If I should simply nuke the things in that directory, how would I correlate the list of plugins I'm using on the sidebar with the directory such that I don't remove the ones that I do actually use. My sidebar for this blog consists only of XML feeds, 2 statics, and Categories, so I don't need anything else. I tried 'delete from sidebars' based on others' reports here but it didn't work for me. Anyhow, I'm getting error messages about not finding plugin 'all'. Attached are the results of a mongrel startup attempt and a rake db:migrate. Thanks, -Bill ** Starting Mongrel listening at 0.0.0.0:8500 ** Starting Rails with production environment... /opt/typo/config/../vendor/rails/railties/lib/initializer.rb:191:in `load_plugins': Cannot find the plugin 'all'! (LoadError) from /opt/typo/config/../vendor/rails/railties/lib/ initializer.rb:189:in `each' from /opt/typo/config/../vendor/rails/railties/lib/ initializer.rb:189:in `load_plugins' from /opt/typo/config/../vendor/rails/railties/lib/ initializer.rb:105:in `process' from /opt/typo/config/../vendor/rails/railties/lib/ initializer.rb:43:in `send' from /opt/typo/config/../vendor/rails/railties/lib/ initializer.rb:43:in `run' from /opt/typo/config/environment.rb:13 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `require' ... 9 levels... from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/ mongrel/command.rb:212:in `run' from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/ mongrel_rails:281 from /usr/bin/mongrel_rails:16:in `load' from /usr/bin/mongrel_rails:16 -bash-3.2$ rake --trace db:migrate (in /opt/typo) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! Cannot find the plugin 'all'! /opt/typo/config/../vendor/rails/railties/lib/initializer.rb:191:in `load_plugins' /opt/typo/config/../vendor/rails/railties/lib/initializer.rb:189:in `each' /opt/typo/config/../vendor/rails/railties/lib/initializer.rb:189:in `load_plugins' /opt/typo/config/../vendor/rails/railties/lib/initializer.rb:105:in `process' /opt/typo/config/../vendor/rails/railties/lib/initializer.rb:43:in `send' /opt/typo/config/../vendor/rails/railties/lib/initializer.rb:43:in `run' /opt/typo/config/../config/environment.rb:13 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /opt/typo/config/../vendor/rails/railties/lib/tasks/misc.rake:3 /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 /usr/bin/rake:16:in `load' /usr/bin/rake:16 ----- Bill McGonigle, Owner Work: 603.448.4440 BFC Computing, LLC Home: 603.448.1668 bill at bfccomputing.com Cell: 603.252.2606 http://www.bfccomputing.com/ Page: 603.442.1833 Blog: http://blog.bfccomputing.com/ VCard: http://bfccomputing.com/vcard/bill.vcf From dag at sonsorol.org Wed Mar 5 17:27:13 2008 From: dag at sonsorol.org (Chris Dagdigian) Date: Wed, 5 Mar 2008 17:27:13 -0500 Subject: [typo] 4.1 to 5.03 upgrade flawless except builtin Tags sidebar crashes typo Message-ID: Hi typo folks, I've been running http://gridengine.info on a hand-built Typo 4.1 system for a *long* time and just got around to testing out a move to Centos 5 Linux and a shiny new RAILS environment. The upgrade experience was very pleasant; thanks! The only install issues I encountered were due to missing extensions in the Ruby 1.8.6 I built from source. Finding and fixing was pretty easy. The rake migration process was painless as well. The site refused to start up at first but going into the admin view and deleting all of the sidebar plugins fixed that. One by one I added in my sidebar plugins (nothing exotic, just Static/ and Categories/) The only thing that does not work is the built-in Tags plugin for the sidebar. Whenever I add it to the site I crash the built in webserver. Because my site tracks a particular piece of grid computing software, some of my tags are software version numbers like "6.0" and "6.0u12" etc. In the past I've had URL based tag schemes refuse to accept the "." character but I've never had any problems with the Tags sidebar plugin before on Typo 4.1. Could my use of "." characters in article tags be the cause of this error output in the new Typo 5.03? Any hints or tips would be appreciated. Regards, Chris > Rendering template within ../../themes/scribbish/layouts/default > Rendering articles/error (404) > Rendering /home/rails-applications/typo-5.0.3/vendor/plugins/ > tag_sidebar/views/content.rhtml > /!\ FAILSAFE /!\ Wed Mar 05 17:16:58 -0500 2008 > Status: 500 Internal Server Error > > > ActionView::TemplateError (tag_url failed to generate from > {:action=>"show", :id=>"6.0", :controller=>"tags"}, expected: > {:action=>"show", :controller=>"tags"}, diff: {:id=>"6.0"}) on line > #5 of vendor/plugins/tag_sidebar/views/content.rhtml: > 2:

<%= _("Tags")%>

> 3:

> 4: <% sidebar.tags.each do |tag| -%> > 5: <%= link_to > tag.display_name, tag_url(tag) %> > 6: <% end -%> > 7:

> 8: <% end %> > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/routing.rb:1415:in `raise_named_route_error' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/routing.rb:1379:in `generate' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/url_rewriter.rb:124:in `rewrite_path' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/url_rewriter.rb:103:in `rewrite_url' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/url_rewriter.rb:81:in `rewrite' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:616:in `url_for' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/helpers/url_helper.rb:71:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/helpers/url_helper.rb:71:in `url_for' > (eval):22:in `tag_url' > vendor/plugins/tag_sidebar/views/content.rhtml:5:in > `_run_erb_47vendor47plugins47tag_sidebar47views47content46rhtml' > vendor/plugins/tag_sidebar/views/content.rhtml:4:in `each' > vendor/plugins/tag_sidebar/views/content.rhtml:4:in > `_run_erb_47vendor47plugins47tag_sidebar47views47content46rhtml' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:637:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:637:in `compile_and_render_template' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:365:in `render_template' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:316:in `render_file' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:1100:in `render_for_file' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:858:in `render_with_no_layout' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/layout.rb:270:in `render_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:922:in `render_to_string' > app/helpers/content_helper.rb:91:in `send' > app/helpers/content_helper.rb:91:in `render_to_string' > app/helpers/sidebar_helper.rb:24:in `render_sidebar' > app/helpers/sidebar_helper.rb:7:in `render_sidebars' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/helpers/text_helper.rb:29:in `inject' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_proxy.rb:125:in `each' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_proxy.rb:125:in `inject' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_proxy.rb:125:in `send' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_proxy.rb:125:in > `method_missing' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_collection.rb:162:in > `method_missing' > app/helpers/sidebar_helper.rb:3:in `render_sidebars' > themes/scribbish/layouts/default.html.erb:27:in > `_run_erb_47themes47scribbish47layouts47default46html46erb' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:637:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:637:in `compile_and_render_template' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:365:in `render_template' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:316:in `render_file' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/layout.rb:268:in `render_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > app/controllers/application.rb:26:in `rescue_action_in_public' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/rescue.rb:125:in `rescue_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/rescue.rb:203:in `perform_action_without_caching' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:678:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/query_cache.rb:8:in `cache' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:74:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:74:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 159:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 158:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 158:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:282:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:281:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:281:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/ > mongrel_rails:128:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > command.rb:212:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/ > mongrel_rails:281 > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/ > servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/ > server.rb:39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > script/server:3 > > > On line #5 of vendor/plugins/tag_sidebar/views/content.rhtml > > 2:

<%= _("Tags")%>

> 3:

> 4: <% sidebar.tags.each do |tag| -%> > 5: <%= > link_to tag.display_name, tag_url(tag) %> > 6: <% end -%> > 7:

> 8: <% end %> > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/routing.rb:1415:in `raise_named_route_error' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/routing.rb:1379:in `generate' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/url_rewriter.rb:124:in `rewrite_path' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/url_rewriter.rb:103:in `rewrite_url' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/url_rewriter.rb:81:in `rewrite' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:616:in `url_for' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/helpers/url_helper.rb:71:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/helpers/url_helper.rb:71:in `url_for' > (eval):22:in `tag_url' > vendor/plugins/tag_sidebar/views/content.rhtml:5:in > `_run_erb_47vendor47plugins47tag_sidebar47views47content46rhtml' > vendor/plugins/tag_sidebar/views/content.rhtml:4:in `each' > vendor/plugins/tag_sidebar/views/content.rhtml:4:in > `_run_erb_47vendor47plugins47tag_sidebar47views47content46rhtml' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:637:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:637:in `compile_and_render_template' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:365:in `render_template' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:316:in `render_file' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:1100:in `render_for_file' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:858:in `render_with_no_layout' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/layout.rb:270:in `render_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:922:in `render_to_string' > app/helpers/content_helper.rb:91:in `send' > app/helpers/content_helper.rb:91:in `render_to_string' > app/helpers/sidebar_helper.rb:24:in `render_sidebar' > app/helpers/sidebar_helper.rb:7:in `render_sidebars' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/helpers/text_helper.rb:29:in `inject' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_proxy.rb:125:in `each' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_proxy.rb:125:in `inject' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_proxy.rb:125:in `send' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_proxy.rb:125:in > `method_missing' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/associations/association_collection.rb:162:in > `method_missing' > app/helpers/sidebar_helper.rb:3:in `render_sidebars' > themes/scribbish/layouts/default.html.erb:27:in > `_run_erb_47themes47scribbish47layouts47default46html46erb' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:637:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:637:in `compile_and_render_template' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:365:in `render_template' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_view/base.rb:316:in `render_file' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/layout.rb:268:in `render_without_benchmark' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > app/controllers/application.rb:26:in `rescue_action_in_public' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/rescue.rb:125:in `rescue_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/rescue.rb:203:in `perform_action_without_caching' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:678:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/query_cache.rb:8:in `cache' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:74:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:74:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 159:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 158:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 158:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:282:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:281:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:281:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/ > mongrel_rails:128:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > command.rb:212:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/ > mongrel_rails:281 > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:489:in `load' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/ > servers/mongrel.rb:64 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:342:in `new_constants_in' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:496:in `require' > /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/ > server.rb:39 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require' > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > script/server:3 > > From tcocca at bostonlogic.com Tue Mar 18 10:58:46 2008 From: tcocca at bostonlogic.com (Tom Cocca) Date: Tue, 18 Mar 2008 10:58:46 -0400 Subject: [typo] Typo Integration with existing application Message-ID: <47DFD8A6.2060204@bostonlogic.com> Hello, I am thinking about using Typo as a blog for my existing site. My question is, in my current rails site I already have an authentication system, acts_as_authenticated, is there anyway to integrate this login with Typo so that users do not have to log into the blog separately? Has anyone installed the type of a system before? Also, with acts_as_authenticated I am also using the authorization plugin to give roles to users. Any ideas? Thank you all for your time and I apologize if you have answered this before but my searches didn't yield any results in this topic. Thanks, ~ Tom Cocca From kevwil at gmail.com Tue Mar 18 14:42:00 2008 From: kevwil at gmail.com (Kevin Williams) Date: Tue, 18 Mar 2008 12:42:00 -0600 Subject: [typo] Typo Integration with existing application In-Reply-To: <47DFD8A6.2060204@bostonlogic.com> References: <47DFD8A6.2060204@bostonlogic.com> Message-ID: <683a886f0803181142m53fa0b44s6c80882cf11f3262@mail.gmail.com> Just a brain dump here, my apologies if this is not welcome. It sounds like a simple single-sign-on behavior would be useful here. I'm thinking of OpenID[1] and OAuth[2] here. I've been meaning to dig deeply into OAuth but haven't gotten around to it. It seems like Typo having the option of being an OAuth provider could be cool. In your case, it sounds like you would need your existing site to be the OAuth provider and Typo to be the OAuth consumer. Then again, I really don't know anything about OAuth so I could be waaayy off here. I hope that's helpful, but I doubt it. :) [1] http://openid.net/ [2] http://oauth.net/ On Tue, Mar 18, 2008 at 8:58 AM, Tom Cocca wrote: > Hello, > > I am thinking about using Typo as a blog for my existing site. My > question is, in my current rails site I already have an authentication > system, acts_as_authenticated, is there anyway to integrate this login > with Typo so that users do not have to log into the blog separately? > > Has anyone installed the type of a system before? Also, with > acts_as_authenticated I am also using the authorization plugin to give > roles to users. > > Any ideas? Thank you all for your time and I apologize if you have > answered this before but my searches didn't yield any results in this topic. > > Thanks, > ~ Tom Cocca > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Cheers, Kevin Williams http://bantamtech.com/ http://almostserio.us/ http://kevwil.com/ From tcocca at bostonlogic.com Wed Mar 19 09:19:42 2008 From: tcocca at bostonlogic.com (Tom Cocca) Date: Wed, 19 Mar 2008 09:19:42 -0400 Subject: [typo] Typo Integration with existing application In-Reply-To: <683a886f0803181142m53fa0b44s6c80882cf11f3262@mail.gmail.com> References: <47DFD8A6.2060204@bostonlogic.com> <683a886f0803181142m53fa0b44s6c80882cf11f3262@mail.gmail.com> Message-ID: <47E112EE.1060607@bostonlogic.com> Thank you Kevin. Unfortunately I already have the whole account system working. I was wondering more if there was like an authentication API for typo? basically to integrate my current login and the Typo login together. If this isn't the best option I would love to hear other options to getting this done. The main goal is to not have to make users log in twice on the one site. Thanks again, ~ Tom Kevin Williams wrote: > Just a brain dump here, my apologies if this is not welcome. > > It sounds like a simple single-sign-on behavior would be useful here. > I'm thinking of OpenID[1] and OAuth[2] here. > I've been meaning to dig deeply into OAuth but haven't gotten around > to it. It seems like Typo having the option of being an OAuth provider > could be cool. In your case, it sounds like you would need your > existing site to be the OAuth provider and Typo to be the OAuth > consumer. Then again, I really don't know anything about OAuth so I > could be waaayy off here. > > I hope that's helpful, but I doubt it. :) > > [1] http://openid.net/ > [2] http://oauth.net/ > > > On Tue, Mar 18, 2008 at 8:58 AM, Tom Cocca wrote: > >> Hello, >> >> I am thinking about using Typo as a blog for my existing site. My >> question is, in my current rails site I already have an authentication >> system, acts_as_authenticated, is there anyway to integrate this login >> with Typo so that users do not have to log into the blog separately? >> >> Has anyone installed the type of a system before? Also, with >> acts_as_authenticated I am also using the authorization plugin to give >> roles to users. >> >> Any ideas? Thank you all for your time and I apologize if you have >> answered this before but my searches didn't yield any results in this topic. >> >> Thanks, >> ~ Tom Cocca >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20080319/1a40e443/attachment.html From tim at digital-achievement.com Thu Mar 20 00:19:52 2008 From: tim at digital-achievement.com (Tim Freund) Date: Wed, 19 Mar 2008 23:19:52 -0500 Subject: [typo] Theme downloads... Message-ID: <47E1E5E8.3030706@digital-achievement.com> Hey Everyone -- I migrated to a new server, and the Typo theme repository (http://proofread.digital-achievement.com) didn't move all that gracefully. I'm in the process of restoring it, but the upload is taking a while. (My DSL upload speed leaves much room for improvement). I hope to get it back up and running before I call it a night, but if it takes a *really* long time, it won't be until tomorrow night that things are back to normal. Just a reminder, if anyone wants to submit patches or new themes, I'm easy to please: just have an interest in the work and send me the output of "htpasswd -ns USERNAME". The username 'tim' is taken, but you're free to pick anything else. ;-) Thanks for your patience, Tim -- Tim Freund http://achievewith.us http://renovatekc.com From bhjackson at gmail.com Thu Mar 20 10:47:38 2008 From: bhjackson at gmail.com (Benjamin Jackson) Date: Thu, 20 Mar 2008 11:47:38 -0300 Subject: [typo] Ticket #1210 - content state model flawed Message-ID: Hi all, Just wanted to email the list as my ticket has not been addressed and I'm finding more holes in the state model... just looked at the publication_pending state, and found this: def change_published_state(content, published) content[:published] = published if published && content.published_at <= Time.now content.state = JustPublished.instance end end def set_published_at(content, new_time) content[:published_at] = new_time Trigger.remove(content, :trigger_method => 'publish!') if new_time.nil? content.state = Draft.instance elsif new_time <= Time.now content.state = JustPublished.instance end end Unless I'm mistaken, these are called when published and pubished_at are set in the model, right? In the metaweblog service, the new post and edit post functions set published and published_at respectively as: article.published = publish article.author = username article.published_at = struct['dateCreated'].to_time.getlocal rescue Time.now article.published = publish article.author = username article.published_at = struct['dateCreated'].to_time.getlocal unless struct['dateCreated'].blank? So in other words, as a client of the API I have to know that unless I set dateCreated to the future when creating a post, and then never set it at all when editing a post, my post will always be marked for publication even though I'm explicitly sending published=false. Please let me know if I'm off here, but I'd love to see this addressed as my ticket has been stale for 2-3 weeks. Thanks, Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20080320/d36eb90b/attachment.html From crazy.bisht at gmail.com Thu Mar 20 11:09:52 2008 From: crazy.bisht at gmail.com (Sanjay Bisht) Date: Thu, 20 Mar 2008 20:39:52 +0530 Subject: [typo] Ticket #1210 - content state model flawed In-Reply-To: References: Message-ID: Yes, this has been a problem with Typo-5.0.2. Even if you set your post to not published, still it will be showing up on ur blog. In the admin interface, the post will show as not-published, but it will be published on your blog. On Thu, Mar 20, 2008 at 8:17 PM, Benjamin Jackson wrote: > Hi all, > Just wanted to email the list as my ticket has not been addressed and I'm > finding more holes in the state model... just looked at the > publication_pending state, and found this: > > def change_published_state(content, published) > content[:published] = published > > if published && content.published_at <= Time.now > content.state = JustPublished.instance > end > end > > def set_published_at(content, new_time) > content[:published_at] = new_time > Trigger.remove(content, :trigger_method => 'publish!') > if new_time.nil? > content.state = Draft.instance > elsif new_time <= Time.now > content.state = JustPublished.instance > end > end > > Unless I'm mistaken, these are called when published and pubished_at are > set in the model, right? > > In the metaweblog service, the new post and edit post functions set > published and published_at respectively as: > > article.published = publish > article.author = username > article.published_at = struct['dateCreated'].to_time.getlocal rescue > Time.now > > > article.published = publish > article.author = username > article.published_at = struct['dateCreated'].to_time.getlocal unless > struct['dateCreated'].blank? > > So in other words, as a client of the API I have to know that unless I set > dateCreated to the future when creating a post, and then never set it at all > when editing a post, my post will always be marked for publication even > though I'm explicitly sending published=false. > > Please let me know if I'm off here, but I'd love to see this addressed as > my ticket has been stale for 2-3 weeks. Thanks, > > Ben > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Cheers! S www.bishtblogs.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20080320/f642876b/attachment.html From mike at carneyweb.com Fri Mar 21 13:15:59 2008 From: mike at carneyweb.com (Michael Carney) Date: Fri, 21 Mar 2008 13:15:59 -0400 Subject: [typo] Problem with feeds in 5.0.3? Message-ID: Hello everyone. I'm a bit of a newbie, so forgive me if this has already been discussed. I just got a typo site up and running. It's at: http://8misbehaving.carneyweb.com It doesn't have any real content yet, but at least it's up and running. In any case, I've run into a problem. If you either click on the "Articles" link in the "Syndicate" sidebar, or the "RSS" feed link in the URL bar, it fails to syndicate the articles with an error. If I go to the logs, here's what I see: rocessing ArticlesController#index (for 144.212.217.24 at 2008-03-21 12:34:52) [GET] Parameters: {"format"=>"rss", "action"=>"index", "controller"=>"articles"} > ActionController::MissingTemplate (Missing layout ../../themes/ > laughingatyou/layouts/default in view path /Users/carney/ > 8Misbehaving/themes/laughingatyou/views:/Users/carney/8Misbeha > ving/app/views): > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:1269:in `assert_existence_of_template_file' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/layout.rb:257:in `render_without_benchmark' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /app/controllers/application.rb:26:in `rescue_action_in_public' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/rescue.rb:125:in `rescue_action' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/rescue.rb:203:in `perform_action_without_caching' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:678:in `perform_action' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/query_cache.rb:8:in `cache' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:76:in `process' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:74:in `synchronize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:74:in `process' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 159:in `process_client' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 158:in `each' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 158:in `process_client' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `initialize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `new' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `initialize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `new' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:282:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:281:in `each' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:281:in `run' > /opt/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/ > mongrel_rails:136:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > command.rb:212:in `run' > /opt/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/ > mongrel_rails:252 > /opt/local/bin/mongrel_rails:16:in `load' > /opt/local/bin/mongrel_rails:16 > > /!\ FAILSAFE /!\ Fri Mar 21 12:34:52 -0400 2008 > Status: 500 Internal Server Error > Missing layout ../../themes/laughingatyou/layouts/default in view > path /Users/carney/8Misbehaving/themes/laughingatyou/views:/Users/ > carney/8Misbehaving/app/views > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:1269:in `assert_existence_of_template_file' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/layout.rb:257:in `render_without_benchmark' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/benchmarking.rb:51:in `render' > /Users/carney/8Misbehaving/app/controllers/application.rb:26:in > `rescue_action_in_public' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/rescue.rb:125:in `rescue_action' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/rescue.rb:203:in `perform_action_without_caching' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:678:in `perform_action' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ > active_record/query_cache.rb:8:in `cache' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/caching.rb:677:in `perform_action' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:524:in `process_without_filters' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/filters.rb:685:in > `process_without_session_management_support' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/session_management.rb:123:in `process' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/base.rb:388:in `process' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:171:in `handle_request' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:115:in `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:126:in `dispatch_cgi' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ > action_controller/dispatcher.rb:9:in `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:76:in `process' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:74:in `synchronize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > rails.rb:74:in `process' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 159:in `process_client' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 158:in `each' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 158:in `process_client' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `initialize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `new' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 285:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `initialize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `new' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: > 268:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:282:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:281:in `each' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > configurator.rb:281:in `run' > /opt/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/ > mongrel_rails:136:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ > command.rb:212:in `run' > /opt/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/ > mongrel_rails:252 > /opt/local/bin/mongrel_rails:16:in `load' > /opt/local/bin/mongrel_rails:16 Does anyone have any idea what I could do to fix this? Thanks for any help you can provide. - Mike. From damm at yazzy.org Fri Mar 21 18:42:31 2008 From: damm at yazzy.org (Scott Likens) Date: Fri, 21 Mar 2008 15:42:31 -0700 Subject: [typo] Problem with feeds in 5.0.3? In-Reply-To: References: Message-ID: <64349E66-3CF8-4A81-8C2B-A4C779DA349C@yazzy.org> Sir, The theme you have selected is missing one of the 'views' for the option you are wanting. If you are the author of this theme you will want to correct it yourself, otherwise you will need to contact the author to have them fix it, or switch themes. The error that you pasted that points this out is, >> ActionController::MissingTemplate (Missing layout ../../themes/ >> laughingatyou/layouts/default in view path /Users/carney/ >> 8Misbehaving/themes/laughingatyou/views:/Users/carney/8Misbeha >> ving/app/views): Hope this helps Scott On Mar 21, 2008, at 10:15 AM, Michael Carney wrote: > Hello everyone. > > I'm a bit of a newbie, so forgive me if this has already been > discussed. > > I just got a typo site up and running. It's at: > > http://8misbehaving.carneyweb.com > > It doesn't have any real content yet, but at least it's up and > running. > > In any case, I've run into a problem. If you either click on the > "Articles" link in the "Syndicate" sidebar, or the "RSS" feed link in > the URL bar, it fails to syndicate the articles with an error. If I go > to the logs, here's what I see: > > rocessing ArticlesController#index (for 144.212.217.24 at 2008-03-21 > 12:34:52) [GET] > Parameters: {"format"=>"rss", "action"=>"index", > "controller"=>"articles"} > > >> ActionController::MissingTemplate (Missing layout ../../themes/ >> laughingatyou/layouts/default in view path /Users/carney/ >> 8Misbehaving/themes/laughingatyou/views:/Users/carney/8Misbeha >> ving/app/views): >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/base.rb:1269:in `assert_existence_of_template_file' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/layout.rb:257:in `render_without_benchmark' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/benchmarking.rb:51:in `render' >> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/benchmarking.rb:51:in `render' >> /app/controllers/application.rb:26:in `rescue_action_in_public' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/rescue.rb:125:in `rescue_action' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/rescue.rb:203:in `perform_action_without_caching' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/caching.rb:678:in `perform_action' >> /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >> active_record/connection_adapters/abstract/query_cache.rb:33:in >> `cache' >> /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >> active_record/query_cache.rb:8:in `cache' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/caching.rb:677:in `perform_action' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/base.rb:524:in `send' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/base.rb:524:in `process_without_filters' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/filters.rb:685:in >> `process_without_session_management_support' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/session_management.rb:123:in `process' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/base.rb:388:in `process' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:171:in `handle_request' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:115:in `dispatch' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:126:in `dispatch_cgi' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:9:in `dispatch' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> rails.rb:76:in `process' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> rails.rb:74:in `synchronize' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> rails.rb:74:in `process' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 159:in `process_client' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 158:in `each' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 158:in `process_client' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 285:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 285:in `initialize' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 285:in `new' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 285:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 268:in `initialize' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 268:in `new' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 268:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> configurator.rb:282:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> configurator.rb:281:in `each' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> configurator.rb:281:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/ >> mongrel_rails:136:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> command.rb:212:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/ >> mongrel_rails:252 >> /opt/local/bin/mongrel_rails:16:in `load' >> /opt/local/bin/mongrel_rails:16 >> >> /!\ FAILSAFE /!\ Fri Mar 21 12:34:52 -0400 2008 >> Status: 500 Internal Server Error >> Missing layout ../../themes/laughingatyou/layouts/default in view >> path /Users/carney/8Misbehaving/themes/laughingatyou/views:/Users/ >> carney/8Misbehaving/app/views >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/base.rb:1269:in `assert_existence_of_template_file' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/layout.rb:257:in `render_without_benchmark' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/benchmarking.rb:51:in `render' >> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/benchmarking.rb:51:in `render' >> /Users/carney/8Misbehaving/app/controllers/application.rb:26:in >> `rescue_action_in_public' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/rescue.rb:125:in `rescue_action' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/rescue.rb:203:in `perform_action_without_caching' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/caching.rb:678:in `perform_action' >> /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >> active_record/connection_adapters/abstract/query_cache.rb:33:in >> `cache' >> /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ >> active_record/query_cache.rb:8:in `cache' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/caching.rb:677:in `perform_action' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/base.rb:524:in `send' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/base.rb:524:in `process_without_filters' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/filters.rb:685:in >> `process_without_session_management_support' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/session_management.rb:123:in `process' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/base.rb:388:in `process' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:171:in `handle_request' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:115:in `dispatch' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:126:in `dispatch_cgi' >> /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ >> action_controller/dispatcher.rb:9:in `dispatch' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> rails.rb:76:in `process' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> rails.rb:74:in `synchronize' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> rails.rb:74:in `process' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 159:in `process_client' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 158:in `each' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 158:in `process_client' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 285:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 285:in `initialize' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 285:in `new' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 285:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 268:in `initialize' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 268:in `new' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb: >> 268:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> configurator.rb:282:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> configurator.rb:281:in `each' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> configurator.rb:281:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/ >> mongrel_rails:136:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/ >> command.rb:212:in `run' >> /opt/local/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/ >> mongrel_rails:252 >> /opt/local/bin/mongrel_rails:16:in `load' >> /opt/local/bin/mongrel_rails:16 > > > Does anyone have any idea what I could do to fix this? > > Thanks for any help you can provide. > > - Mike. > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > !DSPAM:47e3f12e115061804284693! > > From mail_gw_ruby at dev-infra-2.sigma-com.net Sun Mar 23 18:06:48 2008 From: mail_gw_ruby at dev-infra-2.sigma-com.net (Ryan Lewis) Date: Sun, 23 Mar 2008 23:06:48 +0100 Subject: [typo] Release of Typo 5.0.2 In-Reply-To: <67D96AC3-0161-4F5D-A649-5F0FE391376F@de-villamil.com> References: <89C2E9D0-C3C9-4363-8C3E-51D4148C1615@de-villamil.com> <683a886f0801070625r4625d1a8j270f86b22ca2e286@mail.gmail.com> <20dda8a70ce425a08994ba63a979fdcf@ruby-forum.com> <44c79a160801070950y3e2937eemcf7def0c11703b3@mail.gmail.com> <5746d0c0e6e8acfb9e7d0447b3693e54@ruby-forum.com> <67D96AC3-0161-4F5D-A649-5F0FE391376F@de-villamil.com> Message-ID: <74d9e45bb4cde4ae3b3b06cb4c19018f@dev-infra-2.sigma-com.net> Frederic de Villamil wrote: > Le 7 janv. 08 ? 19:21, Rick DeNatale a ?crit : > >> >>> Actually I'm using a fresh installation folder of v5.0.2.. I only >>> modified the database.yml file to point to my old database and then >>> ran >>> the migration. So there shouldn't be any legacy themes or plugins >>> interfering. >> >> Except that the configuration of which sidebars/themes etc is IN the >> database, so you might well have references to things that don't exist >> in the release. > > I plan to fix this in 5.0.3 or 5.0.4 (or 5.1) with the introduction of > a plugin manager that will detect missing plugins and offer to install > them. I actually thought that an error message when you log in would > have been sufficient. > > Best regards, > Fr?d?ric I am having this same problem, but with Typo 5.0.3, using PostgreSQL on top of ./script/server running mongrel in development mode. Via the admin interface, I can very rarely get the Pages plugin to load, but never any of the other plugins. Is there a way to do this without using the drag-and-drop method? The error seen is as follows (same as noted previously):
ActiveRecord::AssociationTypeMismatch (Blog expected, got Blog):
    /vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:150:in
`raise_on_type_mismatch'
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/belongs_to_association.rb:22:in 
`replace'
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations.rb:1009:in 
`blog='
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2117:in 
`send'
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2117:in 
`attributes='
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2116:in 
`each'
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2116:in 
`attributes='
    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1926:in 
`initialize'
    /app/models/sidebar.rb:195:in `initialize'
...
Is there a real fix for this issue? Is the problem even with the ActiveRecord::base.connection.execute call at all? I have tried clearing the database table and trying to re-add the plugins via the admin interface, but it still doesn't work. I admit that I am not very well versed with Rails. I tried to rewrite the this_blog.sidebars.update_all('active_position = null') call to do separate calls for each sidebar, but it didn't work. I'm not sure if it was an issue with my end of not. Any help would be greatly appreciated. Thanks! -RyanL -- Posted via forums.bring.out.ba. From ulf.moehring at mac.com Sun Mar 23 21:18:14 2008 From: ulf.moehring at mac.com (Ulf Moehring) Date: Sun, 23 Mar 2008 18:18:14 -0700 Subject: [typo] How to write typo plugins Message-ID: <9FEEF88A-A37A-44D3-8A81-81F6D4FE8CA4@mac.com> Hi all, I wrote a quick & dirty image gallery plugin for my Typo blog (5.0.2). It seems to run all right but I wrote it like I would write a regular Rails plugin, which means I'm overwriting a few files of the original typo install. So ... I'm wondering if there is a better way to hook up new views to the administration interface or extend existing models. Do you guys have any suggestions? Thanks, Ulf From ruby-forum-incoming at andreas-s.net Tue Mar 25 02:02:27 2008 From: ruby-forum-incoming at andreas-s.net (Ryan Lewis) Date: Tue, 25 Mar 2008 07:02:27 +0100 Subject: [typo] Release of Typo 5.0.2 In-Reply-To: <74d9e45bb4cde4ae3b3b06cb4c19018f@dev-infra-2.sigma-com.net> References: <89C2E9D0-C3C9-4363-8C3E-51D4148C1615@de-villamil.com> <683a886f0801070625r4625d1a8j270f86b22ca2e286@mail.gmail.com> <20dda8a70ce425a08994ba63a979fdcf@ruby-forum.com> <44c79a160801070950y3e2937eemcf7def0c11703b3@mail.gmail.com> <5746d0c0e6e8acfb9e7d0447b3693e54@ruby-forum.com> <67D96AC3-0161-4F5D-A649-5F0FE391376F@de-villamil.com> <74d9e45bb4cde4ae3b3b06cb4c19018f@dev-infra-2.sigma-com.net> Message-ID: <0f94df7e9f1803f7b1e57a7b7596732e@ruby-forum.com> Ryan Lewis wrote: > Frederic de Villamil wrote: >>> database, so you might well have references to things that don't exist >>> in the release. >> >> I plan to fix this in 5.0.3 or 5.0.4 (or 5.1) with the introduction of >> a plugin manager that will detect missing plugins and offer to install >> them. I actually thought that an error message when you log in would >> have been sufficient. >> >> Best regards, >> Fr?d?ric > > I am having this same problem, but with Typo 5.0.3, using PostgreSQL on > top of ./script/server running mongrel in development mode. Via the > admin interface, I can very rarely get the Pages plugin to load, but > never any of the other plugins. Is there a way to do this without using > the drag-and-drop method? The error seen is as follows (same as noted > previously): > >
> ActiveRecord::AssociationTypeMismatch (Blog expected, got Blog):
>     /vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:150:in
> `raise_on_type_mismatch'
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/belongs_to_association.rb:22:in
> `replace'
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations.rb:1009:in
> `blog='
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2117:in
> `send'
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2117:in
> `attributes='
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2116:in
> `each'
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2116:in
> `attributes='
>     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1926:in
> `initialize'
>     /app/models/sidebar.rb:195:in `initialize'
> ...
> 
> > Is there a real fix for this issue? Is the problem even with the > ActiveRecord::base.connection.execute call at all? I have tried > clearing the database table and trying to re-add the plugins via the > admin interface, but it still doesn't work. > > I admit that I am not very well versed with Rails. I tried to rewrite > the this_blog.sidebars.update_all('active_position = null') call to do > separate calls for each sidebar, but it didn't work. I'm not sure if it > was an issue with my end of not. > > Any help would be greatly appreciated. Thanks! > -RyanL > > > -- > Posted via forums.bring.out.ba. Okay, so it seems like the problem is solved. I'm not sure what exactly fixed it, but it was one of the following: - Removed Google Analytics plugin and references to Rubaidh plugin repository. - I had both recent comments and recent posts installed as plugins. The title is the same ("Recent") and I could never select recent_posts sidebar (the 2nd entry). Action taken was I removed the recent comments plugin. - Updated app/controllers/admin/sidebar_controller.rb from the 5.0.3 release to the trunk changes (r1677). The second point may be a bug, which I'd be happy to write up a ticket for if it is. I am doing my testing in cgi/development mode, so it's quite slow, so I'll test that later. -- Posted via http://www.ruby-forum.com/. From bhjackson at gmail.com Fri Mar 28 00:41:01 2008 From: bhjackson at gmail.com (Benjamin Jackson) Date: Fri, 28 Mar 2008 01:41:01 -0300 Subject: [typo] Ticket #1210 - content state model flawed In-Reply-To: References: Message-ID: I hate to be a PITA, but IMHO this is a very severe issue which should be addressed (especially as the ticket has a working, tested patch). The fact that this ticket has sat for a month in trac with no response has me a little bit worried about the future of typo. Hopefully this will be resolved soon. Thanks, Ben On Thu, Mar 20, 2008 at 12:09 PM, Sanjay Bisht wrote: > Yes, this has been a problem with Typo-5.0.2. Even if you set your post to > not published, still it will be showing up on ur blog. In the admin > interface, the post will show as not-published, but it will be published on > your blog. > > > > On Thu, Mar 20, 2008 at 8:17 PM, Benjamin Jackson > wrote: > > > > > > > > Hi all, > > > > > > Just wanted to email the list as my ticket has not been addressed and I'm > finding more holes in the state model... just looked at the > publication_pending state, and found this: > > > > > > > > def change_published_state(content, published) > > content[:published] = published > > > > > > if published && content.published_at <= Time.now > > content.state = JustPublished.instance > > end > > end > > > > > > def set_published_at(content, new_time) > > content[:published_at] = new_time > > Trigger.remove(content, :trigger_method => 'publish!') > > if new_time.nil? > > content.state = Draft.instance > > elsif new_time <= Time.now > > content.state = JustPublished.instance > > end > > end > > > > > > Unless I'm mistaken, these are called when published and pubished_at are > set in the model, right? > > > > > > In the metaweblog service, the new post and edit post functions set > published and published_at respectively as: > > > > > > > > > > article.published = publish > > article.author = username > > article.published_at = struct['dateCreated'].to_time.getlocal rescue > Time.now > > > > > > > > > > article.published = publish > > article.author = username > > article.published_at = struct['dateCreated'].to_time.getlocal unless > struct['dateCreated'].blank? > > > > > > So in other words, as a client of the API I have to know that unless I set > dateCreated to the future when creating a post, and then never set it at all > when editing a post, my post will always be marked for publication even > though I'm explicitly sending published=false. > > > > > > Please let me know if I'm off here, but I'd love to see this addressed as > my ticket has been stale for 2-3 weeks. Thanks, > > > > > > Ben > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > -- > Cheers! > > S > www.bishtblogs.net > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From ruby-forum-incoming at andreas-s.net Mon Mar 31 01:09:48 2008 From: ruby-forum-incoming at andreas-s.net (Lionel Drong) Date: Mon, 31 Mar 2008 07:09:48 +0200 Subject: [typo] Template is missing Missing layout ../../themes/stand Message-ID: <0e264c5463df12e096432d682d488dec@ruby-forum.com> I installed Typo 5.0.3 , the login ,signup and admin function are all pretty well and work ! but why I go to my blog ,it shows Template is missing Missing layout ../../themes/standard_issue/layouts/default in view path J:/ruby/workspace/type5.0.3/themes/standard_issue/views:J:/ruby/workspace/type5.0.3/app/views Anyone could help me? -- Posted via http://www.ruby-forum.com/. From frederic at de-villamil.com Mon Mar 31 04:10:41 2008 From: frederic at de-villamil.com (Frederic de Villamil) Date: Mon, 31 Mar 2008 10:10:41 +0200 Subject: [typo] Template is missing Missing layout ../../themes/stand In-Reply-To: <0e264c5463df12e096432d682d488dec@ruby-forum.com> References: <0e264c5463df12e096432d682d488dec@ruby-forum.com> Message-ID: <6713748B-4943-4CA4-877C-18778066D97F@de-villamil.com> Hello, I guess this is because you're using a theme from a previous typo release which has .rhtml files. Just rename your themes files to .html.erb, restart your typo and it will be fine. Best regards, Fr?d?ric Le 31 mars 08 ? 07:09, Lionel Drong a ?crit : > I installed Typo 5.0.3 , the login ,signup and admin function are all > pretty well and work ! > > but why I go to my blog ,it shows > > Template is missing > > Missing layout ../../themes/standard_issue/layouts/default in view > path > J:/ruby/workspace/type5.0.3/themes/standard_issue/views:J:/ruby/ > workspace/type5.0.3/app/views > > Anyone could help me? > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org