From aja at si.on.ca Fri Aug 1 13:40:34 2008 From: aja at si.on.ca (Anton J Aylward) Date: Fri, 01 Aug 2008 13:40:34 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <488F4CD2.3080906@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> Message-ID: <48934A92.4080700@si.on.ca> Anton J Aylward said the following on 29/07/08 01:01 PM: > Anton J Aylward said the following on 29/07/08 10:42 AM: >> A manual "rake db:migrate" completes OK. >> > > But it doesn't like my theme! > (dual sidebar -- > http://blog.emarm.com/articles/2006/08/09/multiple-sidebars-in-typo) > > I thought that if I logged in as admin I could change the theme, but I > get a 500 on that. > > NoMethodError (undefined method `current_user=' for > #): > /app/controllers/accounts_controller.rb:8:in `login' I've tried doing a clean install of a new 'site' rather than an upgrade and I still get this error. Am I supposed to have some other gem or plugin installed to deal with the ID/authentication? I also get ActionView::TemplateError (Couldn't find template file for /sidebars/sidebar/_content in ["~/typo5/themes/typographic/views", "/~typo5/app/views"]) on line #27 of themes/typographic/layouts/default.html.erb: 24: <%= render :partial => 'shared/search' %> 25: 26: 27: <%= render_sidebars %> 28: 29: 30:
Which I find difficult to understand. I though 'typographic' was the default layout and so would be fully supplied. Alternatively I don't understand why the engine isn't looking and finding ~/typo5/app/view/sidebars Perhaps because its 'sidebar' rather than than 'sidebars'? $ ls typo5/app/views/ accounts/ articles/ layouts/ notification_mailer/ shared/ theme/ admin/ comments/ live/ settings/ sidebar/ xml/ $ ls typo5/app/views/sidebar/ _row.html.erb _sidebar.html.erb display_plugins.html.erb show.html.erb No, we need an extra level in there. How come this happens to me? How come I haven't seen mention of this in the bug reports? -- Warning: Do not attempt to stop blade with hands. From synergism at gmail.com Fri Aug 1 13:58:33 2008 From: synergism at gmail.com (Ben Armstrong) Date: Fri, 1 Aug 2008 14:58:33 -0300 Subject: [typo] Typo site somewhat hosed, need tips to recover Message-ID: <3f1ae6620808011058p394fb30fv8bb1c76fdb628297@mail.gmail.com> My typo site had not been updated in a while, but the host it runs on has undergone upgrades recently. Some time over the past month or two, suddenly I couldn't access vital admin areas (to write a post, review/confirm feedback, etc.) Being somewhat impatient, without investigating the cause of the errors, I upgraded in-place using svn update and rake db:migrate. Things seemed to go well. The blog itself looks fine, but I still can't access the same parts of the admin interface. Here's a sample error after upgrading. How do I proceed from here to get my blog functioning properly again? Processing ContentController#new (for 71.7.237.23 at 2008-08-01 09:14:07) [GET] Session ID: 001b43dc4ab82bfc495e757edeed72d3 Parameters: {"action"=>"new", "controller"=>"admin/content"} NoMethodError (undefined method `[]' for #): /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/string/access.rb:53:in `last' /lib/stateful.rb:21:in `method_missing' (__DELEGATION__):2:in `__send__' (__DELEGATION__):2:in `published?' /app/models/article.rb:301:in `allow_comments=' /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/object/misc.rb:28:in `returning' /app/models/article.rb:299:in `allow_comments=' /app/controllers/admin/content_controller.rb:214:in `get_or_build_article' /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/object/misc.rb:28:in `returning' /app/controllers/admin/content_controller.rb:213:in `get_or_build_article' /app/controllers/admin/content_controller.rb:145:in `new_or_edit' /app/controllers/admin/content_controller.rb:55:in `new' /vendor/rails/actionpack/lib/action_controller/base.rb:1159:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:1159:in `perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:699:in `call_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:727:in `run_before_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:666:in `call' /vendor/rails/actionpack/lib/action_controller/filters.rb:666:in `proxy_before_and_after_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:483:in `call' /vendor/rails/actionpack/lib/action_controller/filters.rb:483:in `call' /vendor/rails/actionpack/lib/action_controller/filters.rb:724:in `run_before_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:697:in `call_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:691:in `perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in `perform_action_without_caching' /vendor/rails/actionpack/lib/action_controller/caching.rb:678:in `perform_action' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache' /vendor/rails/actionpack/lib/action_controller/caching.rb:677:in `perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:687:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_management.rb:123:in `process' /vendor/rails/actionpack/lib/action_controller/base.rb:388:in `process' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in `handle_request' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' /vendor/rails/railties/lib/fcgi_handler.rb:101:in `process_request' /vendor/rails/railties/lib/fcgi_handler.rb:149:in `with_signal_handler' /vendor/rails/railties/lib/fcgi_handler.rb:99:in `process_request' /vendor/rails/railties/lib/fcgi_handler.rb:77:in `process_each_request' /usr/lib/ruby/1.8/fcgi.rb:612:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:609:in `each' /usr/lib/ruby/1.8/fcgi.rb:609:in `each_cgi' /vendor/rails/railties/lib/fcgi_handler.rb:76:in `process_each_request' /vendor/rails/railties/lib/fcgi_handler.rb:50:in `process!' /vendor/rails/railties/lib/fcgi_handler.rb:24:in `process!' /public/dispatch.fcgi:24 Rendering /var/www/vir/syn.theti.ca/typo/public/500.html (500 Internal Server Error) Thanks, Ben From synergism at gmail.com Fri Aug 1 13:58:33 2008 From: synergism at gmail.com (Ben Armstrong) Date: Fri, 1 Aug 2008 14:58:33 -0300 Subject: [typo] Typo site somewhat hosed, need tips to recover Message-ID: <3f1ae6620808011058p394fb30fv8bb1c76fdb628297@mail.gmail.com> My typo site had not been updated in a while, but the host it runs on has undergone upgrades recently. Some time over the past month or two, suddenly I couldn't access vital admin areas (to write a post, review/confirm feedback, etc.) Being somewhat impatient, without investigating the cause of the errors, I upgraded in-place using svn update and rake db:migrate. Things seemed to go well. The blog itself looks fine, but I still can't access the same parts of the admin interface. Here's a sample error after upgrading. How do I proceed from here to get my blog functioning properly again? Processing ContentController#new (for 71.7.237.23 at 2008-08-01 09:14:07) [GET] Session ID: 001b43dc4ab82bfc495e757edeed72d3 Parameters: {"action"=>"new", "controller"=>"admin/content"} NoMethodError (undefined method `[]' for #): /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/string/access.rb:53:in `last' /lib/stateful.rb:21:in `method_missing' (__DELEGATION__):2:in `__send__' (__DELEGATION__):2:in `published?' /app/models/article.rb:301:in `allow_comments=' /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/object/misc.rb:28:in `returning' /app/models/article.rb:299:in `allow_comments=' /app/controllers/admin/content_controller.rb:214:in `get_or_build_article' /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/object/misc.rb:28:in `returning' /app/controllers/admin/content_controller.rb:213:in `get_or_build_article' /app/controllers/admin/content_controller.rb:145:in `new_or_edit' /app/controllers/admin/content_controller.rb:55:in `new' /vendor/rails/actionpack/lib/action_controller/base.rb:1159:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:1159:in `perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:699:in `call_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:727:in `run_before_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:666:in `call' /vendor/rails/actionpack/lib/action_controller/filters.rb:666:in `proxy_before_and_after_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:483:in `call' /vendor/rails/actionpack/lib/action_controller/filters.rb:483:in `call' /vendor/rails/actionpack/lib/action_controller/filters.rb:724:in `run_before_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:697:in `call_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:691:in `perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in `perform_action_without_caching' /vendor/rails/actionpack/lib/action_controller/caching.rb:678:in `perform_action' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache' /vendor/rails/actionpack/lib/action_controller/caching.rb:677:in `perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:687:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_management.rb:123:in `process' /vendor/rails/actionpack/lib/action_controller/base.rb:388:in `process' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in `handle_request' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch' /vendor/rails/railties/lib/fcgi_handler.rb:101:in `process_request' /vendor/rails/railties/lib/fcgi_handler.rb:149:in `with_signal_handler' /vendor/rails/railties/lib/fcgi_handler.rb:99:in `process_request' /vendor/rails/railties/lib/fcgi_handler.rb:77:in `process_each_request' /usr/lib/ruby/1.8/fcgi.rb:612:in `each_cgi' /usr/lib/ruby/1.8/fcgi.rb:609:in `each' /usr/lib/ruby/1.8/fcgi.rb:609:in `each_cgi' /vendor/rails/railties/lib/fcgi_handler.rb:76:in `process_each_request' /vendor/rails/railties/lib/fcgi_handler.rb:50:in `process!' /vendor/rails/railties/lib/fcgi_handler.rb:24:in `process!' /public/dispatch.fcgi:24 Rendering /var/www/vir/syn.theti.ca/typo/public/500.html (500 Internal Server Error) Thanks, Ben From synergism at gmail.com Sat Aug 2 09:02:34 2008 From: synergism at gmail.com (Ben Armstrong) Date: Sat, 2 Aug 2008 10:02:34 -0300 Subject: [typo] [resolved] Typo site somewhat hosed, need tips to recover In-Reply-To: <3f1ae6620808011058p394fb30fv8bb1c76fdb628297@mail.gmail.com> References: <3f1ae6620808011058p394fb30fv8bb1c76fdb628297@mail.gmail.com> Message-ID: <3f1ae6620808020602v42bde546xa848e43032eafa39@mail.gmail.com> sprewell helped me fix this on irc. A downgrade of Ruby from 1.8.7 to 1.8.6 fixed it. Thanks! Ben From synergism at gmail.com Sat Aug 2 09:06:34 2008 From: synergism at gmail.com (Ben Armstrong) Date: Sat, 2 Aug 2008 10:06:34 -0300 Subject: [typo] Preview of Textile-filtered articles? Message-ID: <3f1ae6620808020606t1c89ba96jfe179fe961f9a38@mail.gmail.com> Before my upgrade, I could write an article in Textile and see it rendered in the automatically generated preview. That no longer appears to be the case, either with the rich or simple editors. How do I verify the formatting will be correct before posting with the Textile filter turned on? Thanks, Ben From matijs at matijs.net Sun Aug 3 20:37:08 2008 From: matijs at matijs.net (Matijs van Zuijlen) Date: Mon, 04 Aug 2008 08:37:08 +0800 Subject: [typo] Redmine Account Message-ID: <48964F34.5000800@matijs.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've been trying to get Typo's redmine to email me instructions for resetting the password for the trac account that got converted to a redmine account and now won't accept my password. Redmine obediently tells me it sent an email, but no email actually arrives. I tried registering again, but then redmine complains there's already a user with my email address. Any suggestions? Regards, Matijs. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFIlk8sh3TgaXYDPEERAt3mAJ4kaWBiRoaaQ76siQLmRgEzfTJ4EgCfXt2o kR3fC8+Wo0aqa10eFVEQ8eI= =9dem -----END PGP SIGNATURE----- From anton at si.on.ca Mon Aug 4 15:24:43 2008 From: anton at si.on.ca (Anton Aylward) Date: Mon, 04 Aug 2008 15:24:43 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <48934A92.4080700@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> Message-ID: <4897577B.6040006@si.on.ca> So, in an effort to compare the upgrade with a virgin install, I'm trying to install typo on my laptop. I start with $ sudo gem install typo and I get Password: Building native extensions. This could take a while... ERROR: Error installing typo: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb install typo checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... yes checking for mysql_query() in -lmysqlclient... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Oh! Well I do have /usr/lib/mysqlclient ... # rpm -q -f /usr/lib/libmysqlclient.so libmysql15-5.0.45-8.2mdv2008.0 Now it happens that is sripped. I don't know why. So I gave up o that and tried installing from the .tgz I unpacked ok, and then [anton at laptop Ruby]$ ./typo-5.1.2/bin/typo install \ typo-5.1.2/db/emerge \ database=sqlite3 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- rails-installer (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from ./typo-5.1.2/bin/typo:4 Hmm. So I try [anton at laptop Ruby]$ find /usr/lib/ruby /home/anton \ -name 'rails-installer*' -print which returns nothing. Yes, I did a 'sudo gem update' before this. -- "I am always ready to learn, although I do not always like being taught". -- Winston Churchill From ruby-forum-incoming at andreas-s.net Mon Aug 4 20:25:50 2008 From: ruby-forum-incoming at andreas-s.net (Geoffrey Sisson) Date: Tue, 5 Aug 2008 02:25:50 +0200 Subject: [typo] Which versions of Ruby work with Typo 5.1.2? Message-ID: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> Does anyone have Typo running with a version of Ruby more recent than 1.8.6-p114? This version has known vulnerabilities, as reported here: http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/ I've tried with all the most recent versions of Ruby 1.8 -- 1.8.7-p22, 1.8.6-p230 and 1.8.5-p231 -- but these all seem to cause Typo to crash in one place or another (the crash with 1.8.7-p22 is documented as Issue 1243 [1]). I'm using Rails 2.0.2 and mysql gem 2.7. I'd really like to use Typo, but am reluctant to do so if it can only be run insecurely. [1] http://typosphere.org/projects/typo/issues -- Posted via http://www.ruby-forum.com/. From matijs at matijs.net Mon Aug 4 20:55:24 2008 From: matijs at matijs.net (Matijs van Zuijlen) Date: Tue, 05 Aug 2008 08:55:24 +0800 Subject: [typo] Problems with upgrade In-Reply-To: <4897577B.6040006@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> Message-ID: <4897A4FC.4030004@matijs.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Anton, Anton Aylward wrote: > So, in an effort to compare the upgrade with a virgin install, I'm > trying to install typo on my laptop. What OS are you running on your laptop. I'm guessing Linux? Which distribution? > I start with > > $ sudo gem install typo > > and I get > > [...] > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. What are those details in mkmf.log? > Oh! > Well I do have /usr/lib/mysqlclient ... > # rpm -q -f /usr/lib/libmysqlclient.so > libmysql15-5.0.45-8.2mdv2008.0 > Now it happens that is sripped. I don't know why. Ah, an rpm based distro. Probably you need to install the -dev package for libmysql as well. > So I gave up o that and tried installing from the .tgz > I unpacked ok, and then > > [...] > `gem_original_require': no such file to load -- rails-installer (LoadError) > from > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > from ./typo-5.1.2/bin/typo:4 > > > Hmm. So I try > > [anton at laptop Ruby]$ find /usr/lib/ruby /home/anton \ > -name 'rails-installer*' -print > > which returns nothing. The typo gem requires 'rails-app-installer', I'm guessing you need to install that gem. Regards, Matijs. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFIl6T2h3TgaXYDPEERAuV6AKCQ2dRVJXUBsnJZ96HaNDIZCeeulwCePw90 qZL/rCDCYydwscgrP28twCE= =opYv -----END PGP SIGNATURE----- From kevwil at gmail.com Tue Aug 5 01:09:24 2008 From: kevwil at gmail.com (Kevin Williams) Date: Mon, 4 Aug 2008 23:09:24 -0600 Subject: [typo] Which versions of Ruby work with Typo 5.1.2? In-Reply-To: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> References: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> Message-ID: <683a886f0808042209q35f3a00ct5c38e3208ae978fe@mail.gmail.com> I'd like to know as well. I'm running 1.8.6p114. I haven't heard of any newer versions being stable. On Mon, Aug 4, 2008 at 6:25 PM, Geoffrey Sisson wrote: > Does anyone have Typo running with a version of Ruby more recent than > 1.8.6-p114? This version has known vulnerabilities, as reported here: > > http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/ > > I've tried with all the most recent versions of Ruby 1.8 -- 1.8.7-p22, > 1.8.6-p230 and 1.8.5-p231 -- but these all seem to cause Typo to crash > in one place or another (the crash with 1.8.7-p22 is documented as Issue > 1243 [1]). I'm using Rails 2.0.2 and mysql gem 2.7. > > I'd really like to use Typo, but am reluctant to do so if it can only be > run insecurely. > > [1] http://typosphere.org/projects/typo/issues > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From cyril.mougel at gmail.com Tue Aug 5 02:01:08 2008 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Tue, 5 Aug 2008 08:01:08 +0200 Subject: [typo] Which versions of Ruby work with Typo 5.1.2? In-Reply-To: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> References: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> Message-ID: On Tue, Aug 5, 2008 at 2:25 AM, Geoffrey Sisson wrote: > Does anyone have Typo running with a version of Ruby more recent than > 1.8.6-p114? This version has known vulnerabilities, as reported here: > > http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/ > > I've tried with all the most recent versions of Ruby 1.8 -- 1.8.7-p22, > 1.8.6-p230 and 1.8.5-p231 -- but these all seem to cause Typo to crash > in one place or another (the crash with 1.8.7-p22 is documented as Issue > 1243 [1]). I'm using Rails 2.0.2 and mysql gem 2.7. > > I'd really like to use Typo, but am reluctant to do so if it can only be > run insecurely. I use a ruby 1.8.6-p230 with Typo 5.1.2 and I haven't any problem. All works -- Cyril Mougel http://blog.shingara.fr From ruby-forum-incoming at andreas-s.net Tue Aug 5 05:05:32 2008 From: ruby-forum-incoming at andreas-s.net (Geoffrey Sisson) Date: Tue, 5 Aug 2008 11:05:32 +0200 Subject: [typo] Which versions of Ruby work with Typo 5.1.2? In-Reply-To: References: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> Message-ID: <5e0e1b0dfd579228be7d7403ea7dd584@ruby-forum.com> Cyril Mougel wrote: > I use a ruby 1.8.6-p230 with Typo 5.1.2 and I haven't any problem. All > works Cyril, are you using Rails 2.0.2? When I use Ruby 1.8.6-p230 and Rails 2.0.2 and then create a new instance of Typo, the resulting dispatch.cgi crashes immediately upon invocation: $ ./dispatch.cgi *** glibc detected *** ruby: free(): invalid pointer: 0x085510d0 *** ======= Backtrace: ========= /lib/i686/cmov/libc.so.6[0xb7d6f4f4] /lib/i686/cmov/libc.so.6(cfree+0x96)[0xb7d716f6] /usr/lib/libruby.so.1.8[0xb7f0dc4c] [snip] I'm running on Debian GNU/Linux 4.0r4 (etch), FWIW. -- Posted via http://www.ruby-forum.com/. From aja at si.on.ca Tue Aug 5 08:03:20 2008 From: aja at si.on.ca (Anton J Aylward) Date: Tue, 05 Aug 2008 08:03:20 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <4897A4FC.4030004@matijs.net> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> Message-ID: <48984188.1080008@si.on.ca> Matijs van Zuijlen said the following on 04/08/08 08:55 PM: > Hi Anton, Hi, and thanks. No, realy, I'm grateful someone finally replied. I was getting frustrated. (Still am actually!) This was my 4th or fifth post about problems with this version of Typo. I'd tried upgrading my site first - MISTAKE! - and have a number of posts about that. Perhaps you'd care to look back over them and comment on that content as the experience was a bit different from this attempt to install Typo on my laptop > Anton Aylward wrote: >> So, in an effort to compare the upgrade with a virgin install, I'm >> trying to install typo on my laptop. > > What OS are you running on your laptop. I'm guessing Linux? Which > distribution? Mandriva 2008.0 >> I start with > >> $ sudo gem install typo > >> and I get > >> [...] >> Could not create Makefile due to some reason, probably lack of >> necessary libraries and/or headers. Check the mkmf.log file for more >> details. You may need configuration options. > > What are those details in mkmf.log? See later >> Oh! >> Well I do have /usr/lib/mysqlclient ... >> # rpm -q -f /usr/lib/libmysqlclient.so >> libmysql15-5.0.45-8.2mdv2008.0 >> Now it happens that is sripped. I don't know why. > > Ah, an rpm based distro. Probably you need to install the -dev package > for libmysql as well. I really don't like this. Why should I have to install an application development package just to install Typo? Will I have to install a compiler and possibly YACC/LEX as well. Please guys, this is a bit of a heavy load. So I load up gcc etc and it turns out that the error in the log file is conftest.c: In function ?t?: conftest.c:3: error: ?mysql_query? undeclared (first use in this function) Is this set of dependencies (on the compiler etc) declared anywhere? Why do I have to go though this if I only want to use Typo with sqlite3 >> So I gave up o that and tried installing from the .tgz >> I unpacked ok, and then > >> [...] >> `gem_original_require': no such file to load -- rails-installer (LoadError) >> from >> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' >> from ./typo-5.1.2/bin/typo:4 > > >> Hmm. So I try > >> [anton at laptop Ruby]$ find /usr/lib/ruby /home/anton \ >> -name 'rails-installer*' -print > >> which returns nothing. > > The typo gem requires 'rails-app-installer', I'm guessing you need to > install that gem. Is that dependency declared anywhere? Oh, right, let me guess, if I'd installed with the GEM it would have dragged that dependency in. HA-BLOODY-HA-HA My "other" blog is Wordpress & I didn't have this problem upgrading that. Originally preferred Typo to Wordpress, now I'm having my doubts. I'm really disappointed in this "upgrade". When I started using Typo two years ago (26/08/06 08:54 PM) I had none of these problems, neither on my laptop nor on Dreamhost (once they got Ruby 1.8.4 up). It was the slickness and ease of installation & configuration that impressed me back them. PostScript: I just installed 'libmysql-devel' using urpmi, the normal and recommended method, and 'gem install typo' still fails. I seriously think you need to reconsider what it takes for an ordinary non-development user to install Typo. > Regards, > Matijs. -- You can either take action, or you can hang back and hope for a miracle. Miracles are great, but they are so unpredictable. --Peter F. Drucker From cyril.mougel at gmail.com Tue Aug 5 09:07:27 2008 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Tue, 5 Aug 2008 15:07:27 +0200 Subject: [typo] Which versions of Ruby work with Typo 5.1.2? In-Reply-To: <5e0e1b0dfd579228be7d7403ea7dd584@ruby-forum.com> References: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> <5e0e1b0dfd579228be7d7403ea7dd584@ruby-forum.com> Message-ID: On Tue, Aug 5, 2008 at 11:05 AM, Geoffrey Sisson wrote: > Cyril Mougel wrote: > >> I use a ruby 1.8.6-p230 with Typo 5.1.2 and I haven't any problem. All >> works > > Cyril, are you using Rails 2.0.2? Yes, it's with rails freeze in Typo. > > When I use Ruby 1.8.6-p230 and Rails 2.0.2 and then create a new > instance of Typo, the resulting dispatch.cgi crashes immediately upon > invocation: > > $ ./dispatch.cgi > *** glibc detected *** ruby: free(): invalid pointer: 0x085510d0 *** > ======= Backtrace: ========= > /lib/i686/cmov/libc.so.6[0xb7d6f4f4] > /lib/i686/cmov/libc.so.6(cfree+0x96)[0xb7d716f6] > /usr/lib/libruby.so.1.8[0xb7f0dc4c] > [snip] > > > I'm running on Debian GNU/Linux 4.0r4 (etch), FWIW. I use mongrel and I am a Gentoo. -- Cyril Mougel http://blog.shingara.fr From matijs at matijs.net Wed Aug 6 10:50:23 2008 From: matijs at matijs.net (Matijs van Zuijlen) Date: Wed, 06 Aug 2008 22:50:23 +0800 Subject: [typo] Which versions of Ruby work with Typo 5.1.2? In-Reply-To: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> References: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> Message-ID: <4899BA2F.7020009@matijs.net> Geoffrey Sisson wrote: > Does anyone have Typo running with a version of Ruby more recent than > 1.8.6-p114? Rails 2.0.2 does not work with Ruby 1.8.7. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484351 for details. There's a git repository with backported fixes from Rails 2.1 here: http://git.debian.org/?p=users/terceiro-guest/rails.git;a=shortlog;h=refs/heads/2.0.2-ruby1.8.7-compat I used that source to recreate some of the gems (I don't really understand Rails' build system), and now have working 2.0.2 gems with ruby 1.8.7. Regards, Matijs. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From matijs at matijs.net Wed Aug 6 11:07:31 2008 From: matijs at matijs.net (Matijs van Zuijlen) Date: Wed, 06 Aug 2008 23:07:31 +0800 Subject: [typo] missing posts after database restore In-Reply-To: References: Message-ID: <4899BE33.2070203@matijs.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Bill, Bill McGonigle wrote: > Until I can get the 5.1 series to run, I'm trying to retreat to 5.0.2, > which had been working for me. Did you do a rake db:migrate while trying to get 5.1 to work? > I dropped my old db and removed the > install directory, created new of each, installed using the > gem/installer, stop mongrel, and get a clean restore of the database (at > least no complaints) and I can see all of the data in both the yaml file Which yaml file are you talking about here? > and the database itself, but typo says, "No posts found..." on the > blog's page and the admin interface agrees about no posts. Usernames, > passwords, categories, files, all work. > > [...] > > Before I attempted an upgrade I remove the sidebar plug-ins. > > Any thoughts on how to convince typo that articles are there or where to > look next? Did you point the db/database.yml to the right database? > Thanks, > -Bill Regards, Matijs. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFImb4zh3TgaXYDPEERAgDKAJ0YFyV6EtJEPIAATZq8yhWhw34EhACfY7pX wk5UgKDnQUn/8nY4mTWVBxQ= =UWVw -----END PGP SIGNATURE----- From dag at sonsorol.org Wed Aug 6 13:23:03 2008 From: dag at sonsorol.org (Chris Dagdigian) Date: Wed, 6 Aug 2008 13:23:03 -0400 Subject: [typo] strange handling of tags that use the '.' character Message-ID: <0307991A-9DCC-4C49-8BEE-306211380C2E@sonsorol.org> Hi folks, I've been running http://gridengine.info off of Typo for a while now, thanks for a nice package! Because my site tracks a particular open source software product I sometimes need to put version numbers into article tags for easy characterizing. Prior to the most recent Typo upgrade, tags like "6.3" did not work at all, something about Rails or Typo can't handle the "." character. Now running the latest Typo I see something odd ... Tags that use multiple "." characters get remapped to "-": 6.2.0 becomes a tag called "6-2-0" on Typo But a tag named "6.2" is left unmodified, with no funky rewriting. As a test that proves the issue I added tags for "6.2.0" and "6.2" to the following post: http://gridengine.info/2008/08/06/t-shirt-contest ... the "6.2.0" tag is handled via changing "." to "-" but the "6.2" tag is left unchanged and does not work. Is the use of "." chars in tags an issue with Rails in general or should I write up an Issue against the Typo issue tracker? -Chris From frederic at de-villamil.com Wed Aug 6 15:37:57 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Wed, 6 Aug 2008 21:37:57 +0200 Subject: [typo] How to view associated resources/attachments In-Reply-To: <88c6ef68e5dac8ea37482340021a1e0a@ruby-forum.com> References: <88c6ef68e5dac8ea37482340021a1e0a@ruby-forum.com> Message-ID: <069502E0-773B-4A0C-BD59-B6AEF4419DE6@de-villamil.com> Le 30 juil. 08 ? 20:11, Tim Prentis a ?crit : > My environment is Rails 2.0.2, TYPO 5.1.1. running at RailsPlayground > using the Victor Persson's Dirtylicious theme > > Can someone steer me in the correct direction? I can upload > files/attachments and see them in the admin "manage uploads" feature. > > I can also associate uploads with articles when I edit articles(i.e. > posts). > > The problem: I cannot figure out how to make these 'uploads' visible > as > attachments with the articles(i.e. posts) by simply using the TYPO > administration features. > > Do I need to modify the default layout or one of the views? Any ideas > are greatly appreciated. > Hello, first, sorry for not replying faster, I was in holliday and got internet access only tonight. Trying to answer the pile of mails that's waiting for me. The way attachments was designed on Typo has always been a mistery to me, and I didn't want to break it ? yet ? because it actually had a purpose. ? uploading via admin/content/new attaches files to the post, but they will only be displayed in the rss / atom feed. This is intended to be used for podcasts. ? uploading via admin/resources/new does not attach files to a post. To you them, you need to c/p the attachment url and do a link / object / whatever. Pictures uploaded this way can be found with the images management button of the FCKEditor. To display articles from your theme, do in your theme somthing like : @article.ressources.each |foo| do link_to foo.filename, "#{this_blog.default_url}/#{foo.filename}" end Cheers, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From frederic at de-villamil.com Wed Aug 6 15:40:50 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Wed, 6 Aug 2008 21:40:50 +0200 Subject: [typo] missing posts after database restore In-Reply-To: References: Message-ID: <4FA6E4D1-4BD4-4CFC-95C5-C3E8864E6162@de-villamil.com> Le 31 juil. 08 ? 09:24, Bill McGonigle a ?crit : > Hi, > > Until I can get the 5.1 series to run, I'm trying to retreat to > 5.0.2, which had been working for me. I dropped my old db and > removed the install directory, created new of each, installed using > the gem/installer, stop mongrel, and get a clean restore of the > database (at least no complaints) and I can see all of the data in > both the yaml file and the database itself, but typo says, "No posts > found..." on the blog's page and the admin interface agrees about no > posts. Usernames, passwords, categories, files, all work. > > The only logged message is: > > Processing ArticlesController#index (for 172.16.134.244 at > 2008-07-31 03:00:40) [GET] > Session ID: 807e93eef31ec4b2fabcfcffe3c4f654 > Parameters: {"action"=>"index", "controller"=>"articles"} > Filter chain halted as > [# 0xb69a8c2c @actions=[:index, :read, :show, :archives, :view_page]>] > rendered_or_redirected. > Filter chain halted as > [# 0xb69a8a24 @filter=# actionpack/lib/action_controller/filters.rb:657>>] did_not_yield. > Completed in 0.00263 (379 reqs/sec) | Rendering: 0.00021 (7%) | DB: > 0.00000 (0%) | 200 OK [http://example.com/bill/blog] > > Before I attempted an upgrade I remove the sidebar plug-ins. > > Any thoughts on how to convince typo that articles are there or > where to look next? > Hello, first, sorry for not replying faster, I was in holliday and got internet access only tonight. Trying to answer the pile of mails that's waiting for me. Can you use mysql / pgsql client and do select * from contents; What is the output ? Can you also use ./script/console Article.count(:all) Thx Cheers, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From frederic at de-villamil.com Wed Aug 6 15:44:28 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Wed, 6 Aug 2008 21:44:28 +0200 Subject: [typo] Preview of Textile-filtered articles? In-Reply-To: <3f1ae6620808020606t1c89ba96jfe179fe961f9a38@mail.gmail.com> References: <3f1ae6620808020606t1c89ba96jfe179fe961f9a38@mail.gmail.com> Message-ID: <4C8C8467-4694-4055-AA31-D35CA5C5CDAD@de-villamil.com> Le 2 ao?t 08 ? 15:06, Ben Armstrong a ?crit : > Before my upgrade, I could write an article in Textile and see it > rendered in the automatically generated preview. That no longer > appears to be the case, either with the rich or simple editors. How > do I verify the formatting will be correct before posting with the > Textile filter turned on? > > Thanks, > Ben Hello, first, sorry for not replying faster, I was in holliday and got internet access only tonight. Trying to answer the pile of mails that's waiting for me. I've removed the live preview from 5.1.x for many reasons, mostly : ? uses the default azure stylesheet, which is not real live preview. ? hassles server with constant ajax requests that does constant mysql queries... made Typo the reputation of being a bloatware for ages. It will be back as a fully javascript feature later, or something like this, still need to think about it. Cheers, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From frederic at de-villamil.com Wed Aug 6 15:51:29 2008 From: frederic at de-villamil.com (=?WINDOWS-1252?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Wed, 6 Aug 2008 21:51:29 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <48984188.1080008@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> Message-ID: <94CBCC90-8D21-4901-8ED7-7E92EBFC6EC1@de-villamil.com> Le 5 ao?t 08 ? 14:03, Anton J Aylward a ?crit : > Matijs van Zuijlen said the following on 04/08/08 08:55 PM: >> Hi Anton, > > Hi, and thanks. No, realy, I'm grateful someone finally replied. I > was > getting frustrated. (Still am actually!) > > This was my 4th or fifth post about problems with this version of > Typo. > I'd tried upgrading my site first - MISTAKE! - and have a number of > posts about that. Perhaps you'd care to look back over them and > comment > on that content as the experience was a bit different from this > attempt > to install Typo on my laptop > > >> Anton Aylward wrote: >>> So, in an effort to compare the upgrade with a virgin install, I'm >>> trying to install typo on my laptop. >> What OS are you running on your laptop. I'm guessing Linux? Which >> distribution? > > Mandriva 2008.0 > >>> I start with >>> $ sudo gem install typo >>> and I get >>> [...] >>> Could not create Makefile due to some reason, probably lack of >>> necessary libraries and/or headers. Check the mkmf.log file for >>> more >>> details. You may need configuration options. >> What are those details in mkmf.log? > > See later > >>> Oh! >>> Well I do have /usr/lib/mysqlclient ... >>> # rpm -q -f /usr/lib/libmysqlclient.so >>> libmysql15-5.0.45-8.2mdv2008.0 >>> Now it happens that is sripped. I don't know why. >> Ah, an rpm based distro. Probably you need to install the -dev >> package >> for libmysql as well. > > I really don't like this. > Why should I have to install an application development package just > to > install Typo? Will I have to install a compiler and possibly YACC/LEX > as well. > > Please guys, this is a bit of a heavy load. > > So I load up gcc etc and it turns out that the error in the log file > is > > > conftest.c: In function ?t?: > conftest.c:3: error: ?mysql_query? undeclared (first use in this > function) > > > > Is this set of dependencies (on the compiler etc) declared anywhere? > Why do I have to go though this if I only want to use Typo with > sqlite3 > > > >>> So I gave up o that and tried installing from the .tgz >>> I unpacked ok, and then >>> [...] >>> `gem_original_require': no such file to load -- rails-installer >>> (LoadError) >>> from >>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >>> `require' >>> from ./typo-5.1.2/bin/typo:4 >>> Hmm. So I try >>> [anton at laptop Ruby]$ find /usr/lib/ruby /home/anton \ >>> -name 'rails-installer*' -print >>> which returns nothing. >> The typo gem requires 'rails-app-installer', I'm guessing you need to >> install that gem. > > Is that dependency declared anywhere? > > Oh, right, let me guess, if I'd installed with the GEM it would have > dragged that dependency in. > > HA-BLOODY-HA-HA > > My "other" blog is Wordpress & I didn't have this problem upgrading > that. > > Originally preferred Typo to Wordpress, now I'm having my doubts. > I'm really disappointed in this "upgrade". When I started using Typo > two years ago (26/08/06 08:54 PM) I had none of these problems, > neither > on my laptop nor on Dreamhost (once they got Ruby 1.8.4 up). It was > the > slickness and ease of installation & configuration that impressed me > back them. > > > > PostScript: > > I just installed 'libmysql-devel' using urpmi, the normal and > recommended method, and 'gem install typo' still fails. > > I seriously think you need to reconsider what it takes for an ordinary > non-development user to install Typo. > > > > > > > > >> Regards, >> Matijs. > Hello, first, sorry for not replying faster, I was in holliday and got internet access only tonight. Trying to answer the pile of mails that's waiting for me. This is not a Typo but rails issue: to use a Rails application, you need a database driver, ie ruby mysql driver. That's the reason why you needed so much dependencies. In an ideal world, your distro would embed a package named ruby-mysql with the proper driver, or anything else. The problem is Rails gem has its own dependencies system which differs from RPM and you won't register Typo MySQL gem with rpm and the contrary. I've actually tried to reduce the number of dependencies in the last releases, removing some of them as much as I could. Cheers, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From frederic at de-villamil.com Wed Aug 6 15:57:41 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Wed, 6 Aug 2008 21:57:41 +0200 Subject: [typo] strange handling of tags that use the '.' character In-Reply-To: <0307991A-9DCC-4C49-8BEE-306211380C2E@sonsorol.org> References: <0307991A-9DCC-4C49-8BEE-306211380C2E@sonsorol.org> Message-ID: <188E19F3-88E4-432F-A53C-9EBC98B9EF30@de-villamil.com> Le 6 ao?t 08 ? 19:23, Chris Dagdigian a ?crit : > > Hi folks, > > I've been running http://gridengine.info off of Typo for a while > now, thanks for a nice package! > > Because my site tracks a particular open source software product I > sometimes need to put version numbers into article tags for easy > characterizing. > > Prior to the most recent Typo upgrade, tags like "6.3" did not work > at all, something about Rails or Typo can't handle the "." character. > > Now running the latest Typo I see something odd ... > > Tags that use multiple "." characters get remapped to "-": > > 6.2.0 becomes a tag called "6-2-0" on Typo > > But a tag named "6.2" is left unmodified, with no funky rewriting. > > As a test that proves the issue I added tags for "6.2.0" and "6.2" > to the following post: > > http://gridengine.info/2008/08/06/t-shirt-contest > > ... the "6.2.0" tag is handled via changing "." to "-" but the "6.2" > tag is left unchanged and does not work. > > Is the use of "." chars in tags an issue with Rails in general or > should I write up an Issue against the Typo issue tracker? > > -Chris Hello, first, sorry for not replying faster, I was in holliday and got internet access only tonight. Trying to answer the pile of mails that's waiting for me. This all comes from a basic thing I forgot to do before releasing. I was quite pissed off with Typo not andling my cool web2.0 tag just because it was actually looking for a web2.0 file, and not for a page named web2.0. So I added the same behaviour as categories : replace the '.' with a '-' which actually works. I just incidentaly forgot to do a proper migration to change your '.' in '-' with the proper 301 redirects. I add this to the TODO for the 5.1.3 bugfix release which may come as soon as I'm really back from holliday. Cheers, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From frederic at de-villamil.com Wed Aug 6 16:12:22 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Wed, 6 Aug 2008 22:12:22 +0200 Subject: [typo] Which versions of Ruby work with Typo 5.1.2? In-Reply-To: References: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> <5e0e1b0dfd579228be7d7403ea7dd584@ruby-forum.com> Message-ID: <343B170B-9391-4EAC-9BDF-F1DAB49CA0F9@de-villamil.com> Le 5 ao?t 08 ? 15:07, Cyril Mougel a ?crit : > On Tue, Aug 5, 2008 at 11:05 AM, Geoffrey Sisson > wrote: >> Cyril Mougel wrote: >> >>> I use a ruby 1.8.6-p230 with Typo 5.1.2 and I haven't any problem. >>> All >>> works >> >> Cyril, are you using Rails 2.0.2? > > Yes, it's with rails freeze in Typo. > >> >> When I use Ruby 1.8.6-p230 and Rails 2.0.2 and then create a new >> instance of Typo, the resulting dispatch.cgi crashes immediately upon >> invocation: >> >> $ ./dispatch.cgi >> *** glibc detected *** ruby: free(): invalid pointer: 0x085510d0 *** >> ======= Backtrace: ========= >> /lib/i686/cmov/libc.so.6[0xb7d6f4f4] >> /lib/i686/cmov/libc.so.6(cfree+0x96)[0xb7d716f6] >> /usr/lib/libruby.so.1.8[0xb7f0dc4c] >> [snip] >> >> >> I'm running on Debian GNU/Linux 4.0r4 (etch), FWIW. > > I use mongrel and I am a Gentoo. Hello, first, sorry for not replying faster, I was in holliday and got internet access only tonight. Trying to answer the pile of mails that's waiting for me. I'm currently using Ruby Enterprise Edition (the name really sucks), which is developped by the guys from mod_rails. It fixes the ruby security vuln while not breaking everything, which is just what I needed. Cheers, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From aja at si.on.ca Thu Aug 7 10:42:04 2008 From: aja at si.on.ca (Anton J Aylward) Date: Thu, 07 Aug 2008 10:42:04 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <94CBCC90-8D21-4901-8ED7-7E92EBFC6EC1@de-villamil.com> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <94CBCC90-8D21-4901-8ED7-7E92EBFC6EC1@de-villamil.com> Message-ID: <489B09BC.5040003@si.on.ca> de Villamil Fr?d?ric said the following on 06/08/08 03:51 PM: > [Big Snip of relevant material - review previous messages if you need it ] > > This is not a Typo but rails issue: to use a Rails application, you > need a database driver, ie ruby mysql driver. That's the reason why > you needed so much dependencies. In an ideal world, your distro would > embed a package named ruby-mysql with the proper driver, or anything > else. Help me here. Typo is built on and thus dependent on Rails Rails is the part that needs the database drives, not Typo itself. Is that correct? So, if I were to use gem to remove the typo gem, update the various gems that make up rails, probably activerecord in particular, doing whatever compiles are necessary, and then used gem to install the typo gem, it wouldn't be a problem, because the database driver is in Rails not in Typo. So I do that and this is what I get: [root at laptop ~]# gem update Updating installed gems Nothing to update [root at laptop ~]# gem list | egrep "rails|action|active|typo" actionmailer (2.1.0, 2.0.2, 2.0.1, 1.3.3, 1.3.2, 1.3.1, 1.2.5, 1.2.1, 1.0.1) actionpack (2.1.0, 2.0.2, 2.0.1, 1.13.3, 1.13.2, 1.13.1, 1.12.5, 1.12.1, 1.9.1) actionwebservice (1.2.6, 1.2.3, 1.2.1, 1.1.6, 1.1.2, 0.8.1) activerecord (2.1.0, 2.0.2, 2.0.1, 1.15.3, 1.15.1, 1.14.4, 1.14.2, 1.11.1) activeresource (2.1.0, 2.0.2, 2.0.1) activesupport (2.1.0, 2.0.2, 2.0.1, 1.4.2, 1.4.0, 1.3.1, 1.1.1) rails (2.1.0, 2.0.2, 2.0.1, 1.2.3, 1.2.2, 1.2.1, 1.1.6, 1.1.2) rails_product (0.6, 0.5) transaction-simple (1.4.0) [root at lpatop ~]# gem install typo Building native extensions. This could take a while... ERROR: Error installing typo: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb install typo checking for fdatasync() in -lrt... yes checking for sqlite3.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. The mkmf.log just repeats that and gives a list of compile options. > The problem is Rails gem has its own dependencies system which > differs from RPM and you won't register Typo MySQL gem with rpm and > the contrary. It would be nice if dynamic linking was used under Linux. Never the less, it appears that Typo is trying to compile database drivers of its own. > I've actually tried to reduce the number of dependencies in the last > releases, removing some of them as much as I could. So what dependency is triggering this? I have other rails applications on my laptop that use sqlite3 and mysql with the installed rails gems. Surely that means I have a sqlite and mysql driver that rails can make use of. Surely dependencies would be one of the things that needs to be documented! Never the less, none of this addresses the problems I've had at Deeamhost and when I've tried installing from the tarz-ball. Please see my other mail under this subject heading. -- If you believe in telekinesis, raise my hand. From aja at si.on.ca Thu Aug 7 11:02:51 2008 From: aja at si.on.ca (Anton J Aylward) Date: Thu, 07 Aug 2008 11:02:51 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <94CBCC90-8D21-4901-8ED7-7E92EBFC6EC1@de-villamil.com> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <94CBCC90-8D21-4901-8ED7-7E92EBFC6EC1@de-villamil.com> Message-ID: <489B0E9B.1070304@si.on.ca> de Villamil Fr?d?ric said the following on 06/08/08 03:51 PM: > > This is not a Typo but rails issue: to use a Rails application, you > need a database driver, ie ruby mysql driver. That's the reason why > you needed so much dependencies. In an ideal world, your distro would > embed a package named ruby-mysql with the proper driver, or anything > else. The problem is Rails gem has its own dependencies system which > differs from RPM and you won't register Typo MySQL gem with rpm and > the contrary. Well I loaded up all the database "-devel" RPMs and got typo to install. I still think this dependency should be documented and the justification for the later version of the database interfaces explained. Perhaps even a way to fall back... So, that done I try to set up typo ... That fails still [anton at laptop Ruby]$ mkdir typo-5.1.2; mkdir typo-5.1.2/db [anton at laptop Ruby]$ typo install typo-5.1.2/db/emerge database=sqlite3 Installing typo 5.1.2 /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:16:in `connect': undefined method `yml' for RailsInstaller::Database:Class (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:36:in `backup' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:261:in `backup_database' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:205:in `install_sequence' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:192:in `install' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/commands.rb:95:in `command' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:646:in `execute_command' from /usr/lib/ruby/gems/1.8/gems/typo-5.1.2/bin/typo:93 from /usr/bin/typo:19:in `load' from /usr/bin/typo:19 -- System Integrity Revisited Rebecca T. Mercuri and Peter G. Neumann Inside Risks 127, CACM 44, 1 January 2001 From frederic at de-villamil.com Thu Aug 7 11:22:22 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Thu, 7 Aug 2008 17:22:22 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <489B0E9B.1070304@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <94CBCC90-8D21-4901-8ED7-7E92EBFC6EC1@de-villamil.com> <489B0E9B.1070304@si.on.ca> Message-ID: <605A0057-EB45-4D67-8A37-30F79A7EC83E@de-villamil.com> Le 7 ao?t 08 ? 17:02, Anton J Aylward a ?crit : > de Villamil Fr?d?ric said the following on 06/08/08 03:51 PM: >> This is not a Typo but rails issue: to use a Rails application, >> you need a database driver, ie ruby mysql driver. That's the >> reason why you needed so much dependencies. In an ideal world, >> your distro would embed a package named ruby-mysql with the proper >> driver, or anything else. The problem is Rails gem has its own >> dependencies system which differs from RPM and you won't register >> Typo MySQL gem with rpm and the contrary. > > Well I loaded up all the database "-devel" RPMs and got typo to > install. > I still think this dependency should be documented and the > justification for the later version of the database interfaces > explained. Perhaps even a way to fall back... > > So, that done I try to set up typo ... > That fails still > > > [anton at laptop Ruby]$ mkdir typo-5.1.2; mkdir typo-5.1.2/db > [anton at laptop Ruby]$ typo install typo-5.1.2/db/emerge > database=sqlite3 > Installing typo 5.1.2 > /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails- > installer/databases.rb:16:in `connect': undefined method `yml' for > RailsInstaller::Database:Class (NoMethodError) > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ > lib/rails-installer/databases.rb:36:in `backup' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ > lib/rails-installer.rb:261:in `backup_database' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ > lib/rails-installer.rb:205:in `install_sequence' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ > lib/rails-installer.rb:192:in `install' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ > lib/rails-installer/commands.rb:95:in `command' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/ > lib/rails-installer.rb:646:in `execute_command' > from /usr/lib/ruby/gems/1.8/gems/typo-5.1.2/bin/typo:93 > from /usr/bin/typo:19:in `load' > from /usr/bin/typo:19 > > Hello, I understand your problem, so I'll try to make it clear. Writing docs is long, very long, and I'm currently alone doing it, along with a real job, a family and even a bit of social life. I'd love to handle every dependencies issues for every distro, but honnestly, I don't have time. There are many docs on the interweb that explains how to setup a rails installation on (almost) every OS, because HURD and Plan9 aren't supported. Yet. For your problem, I made a typo (sic) in the typosphere doc. Try typo install typo-5.1.2/db/emerge database=sqlite but using sqlite is not a very good idea. Regards, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From frederic at de-villamil.com Thu Aug 7 11:24:04 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Thu, 7 Aug 2008 17:24:04 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <489B09BC.5040003@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <94CBCC90-8D21-4901-8ED7-7E92EBFC6EC1@de-villamil.com> <489B09BC.5040003@si.on.ca> Message-ID: <6E64EE8D-856A-47B7-992F-86E3B4BEC3AE@de-villamil.com> Le 7 ao?t 08 ? 16:42, Anton J Aylward a ?crit : > de Villamil Fr?d?ric said the following on 06/08/08 03:51 PM: >> [Big Snip of relevant material - review previous messages if you >> need it ] >> This is not a Typo but rails issue: to use a Rails application, >> you need a database driver, ie ruby mysql driver. That's the >> reason why you needed so much dependencies. In an ideal world, >> your distro would embed a package named ruby-mysql with the proper >> driver, or anything else. > > Help me here. > > Typo is built on and thus dependent on Rails > Rails is the part that needs the database drives, not Typo itself. > > Is that correct? > > So, if I were to use gem to remove the typo gem, update the various > gems that make up rails, probably activerecord in particular, doing > whatever compiles are necessary, and then used gem to install the > typo gem, it wouldn't be a problem, because the database driver is > in Rails not in Typo. > > So I do that and this is what I get: > > > [root at laptop ~]# gem update > Updating installed gems > Nothing to update > [root at laptop ~]# gem list | egrep "rails|action|active|typo" > actionmailer (2.1.0, 2.0.2, 2.0.1, 1.3.3, 1.3.2, 1.3.1, 1.2.5, > 1.2.1, 1.0.1) > actionpack (2.1.0, 2.0.2, 2.0.1, 1.13.3, 1.13.2, 1.13.1, 1.12.5, > 1.12.1, 1.9.1) > actionwebservice (1.2.6, 1.2.3, 1.2.1, 1.1.6, 1.1.2, 0.8.1) > activerecord (2.1.0, 2.0.2, 2.0.1, 1.15.3, 1.15.1, 1.14.4, 1.14.2, > 1.11.1) > activeresource (2.1.0, 2.0.2, 2.0.1) > activesupport (2.1.0, 2.0.2, 2.0.1, 1.4.2, 1.4.0, 1.3.1, 1.1.1) > rails (2.1.0, 2.0.2, 2.0.1, 1.2.3, 1.2.2, 1.2.1, 1.1.6, 1.1.2) > rails_product (0.6, 0.5) > transaction-simple (1.4.0) > [root at lpatop ~]# gem install typo > Building native extensions. This could take a while... > ERROR: Error installing typo: > ERROR: Failed to build gem native extension. > > /usr/bin/ruby extconf.rb install typo > checking for fdatasync() in -lrt... yes > checking for sqlite3.h... no > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > > > The mkmf.log just repeats that and gives a list of compile options. > > >> The problem is Rails gem has its own dependencies system which >> differs from RPM and you won't register Typo MySQL gem with rpm >> and the contrary. > > It would be nice if dynamic linking was used under Linux. > Never the less, it appears that Typo is trying to compile database > drivers of its own. > > >> I've actually tried to reduce the number of dependencies in the >> last releases, removing some of them as much as I could. > > So what dependency is triggering this? > I have other rails applications on my laptop that use sqlite3 and > mysql with the installed rails gems. Surely that means I have a > sqlite and mysql driver that rails can make use of. > > Surely dependencies would be one of the things that needs to be > documented! > > > Never the less, none of this addresses the problems I've had at > Deeamhost and when I've tried installing from the tarz-ball. > Please see my other mail under this subject heading. > libsqlite3-devel or something like this Regards Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From aja at si.on.ca Thu Aug 7 11:31:59 2008 From: aja at si.on.ca (Anton J Aylward) Date: Thu, 07 Aug 2008 11:31:59 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <6E64EE8D-856A-47B7-992F-86E3B4BEC3AE@de-villamil.com> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <94CBCC90-8D21-4901-8ED7-7E92EBFC6EC1@de-villamil.com> <489B09BC.5040003@si.on.ca> <6E64EE8D-856A-47B7-992F-86E3B4BEC3AE@de-villamil.com> Message-ID: <489B156F.90007@si.on.ca> de Villamil Fr?d?ric said the following on 07/08/08 11:24 AM: >> Surely dependencies would be one of the things that needs to be >> documented! >> >> >> Never the less, none of this addresses the problems I've had at >> Deeamhost and when I've tried installing from the tarz-ball. >> Please see my other mail under this subject heading. >> > > > libsqlite3-devel or something like this Indeed. Done. And that leads to other problems and still doesn't address the problems arising from trying to install from the tarz-ball But figuring that out from the error messages is a poor way to work. Is this formally documented anywhere? is there a dependency tree documented? -- The ability to learn faster than your competitors may be the only sustainable competitive advatage. - Arie De Geus, Planning Coordinator Royal Dutch Shell From ruby-forum-incoming at andreas-s.net Thu Aug 7 16:23:48 2008 From: ruby-forum-incoming at andreas-s.net (=?utf-8?Q?Esteban_Manchado_vel=c3=a1zquez?=) Date: Thu, 7 Aug 2008 22:23:48 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <48934A92.4080700@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> Message-ID: <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> Anton Aylward wrote: > I also get > > > > ActionView::TemplateError (Couldn't find template file for > /sidebars/sidebar/_content in ["~/typo5/themes/typographic/views", > "/~typo5/app/views"]) on > line #27 of themes/typographic/layouts/default.html.erb: > 24: <%= render :partial => 'shared/search' %> > 25: > 26: > 27: <%= render_sidebars %> > 28:
> 29: > 30:
I had the same problem, and found the solution (at least it worked for me). The problem is that some leftovers in the sidebars table are left, probably in the upgrade migrations. What you have to do is open the console (in production environment or whatever other environment you're using for your blog) and remove the sidebars that have undefined "type" (= nil). This line should do: Sidebar.find(:all, :order => 'active_position ASC').find_all {|s| s.type.nil?}.each {|s| s.destroy} (Yeah, the line could be simpler, I just copy-pasted the line I just used, while I was experimenting) -- Posted via http://www.ruby-forum.com/. From ruby-forum-incoming at andreas-s.net Thu Aug 7 16:38:02 2008 From: ruby-forum-incoming at andreas-s.net (=?utf-8?Q?Esteban_Manchado_vel=c3=a1zquez?=) Date: Thu, 7 Aug 2008 22:38:02 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> Message-ID: <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> Esteban Manchado vel?zquez wrote: > Anton Aylward wrote: >> I also get >> >> >> >> ActionView::TemplateError (Couldn't find template file for >> /sidebars/sidebar/_content in ["~/typo5/themes/typographic/views", >> "/~typo5/app/views"]) on >> line #27 of themes/typographic/layouts/default.html.erb: >> 24: <%= render :partial => 'shared/search' %> >> 25: >> 26: >> 27: <%= render_sidebars %> >> 28:
>> 29: >> 30:
> > I had the same problem, and found the solution (at least it worked for > me). The problem is that some leftovers in the sidebars table are left, > probably in the upgrade migrations. > > What you have to do is open the console (in production environment or > whatever other environment you're using for your blog) and remove the > sidebars that have undefined "type" (= nil). This line should do: > > Sidebar.find(:all, :order => 'active_position ASC').find_all {|s| > s.type.nil?}.each {|s| s.destroy} > > (Yeah, the line could be simpler, I just copy-pasted the line I just > used, while I was experimenting) Gah! I just realised that this will delete the HTML blocks (e.g. with links) that you may have, so you have to remake those. You should have a backup copy of the database, even if you execute that thing first and then read this message, so it shouldn't be a problem... -- Posted via http://www.ruby-forum.com/. From ruby-forum-incoming at andreas-s.net Thu Aug 7 16:40:52 2008 From: ruby-forum-incoming at andreas-s.net (=?utf-8?Q?Esteban_Manchado_vel=c3=a1zquez?=) Date: Thu, 7 Aug 2008 22:40:52 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> Message-ID: <768919af138598845789c678f85daa31@ruby-forum.com> Esteban Manchado vel?zquez wrote: > Gah! I just realised that this will delete the HTML blocks (e.g. with > links) that you may have, so you have to remake those. You should have a > backup copy of the database, even if you execute that thing first and > then read this message, so it shouldn't be a problem... Uh, nevermind, in my case it seemed to delete only content that was there by default, so you shouldn't lose any data created by yourself. In any case, make sure that you have the backup around, just in case. Sorry for the noise, I panicked for a moment because I didn't want anyone to lose data because of my solution :-) -- Posted via http://www.ruby-forum.com/. From aja at si.on.ca Fri Aug 8 09:07:11 2008 From: aja at si.on.ca (Anton J Aylward) Date: Fri, 08 Aug 2008 09:07:11 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <768919af138598845789c678f85daa31@ruby-forum.com> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> Message-ID: <489C44FF.8010807@si.on.ca> After much fluffing around and quite possibly by accident I got the version of Typo-5.1.2 running on my laptop. heartened by this I returned to my Dreamhost account and tried once again to set up a clean/new instance. No luck. The "typo install" went well. I'd set up GEN_HOME and GEM_PATH and PATH and checked carefully that the gems being used were the ones I thought. All looked fine until I tried running it. Neither the real nor the admin interfaces worked - I got a 500 on each. The logs reported ... Processing DashboardController#index (for 99.225.104.173 at 2008-08-07 19:50:00) [GET] Session ID: 93269476e54e65f3421f49ddacabab13 Parameters: {"action"=>"index", "controller"=>"admin/dashboard"} NoMethodError (undefined method `lang' for nil:NilClass): /app/controllers/application.rb:35:in `load_lang' /vendor/rails/actionpack/lib/action_controller/filters.rb:469:in `send!' /vendor/rails/actionpack/lib/action_controller/filters.rb:469:in `call' /vendor/rails/actionpack/lib/action_controller/filters.rb:441:in `run' Well hey, that's different from before when it was complaining about current_user being undefined this time. So what's up here? Is this another undocuemnted dependency? -- "Context is everything" From crazy.bisht at gmail.com Fri Aug 8 09:55:34 2008 From: crazy.bisht at gmail.com (Sanjay Bisht) Date: Fri, 8 Aug 2008 19:25:34 +0530 Subject: [typo] error running rake Message-ID: Hi, I am trying to update my db schema using "rake RAILS_ENV=production db:migrate" but it is throwing me errors, that "no such file to load" I'm updating to typo-5.1.2 from 5.0.2. Can somebody please help me with that -- Cheers! S www.bishtblogs.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From cyril.mougel at gmail.com Fri Aug 8 11:18:51 2008 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Fri, 8 Aug 2008 17:18:51 +0200 Subject: [typo] error running rake In-Reply-To: References: Message-ID: On Fri, Aug 8, 2008 at 3:55 PM, Sanjay Bisht wrote: > Hi, > > I am trying to update my db schema using "rake RAILS_ENV=production > db:migrate" but it is throwing me errors, that "no such file to load" > > I'm updating to typo-5.1.2 from 5.0.2. > > Can somebody please help me with that test with : RAILS_ENV='production' rake db:migrate --trace if there are an error paste all here. -- Cyril Mougel http://blog.shingara.fr From frederic at de-villamil.com Sat Aug 9 04:11:21 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Sat, 9 Aug 2008 10:11:21 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <489C44FF.8010807@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> <489C44FF.8010807@si.on.ca> Message-ID: Le 8 ao?t 08 ? 15:07, Anton J Aylward a ?crit : > After much fluffing around and quite possibly by accident I got the > version of Typo-5.1.2 running on my laptop. heartened by this I > returned to my Dreamhost account and tried once again to set up a > clean/new instance. > > No luck. > The "typo install" went well. I'd set up GEN_HOME and GEM_PATH and > PATH and checked carefully that the gems being used were the ones I > thought. > All looked fine until I tried running it. Neither the real nor the > admin interfaces worked - I got a 500 on each. > > The logs reported ... > > Processing DashboardController#index (for 99.225.104.173 at > 2008-08-07 19:50:00) [GET] > Session ID: 93269476e54e65f3421f49ddacabab13 > Parameters: {"action"=>"index", "controller"=>"admin/dashboard"} > > > NoMethodError (undefined method `lang' for nil:NilClass): > /app/controllers/application.rb:35:in `load_lang' > /vendor/rails/actionpack/lib/action_controller/filters.rb:469:in > `send!' > /vendor/rails/actionpack/lib/action_controller/filters.rb:469:in > `call' > /vendor/rails/actionpack/lib/action_controller/filters.rb:441:in > `run' > > > Well hey, that's different from before when it was complaining about > current_user being undefined this time. > > So what's up here? Is this another undocuemnted dependency? > Hello, I remember running into this when I tried to build 5.0.3 gem. Can you run ./script/console RAILS_ENV=your_current_environment and launch Blog.find(:all) If it returns nothing, then something went wrong during the install process since you MUST have the default blog created at install. Are you sure you're running Rails 2.0.2 btw ? I'll be absent til sunday evening so don't expect any reply before monday Cheers, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From ruby-forum-incoming at andreas-s.net Sat Aug 9 05:05:50 2008 From: ruby-forum-incoming at andreas-s.net (Geoffrey Sisson) Date: Sat, 9 Aug 2008 11:05:50 +0200 Subject: [typo] Which versions of Ruby work with Typo 5.1.2? In-Reply-To: <343B170B-9391-4EAC-9BDF-F1DAB49CA0F9@de-villamil.com> References: <3cdca39418fe3424eac7c69b125d7397@ruby-forum.com> <5e0e1b0dfd579228be7d7403ea7dd584@ruby-forum.com> <343B170B-9391-4EAC-9BDF-F1DAB49CA0F9@de-villamil.com> Message-ID: de Villamil Fr?d?ric wrote: > first, sorry for not replying faster, I was in holliday and got > internet access only tonight. Thanks for the reply. No apology needed. > I'm currently using Ruby Enterprise Edition (the name really sucks), > which is developped by the guys from mod_rails. It fixes the ruby > security vuln while not breaking everything, which is just what I > needed. ruby-enterprise-1.8.6-20080709 works fine, thanks! A warning to anyone who may try Ruby Enterprise: don't specify /usr (or/usr/local) as the target installation directory. Otherwise installer.rb will run "sed" on all files in /usr/bin (or /usr/local/bin) and convert preexisting shell/Perl/Python/etc. scripts to Ruby scripts. I've sent a bug report Phusion. -- Posted via http://www.ruby-forum.com/. From ruby-forum-incoming at andreas-s.net Sat Aug 9 06:18:16 2008 From: ruby-forum-incoming at andreas-s.net (=?utf-8?Q?Esteban_Manchado_vel=c3=a1zquez?=) Date: Sat, 9 Aug 2008 12:18:16 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <489B8CEB.8070501@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> <489B8CEB.8070501@si.on.ca> Message-ID: <245479bbdc42fe010d3c8c9170905f05@ruby-forum.com> Anton Aylward wrote: > Esteban Manchado vel?zquez said the following on 07/08/08 04:40 PM: >> Sorry for the noise, I panicked for a moment because I didn't want >> anyone to lose data because of my solution :-) > > I'm sorry, after your 'panic' I deleted the previous messages. > > Could you repeat that slowly, please.... Haha, sorry. The solution I posted in the first place works without problems (in my case anyway), it was a false alarm. So, what you have to do is: (1) open the console (in production environment or whatever other environment you're using for your blog) and (2) remove the sidebars that have undefined "type" (= nil). This line should do: Sidebar.find(:all, :order => 'active_position ASC').find_all {|s| s.type.nil?}.each {|s| s.destroy} That line could be simpler, and you may want to have a look and the sidebar items you have in the database (in particular, the ones with type = nil) before changing anything. Apart from that, it should work. In any case, make sure you have a backup of your database. Just in case. -- Posted via http://www.ruby-forum.com/. From aja at si.on.ca Sat Aug 9 09:35:47 2008 From: aja at si.on.ca (Anton J Aylward) Date: Sat, 09 Aug 2008 09:35:47 -0400 Subject: [typo] Problems with upgrade In-Reply-To: References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> <489C44FF.8010807@si.on.ca> Message-ID: <489D9D33.6080009@si.on.ca> de Villamil Fr?d?ric said the following on 09/08/08 04:11 AM: > > I remember running into this when I tried to build 5.0.3 gem. Can you > run ./script/console RAILS_ENV=your_current_environment and launch > Blog.find(:all) I''m sure you didn't mean that! $ ./script/console RAILS_ENV=development Loading RAILS_ENV=development environment (Rails 2.0.2) /home/.jordana/antonaylward/typo5/config/../vendor/rails/railties/lib/initializer.rb:206:in `read':Errno::ENOENT: No such file or directory - /home/.jordana/antonaylward/typo5/config/environments/RAILS_ENV=development.rb :-) [ralphie]$ RAILS_ENV=development ./script/console Loading development environment (Rails 2.0.2) >> Blog.find(:all) => [] [ralphie]$ RAILS_ENV=production ./script/console Loading production environment (Rails 2.0.2) >> Blog.find(:all) => [] > If it returns nothing, then something went wrong during the install > process since you MUST have the default blog created at install. OK, so (a) why would that have happened? I didn't record it but the install didn't report any errors. (b) What to do about it. > Are you sure you're running Rails 2.0.2 btw ? Yes. > I'll be absent til sunday evening so don't expect any reply before > monday :-) its not life critical. -- It is an error to imagine that evolution signifies a constant tendency to increased perfection. That process undoubtedly involves a constant remodelling of the organism in adaptation to new conditions; but it depends on the nature of those conditions whether the directions of the modifications effected shall be upward or downward. Thomas H. Huxley From aja at si.on.ca Sat Aug 9 10:12:47 2008 From: aja at si.on.ca (Anton J Aylward) Date: Sat, 09 Aug 2008 10:12:47 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <489D9D33.6080009@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> <489C44FF.8010807@si.on.ca> <489D9D33.6080009@si.on.ca> Message-ID: <489DA5DF.2010503@si.on.ca> Anton J Aylward said the following on 09/08/08 09:35 AM: > >> If it returns nothing, then something went wrong during the install >> process since you MUST have the default blog created at install. > > OK, so (a) why would that have happened? I didn't record it but the > install didn't report any errors. (b) What to do about it. Well, regardless of the 'why', I tried the 'what' by creating a Blog#1 record from the database I had eventually got working on my laptop - skipping the URL. Some progress. Accessing the /admin on the live site running on Dreamhost got me a registration screen. I filled that in and submitted ... and got a 50. This time the logs said: Processing AccountsController#signup (for 99.225.104.173 at 2008-08-09 06:38:31) [GET] Session ID: xxxxxxxxxxxxxxx Parameters: {"action"=>"signup", "controller"=>"accounts"} Rendering template within layouts/accounts Rendering accounts/signup Completed in 0.15706 (6 reqs/sec) | Rendering: 0.14986 (95%) | DB: 0.00000 (0%) | 200 OK [http://emergence.antonaylward.com/accounts/signup] Processing AccountsController#signup (for 99.225.104.173 at 2008-08-09 06:39:12) [POST] Session ID: xxxxxxxxxxxxxx Parameters: {"user"=>{"name"=>"Anton Aylward", "password_confirmation"=>"xxxxxxxx", "login"=>"anton", "password"=>"xxxxxx", "email"=>"anton at si.on.ca"}, "authenticity_token"=>"ade40a66166b4f66de", "action"=>"signup", "controller"=>"accounts"} Unable to send notification of create user email: #This is being sent to <%=h @user.name %> because you asked to be notified via email whenever 4: new content is posted to <%= @blog.blog_name %> 5: To unsubscribe, go to 6: <%=h @link_url%> 7: and change your user settings.

app/models/blog.rb:9:in `initialize' app/models/blog.rb:138:in `new' app/models/blog.rb:138:in `url_for' app/views/notification_mailer/_mail_footer.html.erb:6:in `_run_erb_47app47views47notification_mailer47_mail_footer46html46erb' Am I to conclude that Blog.base_url is critical? For some reason that bothers me. If I fill that in now and Dreamhost reorganizes their machine structure or recovers from a crash and my account ends up on a machine with a different IP then thigns are broken, right? This seems a fragile design decision. -- A distracted figure with a huge bushy beard blunders in just as you speak the word of ancient magic. The man wears loose clothing, and an expression of intense concentration. He is clutching his frizzy hair with one hand; his other hand grips an intricate grid - the object of his attention. His eyes brighten the word you've spoken reaches his ears. "Yes! Yes! That's it!" he exclaims as he draws out a pen and fills in a row of squares. "Now my hyperconstrained, double-acrostic, cryptic crossword is complete, and ready to puzzle others. That was all I needed - just a simple five-letter word, composed only of the letters 'X' 'Y' and 'Z,' that would fit here!" He grips your hand and shakes it fervently. "Thank you! Now that I've finished with that, I can get on to those other things I've been meaning to do, such as monkey-wrenching the demolition and saving recreational linguistics for future generations." He turns away and mutters, just before he departs, "I hope none of that will involve lying in front of a bulldozer..." From aja at si.on.ca Sat Aug 9 10:35:10 2008 From: aja at si.on.ca (Anton J Aylward) Date: Sat, 09 Aug 2008 10:35:10 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <489DA5DF.2010503@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> <489C44FF.8010807@si.on.ca> <489D9D33.6080009@si.on.ca> <489DA5DF.2010503@si.on.ca> Message-ID: <489DAB1E.5070900@si.on.ca> OBTW: My real objective in all this is to get my old blog that was running with 4.0.3 working under a more modern Typo. I suspect that my first attempt to upgrade that has made a mess of the database. I'm not sure how far back Dreamhost keep backups. -- Indeed in nothing is the power of the Dark Lord more clearly shown than in the estrangement that divides all those who still oppose him. --J. R. R. Tolkien (as Haldir the elf), _The Fellowship of the Ring_ From deathstar.endor at gmail.com Sat Aug 9 16:06:11 2008 From: deathstar.endor at gmail.com (g) Date: Sat, 09 Aug 2008 13:06:11 -0700 Subject: [typo] Can a Windows OS run Typo? In-Reply-To: <489DAB1E.5070900@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> <489C44FF.8010807@si.on.ca> <489D9D33.6080009@si.on.ca> <489DA5DF.2010503@si.on.ca> <489DAB1E.5070900@si.on.ca> Message-ID: <489DF8B3.3050307@gmail.com> Forgive me if this is a newbie question, as I'm just getting started with Ruby and Rails... Can typo be run on XP or Windows server 2003, and if so, what Rails/Ruby is required to do so? Thanks Alex From cyril.mougel at gmail.com Sat Aug 9 16:38:58 2008 From: cyril.mougel at gmail.com (Cyril Mougel) Date: Sat, 9 Aug 2008 22:38:58 +0200 Subject: [typo] Can a Windows OS run Typo? In-Reply-To: <489DF8B3.3050307@gmail.com> References: <488F2C64.6050400@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> <489C44FF.8010807@si.on.ca> <489D9D33.6080009@si.on.ca> <489DA5DF.2010503@si.on.ca> <489DAB1E.5070900@si.on.ca> <489DF8B3.3050307@gmail.com> Message-ID: On Sat, Aug 9, 2008 at 10:06 PM, g wrote: > Forgive me if this is a newbie question, as I'm just getting started with > Ruby and Rails... Can typo be run on XP or Windows server 2003, and if so, > what Rails/Ruby is required to do so? > Typo works with all platform support by Ruby. If you read the README, typo works with Rails 2.0 and Ruby 1.8.6. Not with older ruby and rails and not with youndest (Rails 2.1 and Ruby 1.8.7 and Ruby 1.9.x) -- Cyril Mougel http://blog.shingara.fr From ruby-forum-incoming at andreas-s.net Sat Aug 9 16:41:55 2008 From: ruby-forum-incoming at andreas-s.net (Tim Prentis) Date: Sat, 9 Aug 2008 22:41:55 +0200 Subject: [typo] profiles (confusion about :signup) Message-ID: I've been scouring the code (Typo 5.1.2) and trying to find the intent for the accounts/signup feature (other that setting the first user as administrator). The default profile is set to "contributor" in user.rb model and I see how the profile.modules seem to work. However, whenever I test a new additional user "signup" I am presented with the login screen after I have successfully "signed up". Then, the login does not work, the system keeps rendering a new login screen and the new user is unable to do anything other than go back to the general typo blog viewer via the link "Back to Your Blog" (or whatever the link says at the bottom of the login screen. Is this the appropriate behavior or is this portion not yet finished? I want contributors to be able to submit "draft" articles so I can review and then use my administrator rights to edit and publish/approve their articles. Any help is greatly appreciated! Tim -- Posted via http://www.ruby-forum.com/. From frederic at de-villamil.com Mon Aug 11 09:33:27 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Mon, 11 Aug 2008 15:33:27 +0200 Subject: [typo] profiles (confusion about :signup) In-Reply-To: References: Message-ID: <71BB7216-9FA8-4E8E-B54F-8360869D1F1A@de-villamil.com> Le 9 ao?t 08 ? 22:41, Tim Prentis a ?crit : > I've been scouring the code (Typo 5.1.2) and trying to find the intent > for the accounts/signup feature (other that setting the first user as > administrator). The default profile is set to "contributor" in > user.rb > model and I see how the profile.modules seem to work. However, > whenever > I test a new additional user "signup" I am presented with the login > screen after I have successfully "signed up". Then, the login does > not > work, the system keeps rendering a new login screen and the new user > is > unable to do anything other than go back to the general typo blog > viewer > via the link "Back to Your Blog" (or whatever the link says at the > bottom of the login screen. > > Is this the appropriate behavior or is this portion not yet > finished? I > want contributors to be able to submit "draft" articles so I can > review > and then use my administrator rights to edit and publish/approve their > articles. > > Any help is greatly appreciated! > > Tim > -- Hi Tim, contributors do not have publishing rights, only access to : ? Dashboard ? Their profile ? Their comments (as far as I remember) The idea behind contributors is to allow people to register, edit their profile and comment when logged in. Further functionnalities will come later, including : ? per user page displaying your content. ? more detailed profile page Having people who can only publish drafts is an interesting feature I may add someday. For now I also plan to allow admin to set up the modules accessible by the different roles, but this will only avaliable... later, when I have time. Cheers, Fr?d?ric -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From matijs at matijs.net Mon Aug 11 09:36:01 2008 From: matijs at matijs.net (Matijs van Zuijlen) Date: Mon, 11 Aug 2008 21:36:01 +0800 Subject: [typo] Problems with upgrade In-Reply-To: <489DA5DF.2010503@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4dc48142bcd02eb10c8cd866f4ab957a@ruby-forum.com> <91a90fa2f6e9a2cc94302be463a92733@ruby-forum.com> <768919af138598845789c678f85daa31@ruby-forum.com> <489C44FF.8010807@si.on.ca> <489D9D33.6080009@si.on.ca> <489DA5DF.2010503@si.on.ca> Message-ID: <48A04041.5030203@matijs.net> Anton J Aylward wrote: > Am I to conclude that Blog.base_url is critical? > For some reason that bothers me. > If I fill that in now and Dreamhost reorganizes their machine structure > or recovers from a crash and my account ends up on a machine with a > different IP then thigns are broken, right? IP != URL, luckily, or the web wouldn't work. Your base_url would be http://emergence.antonaylward.com/ or something. That won't change if your IP changes. > This seems a fragile design decision. It's not that fragile. That said, I don't like it much either :-). As far as I can tell, it's partly a left-over from when multi-blog support was still on the table. Now that typo is definitively single-blog (at least, I think it is) I have a feeling it should be possible to get rid of it. Regards, Matijs. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From matijs at matijs.net Mon Aug 11 11:27:54 2008 From: matijs at matijs.net (Matijs van Zuijlen) Date: Mon, 11 Aug 2008 23:27:54 +0800 Subject: [typo] Problems with upgrade In-Reply-To: <48984188.1080008@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> Message-ID: <48A05A7A.2040308@matijs.net> Anton J Aylward wrote: > Matijs van Zuijlen said the following on 04/08/08 08:55 PM: >> Hi Anton, > > Hi, and thanks. No, realy, I'm grateful someone finally replied. I was > getting frustrated. (Still am actually!) > > This was my 4th or fifth post about problems with this version of Typo. > I'd tried upgrading my site first - MISTAKE! - and have a number of > posts about that. Perhaps you'd care to look back over them and comment > on that content as the experience was a bit different from this attempt > to install Typo on my laptop Sorry, I never use the typo installer for my own site. The current_user method should be defined in vendor/plugins/typo_login_system/lib/login_system.rb. >> Ah, an rpm based distro. Probably you need to install the -dev package >> for libmysql as well. > > I really don't like this. > Why should I have to install an application development package just to > install Typo? Will I have to install a compiler and possibly YACC/LEX > as well. > > Please guys, this is a bit of a heavy load. Unfortunately, that's a result of Ruby's packaging system. Many people don't like that, including people who package software for the distros. Not much the typo developers can do about it though. > Is this set of dependencies (on the compiler etc) declared anywhere? The precise set of dependencies will depend on the distribution used. That said, some general hints might be a welcome addition to the wiki. > Why do I have to go though this if I only want to use Typo with sqlite3 That, I cannot answer :-). Looking at the source repository, I see that the dependency was changed at the same time the default database changed. >> The typo gem requires 'rails-app-installer', I'm guessing you need to >> install that gem. > > Is that dependency declared anywhere? > > Oh, right, let me guess, if I'd installed with the GEM it would have > dragged that dependency in. > > HA-BLOODY-HA-HA Well, once you go by the 'non-default' route, your on you own ;-). > My "other" blog is Wordpress & I didn't have this problem upgrading that. Well, there _was_ a whole thread on this mailing list recently about installing PHP (Worpress is written in that) vs Ruby & Rails, so I wont get into that :-): http://www.mail-archive.com/typo-list at rubyforge.org/msg04267.html > Originally preferred Typo to Wordpress, now I'm having my doubts. > I'm really disappointed in this "upgrade". When I started using Typo > two years ago (26/08/06 08:54 PM) I had none of these problems, neither > on my laptop nor on Dreamhost (once they got Ruby 1.8.4 up). It was the > slickness and ease of installation & configuration that impressed me > back them. It's a pity that changed. > PostScript: > > I just installed 'libmysql-devel' using urpmi, the normal and > recommended method, and 'gem install typo' still fails. Am I correct in assuming from your later mails that you managed to get this to work? > I seriously think you need to reconsider what it takes for an ordinary > non-development user to install Typo. I'm just visiting :-). Regards, Matijs. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From aja at si.on.ca Mon Aug 11 12:20:19 2008 From: aja at si.on.ca (Anton J Aylward) Date: Mon, 11 Aug 2008 12:20:19 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <48A05A7A.2040308@matijs.net> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> Message-ID: <48A066C3.4040106@si.on.ca> Matijs van Zuijlen said the following on 11/08/08 11:27 AM: > > Sorry, I never use the typo installer for my own site. The current_user > method should be defined in > vendor/plugins/typo_login_system/lib/login_system.rb. That's nice. Unfortunately "for the rest of us", the Wiki gives a method that end up using the Typo Installer. Perhaps you'd care to write up your method in the Wiki. -- The Force is what holds everything together. It has its dark side, and it has its light side. It's sort of like cosmic duct tape. From aja at si.on.ca Mon Aug 11 12:28:19 2008 From: aja at si.on.ca (Anton J Aylward) Date: Mon, 11 Aug 2008 12:28:19 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <48A05A7A.2040308@matijs.net> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> Message-ID: <48A068A3.1000205@si.on.ca> Matijs van Zuijlen said the following on 11/08/08 11:27 AM: > >> Is this set of dependencies (on the compiler etc) declared anywhere? > > The precise set of dependencies will depend on the distribution used. > That said, some general hints might be a welcome addition to the wiki. At the very least the set of Ruby dependencies could be made clear. I asked why I have to go though this - 'this' being installing compiled and "-devel" packages from my RPM - to run typo. Part of the reason I asked this was because Typo 4.1.2 needs sqlite3-ruby-1.2.2 when I already had sqlite3-ruby-1.2.1 installed. That is why it required the compiler etc. All my other ruby applications were running fine with sqlite3-ruby-1.2.1, and the need to upgrade that was not documented and was not made clear in this thread. I'm still hoping for an explanation of this change and why its not an artefact of one of the developers choices in packaging rather than a functional necessity. -- HTML has followed nature's example... bright, sometimes flashing, colors are a sign of indigestiblility. -- Rob Hartill From frederic at de-villamil.com Mon Aug 11 12:58:04 2008 From: frederic at de-villamil.com (=?ISO-8859-1?Q?de_Villamil_Fr=E9d=E9ric?=) Date: Mon, 11 Aug 2008 18:58:04 +0200 Subject: [typo] Problems with upgrade In-Reply-To: <48A068A3.1000205@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> <48A068A3.1000205@si.on.ca> Message-ID: Le 11 ao?t 08 ? 18:28, Anton J Aylward a ?crit : > Matijs van Zuijlen said the following on 11/08/08 11:27 AM: > >>> Is this set of dependencies (on the compiler etc) declared anywhere? >> The precise set of dependencies will depend on the distribution used. >> That said, some general hints might be a welcome addition to the >> wiki. > > At the very least the set of Ruby dependencies could be made clear. > > I asked why I have to go though this - 'this' being installing > compiled and "-devel" packages from my RPM - to run typo. Part of > the reason I asked this was because Typo 4.1.2 needs sqlite3- > ruby-1.2.2 when I already had sqlite3-ruby-1.2.1 installed. That is > why it required the compiler etc. All my other ruby applications > were running fine with sqlite3-ruby-1.2.1, and the need to upgrade > that was not documented and was not made clear in this thread. > > I'm still hoping for an explanation of this change and why its not > an artefact of one of the developers choices in packaging rather > than a functional necessity. > > I think I've already explained this somewhere, either in the CHANGELOG, or on Typo blog or even here, but I will do it once more. Bis repetita semper placent as used to say my latin teacher. When packaging an application like Typo ? or let's say Wordpress ? you need to decide for which environement you do it. This happens in particular when choosing the default database. By default, a clever, or supposed to be so, project team will choose the most widespread and common one, which happens to be MySQL, just like, let's say, Wordpress, as it seems to be the reference here. I don't know why sqlite3 was choosen as a default before, maybe because it didn't need mysql server to be installed before having a running Typo. But the truth is it was pretty stupid IMHO. Since it's made of a single flat file, sqlite just locks the database for every non reading process, which includes INSERT, DELETE and UPDATE. Creating a session, since we're using ActeiveRecord session handler is part of it, like commenting, or creating a post. In other words, sqlite MUST NOT be used for a production web based multiple users ? at least visitors ? application. Sqlite is perfect for creating index on Mail.app or any other desktop since I'm the only one to access it, but not on the internet. The funniest part of the story is that, when sqlite was the default dependency, people used to complain of the sqlite dependency when they used MySQL / PgSQL. I've been recently thinking in 3 directions : ? embedding all the dependencies in vendor/gem, but this will create issues with native gem extensions, like MySQL ones. ? completely removing the Typo installer, only leaving sources, and a list of dependencies. Since gem install now completely fullfills them, I won't care at all about what happens. ? having typosphere.org redirecting to wordpress.com since it's what people here want, mostly spending time crying and complaining, and eventually thinking you can play the BOFH without knowing how to play with UNIX. ? just starting something else, leaving the project dead, just like it was when I took over it. -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com Typo : http://typosphere.org From will at spanner.org Mon Aug 11 14:12:04 2008 From: will at spanner.org (William Ross) Date: Mon, 11 Aug 2008 19:12:04 +0100 Subject: [typo] Problems with upgrade In-Reply-To: References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> <48A068A3.1000205@si.on.ca> Message-ID: <3785AE1E-AD7B-43EB-8B78-09E068388FBC@spanner.org> On 11 Aug 2008, at 17:58, de Villamil Fr?d?ric wrote: > I've been recently thinking in 3 directions : > ? embedding all the dependencies in vendor/gem, but this will create > issues with native gem extensions, like MySQL ones. > ? completely removing the Typo installer, only leaving sources, and > a list of dependencies. Since gem install now completely fullfills > them, I won't care at all about what happens. > ? having typosphere.org redirecting to wordpress.com since it's what > people here want, mostly spending time crying and complaining, and > eventually thinking you can play the BOFH without knowing how to > play with UNIX. > ? just starting something else, leaving the project dead, just like > it was when I took over it. It's bizarre, isn't it, how angry people get when you give them software for free? It takes months of hard work to create something like Typo and many more to keep it useful and up to date, and then people fling angry messages around and make insulting remarks because they had to install a database driver, or because the software didn't allow for the fact that they've got no idea what they're doing. Half the time I think they just use these mailing lists to work off some aggression. In my opinion, open source doesn't mean 'free', it means 'shared'. Shared ownership, shared workload, shared responsibility. If someone gives you grief it's perfectly acceptable for you to reply 'so fix it'. If they can't fix it, or document it, or whatever it is that's required, then they will have to think about being nice to someone who can. I hope you don't drop the project but I can well understand why you would. best, will From will at spanner.org Mon Aug 11 14:29:01 2008 From: will at spanner.org (William Ross) Date: Mon, 11 Aug 2008 19:29:01 +0100 Subject: [typo] Problems with upgrade In-Reply-To: References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> <48A068A3.1000205@si.on.ca> Message-ID: <46ED2212-B7CC-4C7F-AC25-10E76390AC8F@spanner.org> On 11 Aug 2008, at 17:58, de Villamil Fr?d?ric wrote: > > I've been recently thinking in 3 directions : > ? embedding all the dependencies in vendor/gem, but this will create > issues with native gem extensions, like MySQL ones. > ? completely removing the Typo installer, only leaving sources, and > a list of dependencies. Since gem install now completely fullfills > them, I won't care at all about what happens. I've just been through a quick typo install procedure to see what the fuss is all about, and if I were you I would keep it but cut it back: create the directory tree and leave the application ready to run, but don't try and populate the database. Let them choose their own database and migrate it. Half the time the setup will fail on permissions anyway, and by being more conventional you'll be able to direct people to standard documentation rather than having to support them yourself. If they want hassle-free installation without ever having to type RAILS_ENV, you can rent it to them as a service :) For me it would also make more sense to package less and require more, but I expect that's a matter of taste. There's an awful lot of code in there to handle edge cases and tricky user scenarios and to save people from having to set things up properly. I'd throw away the lot and let them work it out. I'll shut up now and walk the dog. best, will From aja at si.on.ca Mon Aug 11 14:43:32 2008 From: aja at si.on.ca (Anton J Aylward) Date: Mon, 11 Aug 2008 14:43:32 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <3785AE1E-AD7B-43EB-8B78-09E068388FBC@spanner.org> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> <48A068A3.1000205@si.on.ca> <3785AE1E-AD7B-43EB-8B78-09E068388FBC@spanner.org> Message-ID: <48A08854.6050305@si.on.ca> William Ross said the following on 11/08/08 02:12 PM: > > It's bizarre, isn't it, how angry people get when you give them > software for free? Yes, and its strange how people accept poor quality s/w just cost its from a large, faceless corporation. > It takes months of hard work to create something like Typo and many > more to keep it useful and up to date, and then people fling angry > messages around and make insulting remarks because they had to install > a database driver, Wait one moment. I already had drivers installed. I already have working RoR applications using both MySQL and SQlite. This thread, if you will note, began with nothing to do with the drivers. It had and still has as its subject "Problems with upgrade". The problems arose when I tried to upgrade my version of Typo 4.0.3 running with MySQL, following the instructions on the Wiki. No database driver problems but a host of other problems. Since I'm not ignorant of SDLC I tried installing via the GEM and also via the tarz-ball on my laptop. That laptop already had the drivers installed, as I've pointed out, and RoR applications working that use both sets of drivers. I had no reason to suspect that drivers would be a problem. Frederic admitted to a typographic error in the Wiki. Thank you, that helped me make progress - some - as far as the laptop went but didn't solve the original problem. I've asked for a dependency list to be documented and was told that documentation was too much trouble. If the documentation had specified a dependency on sqlite-1.2.2 I could have checked my libraries and see that I had a 1.2.1 and known I needed to upgrade. No such documentation existed. Not such discussion or note in the README or CHANGES explains why the later drivers were needed. Perhaps they're not functionally needed needed, perhaps they are an artefact of the way the gem was packaged. Without documentation how can we know? > or because the software didn't allow for the fact > that they've got no idea what they're doing. Of course I don't know - its not documented and I can't find it in package. I can't read Frederic's mind and I don't have access to his machine to look-see. I do have the instructions in the Wiki to follow and have followed them and come to grief. You can think of this as "debugging". That to is contributing, even if it does look like finding fault and being critical. Its arrogant to assume that everyone involved in a project is going to be a coder. -- Usenet is like a herd of performing elephants with diarrhea: massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it. -- spaf From aja at si.on.ca Mon Aug 11 14:43:51 2008 From: aja at si.on.ca (Anton J Aylward) Date: Mon, 11 Aug 2008 14:43:51 -0400 Subject: [typo] Problems with upgrade In-Reply-To: References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> <48A068A3.1000205@si.on.ca> Message-ID: <48A08867.7020707@si.on.ca> de Villamil Fr?d?ric said the following on 11/08/08 12:58 PM: > Le 11 ao?t 08 ? 18:28, Anton J Aylward a ?crit : > >> Matijs van Zuijlen said the following on 11/08/08 11:27 AM: >> >>>> Is this set of dependencies (on the compiler etc) declared anywhere? >>> The precise set of dependencies will depend on the distribution used. >>> That said, some general hints might be a welcome addition to the >>> wiki. >> At the very least the set of Ruby dependencies could be made clear. >> >> I asked why I have to go though this - 'this' being installing >> compiled and "-devel" packages from my RPM - to run typo. Part of >> the reason I asked this was because Typo 4.1.2 needs sqlite3- >> ruby-1.2.2 when I already had sqlite3-ruby-1.2.1 installed. That is >> why it required the compiler etc. All my other ruby applications >> were running fine with sqlite3-ruby-1.2.1, and the need to upgrade >> that was not documented and was not made clear in this thread. >> >> I'm still hoping for an explanation of this change and why its not >> an artefact of one of the developers choices in packaging rather >> than a functional necessity. >> >> > > I think I've already explained this somewhere, either in the > CHANGELOG, or on Typo blog or even here, but I will do it once more. > Bis repetita semper placent as used to say my latin teacher. > > When packaging an application like Typo ? or let's say Wordpress ? you > need to decide for which environement you do it. This happens in > particular when choosing the default database. By default, a clever, > or supposed to be so, project team will choose the most widespread and > common one, which happens to be MySQL, just like, let's say, > Wordpress, as it seems to be the reference here. Puh-lease! Lets take this in parts. 1. The guys at Rails seems to have switched to sqlite as the default for the development environment. I don't know in detail why they did that but for a limited situation where the application is being reloaded every time, the inefficiencies of sqlite are outweighed by other factors. Probably the simplicity of not managing a server while doing "just" development has something to do with that. 2. I have BOTH sqlite and MySQL on my laptop. When it came to install the Typo-5.1.2 gem the installer insisted on compiling new(er) versions of BOTH the MySQL and the sqlite ruby drivers. At Dreamhost, which I still can't get the upgrade working and have continued to report the problems here and identified them as being on Dreamhost rather than the 'virgin' install on my laptop, I have always run Typo with MySQL. > I don't know why sqlite3 was choosen as a default before, maybe > because it didn't need mysql server to be installed before having a > running Typo. But the truth is it was pretty stupid IMHO. Since it's > made of a single flat file, sqlite just locks the database for every > non reading process, which includes INSERT, DELETE and UPDATE. > Creating a session, since we're using ActeiveRecord session handler is > part of it, like commenting, or creating a post. In other words, > sqlite MUST NOT be used for a production web based multiple users ? at > least visitors ? application. Sqlite is perfect for creating index on > Mail.app or any other desktop since I'm the only one to access it, but > not on the internet. It is also perfect in the 'single user' development context as well, which is, no doubt, why the Rails people recommend it as such. But, as I said, trying to install Typo-5.1.2 on my laptop, which already had the Ruby MySQL driver installed and a number of RoR applications running using MySQL, most notably Radiant and the "What's next". As far as Typo on Dreamhost goes, sqlite is NOT, repeat NOT, repeat NOT being used. But when I took a dump of that database and tried Typo-5.1.2 against it on my laptop, the gem still insisted on compiling a new(er) version of the interface. So the point I am making is not about the strengths or weaknesses of sqlite vs MySQL; it is that I had functional versions of Ruby interfaces for both and operating RoR applications using both, yet the gem install of Typo-5.1.2 insisted on "upgrading" both sqlite and mysql drivers. I've asked and I'm still asking: what is the deficiency in the old drivers than necessitated this upgrade or is it just an artefact of the way the gem was packed on that particular development machine? > The funniest part of the story is that, when sqlite was the default > dependency, people used to complain of the sqlite dependency when they > used MySQL / PgSQL. Back when the RoR guys had MySQL a their default I used that. As I said, the problem when I did the virgin install on my laptop was that the instructions on the Wiki said to install the gem first. This was before I had run "typo install ..." to create the "config/database.yml". It was the install of the gem that raised the dependency and required new versions of the MySQL and SQlite rivers to be compiled. This has nothing whatsoever to do with any choice of database I might or might not later make for the application. It holds true even if then decide not to use Typo and leave the gem undisturbed. > I've been recently thinking in 3 directions : > ? embedding all the dependencies in vendor/gem, but this will create > issues with native gem extensions, like MySQL ones. ... Just so long as you document it clearly ... > ? completely removing the Typo installer, only leaving sources, and a > list of dependencies. Since gem install now completely fullfills them, > I won't care at all about what happens. Perhaps that slit should be there anyway ... > ? having typosphere.org redirecting to wordpress.com since it's what > people here want, mostly spending time crying and complaining, and > eventually thinking you can play the BOFH without knowing how to play > with UNIX. I've known how to play with UNIX for over 30 years and played with more versions than are currently available. I believe in diversity and only ran Wordpress since Dreamhost offered it as a one-click install when I needed to get something up fast. When it came to the Typo4.0.3 version I took great care and crafted and customized and had a good time. I like Rials and I prefer Ruby and don't think PHP is really OO. My mention of wordpress was as a comparison of the ease of upgrade, not a comment on function or preference. > ? just starting something else, leaving the project dead, just like it > was when I took over it. I tried upgrading the 4.0.3 installation using the instruction on the Wiki and met with the problems I've documented in this thread. You'll note it began with that and that's why I used the subject like "Problems with upgrade" rather than with install. I tried doing a virgin install following the instructions on the Wiki and met the problems I've documented. The Typo documentation does say in the README "Typo supports MySQL, PostgreSQL, and SQLite" but when I describe the problems I have had with both MySQL and with SQLite I get met with sarcasm and derision. I dread trying PostgreSQL. -- "Television is a medium because it is neither rare nor well done." -- Fred Friendly From aja at si.on.ca Mon Aug 11 14:51:07 2008 From: aja at si.on.ca (Anton J Aylward) Date: Mon, 11 Aug 2008 14:51:07 -0400 Subject: [typo] Problems with upgrade In-Reply-To: <46ED2212-B7CC-4C7F-AC25-10E76390AC8F@spanner.org> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> <48A068A3.1000205@si.on.ca> <46ED2212-B7CC-4C7F-AC25-10E76390AC8F@spanner.org> Message-ID: <48A08A1B.8070908@si.on.ca> William Ross said the following on 11/08/08 02:29 PM: > > I've just been through a quick typo install procedure to see what the > fuss is all about, and if I were you I would keep it but cut it back: > create the directory tree and leave the application ready to run, but > don't try and populate the database. Let them choose their own > database and migrate it. Half the time the setup will fail on > permissions anyway, and by being more conventional you'll be able to > direct people to standard documentation rather than having to support > them yourself. Sounds good to me. That should simplify upgrade as well :-( Just one thing. Standard and system documentation is fine for standard and system stuff. But you are going to have to make some specific stuff well documented. By that I mean things like dependencies. I'm not going to bother trying to find out if the requirement for sqlite1.2.2 rather than 1.2.1 is a real one or an artefact for the packaging since my real problem is getting the UPGRADE running on Dreamhost, and that was both the start of this thread and nothing to do with drivers. -- Things are more like they are now than they ever were before. Dwight D. Eisenhower From will at spanner.org Mon Aug 11 15:42:37 2008 From: will at spanner.org (William Ross) Date: Mon, 11 Aug 2008 20:42:37 +0100 Subject: [typo] Problems with upgrade In-Reply-To: <48A08A1B.8070908@si.on.ca> References: <488F2C64.6050400@si.on.ca> <488F4CD2.3080906@si.on.ca> <48934A92.4080700@si.on.ca> <4897577B.6040006@si.on.ca> <4897A4FC.4030004@matijs.net> <48984188.1080008@si.on.ca> <48A05A7A.2040308@matijs.net> <48A068A3.1000205@si.on.ca> <46ED2212-B7CC-4C7F-AC25-10E76390AC8F@spanner.org> <48A08A1B.8070908@si.on.ca> Message-ID: <7648C617-8046-4725-80B0-5C5D8B4F193B@spanner.org> On 11 Aug 2008, at 19:51, Anton J Aylward wrote: > William Ross said the following on 11/08/08 02:29 PM: > >> I've just been through a quick typo install procedure to see what >> the fuss is all about, and if I were you I would keep it but cut >> it back: create the directory tree and leave the application ready >> to run, but don't try and populate the database. Let them choose >> their own database and migrate it. Half the time the setup will >> fail on permissions anyway, and by being more conventional you'll >> be able to direct people to standard documentation rather than >> having to support them yourself. > > Sounds good to me. > That should simplify upgrade as well :-( It certainly ought to. Typo has a fairly comprehensive up-and- downgrade mechanism, though. I can see why the project would be reluctant to let it go (even if the examples do refer to Rails 1.1.6!) > Just one thing. Standard and system documentation is fine for > standard and system stuff. But you are going to have to make some > specific stuff well documented. By that I mean things like > dependencies. i always prefer to delegate that sort of thing if at all possible. Not that it's anything to do with me in this case. Things are more difficult at the moment because Rails is presenting quite a shifting target - everyone managing applications of any size had to do quite a lot of work for 2 and now has to do it again for 2.1 (which is much nicer, though), or is putting it off - but my own taste is for a single large dependency rather than many small ones. Probably another leftover perl habit: with CPAN modules you tend to require one and get fifty, but the chain of delegated responsibility makes local management much easier. > I'm not going to bother trying to find out if the requirement for > sqlite1.2.2 rather than 1.2.1 is a real one or an artefact for the > packaging since my real problem is getting the UPGRADE running on > Dreamhost, and that was both the start of this thread and nothing to > do with drivers. That did sound annoying. It sounds like the problem arises when typo calls rails-app-installer. The installer-helper tries to be all things to all people and initialises lots of configuration that it then doesn't use. I don't know why it should insist on SQLite 1.2.2: it must be a packaging artefact, as you suggest, because the gem only specifies sqlite3-ruby >= 1.1.0. As far as I can tell, all it really does is create a database.yml and run rake db:migrate, which radiant or mephisto would require you to do anyway. I can't help thinking the app might be better off without it. And I'm sorry that my previous message was a bit broad in its generalisations. Of course everyone has a legitimate frustration as well. It's just that the developer's frustration is usually much the greater. I must have had some left over :) best, will From bill at bfccomputing.com Tue Aug 12 01:58:48 2008 From: bill at bfccomputing.com (Bill McGonigle) Date: Tue, 12 Aug 2008 01:58:48 -0400 Subject: [typo] missing posts after database restore In-Reply-To: <4FA6E4D1-4BD4-4CFC-95C5-C3E8864E6162@de-villamil.com> References: <4FA6E4D1-4BD4-4CFC-95C5-C3E8864E6162@de-villamil.com> Message-ID: <61DC228C-24F5-4F10-B071-C3478F1ECE4A@bfccomputing.com> On Aug 6, 2008, at 15:40, de Villamil Fr?d?ric wrote: > first, sorry for not replying faster, I was in holliday and got > internet access only tonight. Trying to answer the pile of mails > that's waiting for me. not a problem - I'm just returning to my pile of mails too, so sorry for the delayed reply! > Can you use mysql / pgsql client and do > select * from contents; > > What is the output ? Contents is fully populated! Thank goodness. :) The last ID in the table is 62, and the contents_id_seq is at 63. That looks pretty consistent. > Can you also use > ./script/console > Article.count(:all) hmmm: >> Article.count(:all) => 0 On Aug 6, 2008, at 11:07, Matijs van Zuijlen wrote: > Did you do a rake db:migrate while trying to get 5.1 to work? yes. however I dropped that database and am trying to work with the backup that was made before upgrading. >> I dropped my old db and removed the >> install directory, created new of each, installed using the >> gem/installer, stop mongrel, and get a clean restore of the >> database (at >> least no complaints) and I can see all of the data in both the >> yaml file > > Which yaml file are you talking about here? Oh, the yaml file that the backup makes. > Did you point the db/database.yml to the right database? yeah, that part seems fine. I'm getting my authentication, settings, file uploads, etc. I'm also getting a stacktrace, I now see. I'll end this message with the top of it - I can post more of it if it would be helpful: Rendering /opt/typo/example.com-blog/public/500.html (500 Internal Server Error) Processing CommentsController#index (for 192.16.1.100 at 2008-08-12 01:23:38) [GET] Parameters: {"format"=>"rss", "action"=>"index", "controller"=>"comments"} ArgumentError (wrong number of arguments (2 for 1)): /vendor/rails/activesupport/lib/active_support/option_merger.rb: 14:in `find' /vendor/rails/activesupport/lib/active_support/option_merger.rb: 14:in `send!' /vendor/rails/activesupport/lib/active_support/option_merger.rb: 14:in `method_missing' /app/controllers/comments_controller.rb:40:in `get_feedback' /vendor/rails/activesupport/lib/active_support/core_ext/object/ misc.rb:48:in `with_options' /vendor/rails/activerecord/lib/active_record/associations/ association_proxy.rb:125:in `send' /vendor/rails/activerecord/lib/active_record/associations/ association_proxy.rb:125:in `method_missing' /vendor/rails/activerecord/lib/active_record/associations/ association_collection.rb:162:in `method_missing' /app/controllers/comments_controller.rb:39:in `get_feedback' /app/controllers/feedback_controller.rb:22:in `index' /vendor/rails/actionpack/lib/action_controller/mime_responds.rb: 131:in `call' /vendor/rails/actionpack/lib/action_controller/mime_responds.rb: 131:in `custom' /vendor/rails/actionpack/lib/action_controller/mime_responds.rb: 156:in `call' /vendor/rails/actionpack/lib/action_controller/mime_responds.rb: 156:in `respond' /vendor/rails/actionpack/lib/action_controller/mime_responds.rb: 150:in `each' /vendor/rails/actionpack/lib/action_controller/mime_responds.rb: 150:in `respond' /vendor/rails/actionpack/lib/action_controller/mime_responds.rb: 107:in `respond_to' /app/controllers/feedback_controller.rb:12:in `index' /vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:1158:in `perform_action_without_filters' -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 ruby-forum-incoming at andreas-s.net Wed Aug 20 08:56:35 2008 From: ruby-forum-incoming at andreas-s.net (Tim Prentis) Date: Wed, 20 Aug 2008 14:56:35 +0200 Subject: [typo] Articles feed not working (5.0.3)? In-Reply-To: <7184BB33-14C9-453B-A04F-1B9423116F45@mac.com> References: <033C4604-D095-4C9F-A1E4-2D5A2386E9DA@de-villamil.com> <7184BB33-14C9-453B-A04F-1B9423116F45@mac.com> Message-ID: <8dc6e7b96063891048e9370ab86828bf@ruby-forum.com> Brad Hawkins wrote: > On Apr 3, 2008, at 7:14 AM, Frederic de Villamil wrote: > >>> >>> Processing ArticlesController#index (for 76.91.178.49 at 2008-04-02 >>> 8: >> tell you ? >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list > > > > > > I tried running the /article.rss and when I'm in production mode I get > the 500 Internal Server Error, but when I switch over to development > mode I get this error message: > > > Showing app/views/articles/_rss20_feed.rss.builder where line #14 > raised: > > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.email > > Extracted source (around line #14): > > 11: xml.description this_blog.blog_subtitle > 12: > 13: rss20_feed.each do |value| > 14: value.to_rss(xml) > 15: end > 16: end > 17: end > > And if I switch it over to Atom 1.0, this is what I get: > > Showing app/views/articles/_atom_feed.atom.builder where line #10 > raised: > > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.name > > Extracted source (around line #10): > > 7: feed.generator "Typo", :uri => "http:// > www.typosphere.org", :version => '4.x' > 8: > 9: atom_feed.each do |value| > 10: value.to_atom(feed) > 11: end > 12: end > > Thanks for your help! Hopefully one day I'll be more knowledgeable and > return the favor to others! > > Brad > > PS - the site is running in development mode if you want to see the > error messages yourself - www.washabledryink.com I am wondering if you ever got this to work. I am having the same exact issue at line #14 on version 5.1.1 and 5.1.2 You have a nil object when you didn't expect it! The error occurred while evaluating nil.email Extracted source (around line #14): 11: xml.description this_blog.blog_subtitle 12: 13: rss20_feed.each do |value| 14: value.to_rss(xml) 15: end 16: end 17: end Anybody have suggestions? - Tim -- Posted via http://www.ruby-forum.com/. From ruby-forum-incoming at andreas-s.net Wed Aug 20 09:04:32 2008 From: ruby-forum-incoming at and