<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Global Reset: Upgraded to Typo 4.0.3</title>
    <link>http://blog.globalreset.org/articles/2006/09/09/upgraded-to-typo-4-0-3</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>A Mac OS X Switcher, TiVo Addict, and Objectivist</description>
    <item>
      <title>Upgraded to Typo 4.0.3</title>
      <description>&lt;p&gt;Finally got around to upgrading this blog to the 4.0 series of Typo.  I did have a couple of problems with it, but nothing major.  I started by trying to use the new Typo gem, doing a local install into my own gem folder.  This failed because one of the dependencies for Typo requires Ruby 1.8.4, but I only have 1.8.2 available to me on Dreamhost.  I almost went down the path of building my own ruby binary (I&amp;#8217;d done this before when Dreamhost was slow to catch up) but decided I&amp;#8217;d try installing Typo the old fashioned way:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;svn co http://typosphere.org/trunk typo
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I copied my old database.yml file into the config folder.  Then I edited config/environment.rb to force rails into production mode.  When I ran &amp;#8216;rake migrate&amp;#8217; I got an error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;== FixCanonicalServerUrl: migrating ==============
rake aborted!
You have a nil object when you didn't expect it!
The error occured while evaluating nil.gsub
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;A quick google search showed other people with the same problem, but no solution.  I made a quick patch to db/migrate/051&lt;em&gt;fix&lt;/em&gt;canonical&lt;em&gt;server&lt;/em&gt;url.rb that let me get past the problem.  After the variable &amp;#8216;b&amp;#8217; is initialized, I added:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;b.settings['canonical_server_url'] ||= 'http://blog.globalreset.org'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I really like the changes they made to the admin interface.  It&amp;#8217;s much easier to handle deleting spam comments now.  I have yet to see how the Akismet interaction works though.  I did have a problem with comment deletion that I haven&amp;#8217;t solved.  If I create a new comment which is unclassified (neither &amp;#8216;ham&amp;#8217; nor &amp;#8216;spam&amp;#8217;, whatever that means), I can&amp;#8217;t delete it.  I see an error in the production log that you can&amp;#8217;t delete a &amp;#8216;frozen hash&amp;#8217;.  I also had to modify the way my theme invokes the sidebar.  They simplified it down to just &amp;#8216;render_sidebars&amp;#8217; instead of the complicated invocation of a particular action on the sidebar controller.  I&amp;#8217;d expect fancier themes than mine to have a few more problems.  But, I think the management interface upgrades are enough reason to go through the effort.&lt;/p&gt;
</description>
      <pubDate>Sat, 09 Sep 2006 16:56:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:282cf937-8811-446f-b1ec-765d4ebce504</guid>
      <author>Scott Hughes</author>
      <link>http://blog.globalreset.org/articles/2006/09/09/upgraded-to-typo-4-0-3</link>
      <category>Technology</category>
      <category>Typo</category>
      <category>RubyOnRails</category>
      <category>Dreamhost</category>
    </item>
    <item>
      <title>"Upgraded to Typo 4.0.3" by stunder</title>
      <description>&lt;p&gt;Thanks for that pointer I was having the same issue with a new install last night and now I can rake migrate on Dreamhost.&lt;/p&gt;</description>
      <pubDate>Tue, 17 Oct 2006 14:22:29 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:aae1f01d-cdbd-4442-ae5f-da2d8271f8ad</guid>
      <link>http://blog.globalreset.org/articles/2006/09/09/upgraded-to-typo-4-0-3#comment-441</link>
    </item>
  </channel>
</rss>
