From toby-typo at bryans.org Mon Apr 2 10:55:47 2007 From: toby-typo at bryans.org (Toby Bryans) Date: Mon, 2 Apr 2007 15:55:47 +0100 (BST) Subject: [typo] 4.1 Upgrade problems Message-ID: <2441.172.20.3.91.1175525747.squirrel@admin.cygnetcs.com> bryans at cyglon01 ~/www/rails $ typo install /u01/sites/bryans.org/www/rails/toblog.bryans.org/ Installing typo 4.1 Stopping Typo !!! PID file /u01/sites/bryans.org/www/rails/toblog.bryans.org/tmp/pid.txt does not exist. Not running? mongrel::stop reported an error. Use mongrel_rails mongrel::stop -h to get help. Checking for existing Typo install in /u01/sites/bryans.org/www/rails/toblog.bryans.org Reading files from /usr/lib/ruby/gems/1.8/gems/typo-4.1 copying rails 1.2.0 to /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/railties copying activesupport 1.4.0 to /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/activesupport copying activerecord 1.15.0 to /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/activerecord copying actionpack 1.13.0 to /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/actionpack copying actionmailer 1.3.0 to /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/actionmailer copying actionwebservice 1.2.0 to /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/actionwebservice Making scripts executable Checking database Creating initial database Creating PostgreSQL database Password: createdb: database creation failed: ERROR: permission denied to create database Password: createdb: database creation failed: ERROR: permission denied to create database /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log': PGError: ERROR: relation "articles_tags" already exists (ActiveRecord::StatementInvalid) : CREATE TABLE articles_tags ( "article_id" integer DEFAULT NULL, "tag_id" integer DEFAULT NULL ) from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_adapters/postgresql_adapter.rb:152:in `execute' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:125:in `create' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:124:in `each' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:124:in `create' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:479:in `create_initial_database' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:689:in `in_directory' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:478:in `create_initial_database' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:213: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-4.1/bin/typo:38 from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in `load' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in `load' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in `new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in `load' from /usr/bin/typo:18 So, why is it trying to do a CREATE TABLE? Have I missed something somewhere which prevents it from realising that this is an upgrade as opposed to an install? Many thanks for any hints you can give me and if you need any more information do let me know! Best wishes, -- Toby From e9_reen at yahoo.com Tue Apr 3 07:17:38 2007 From: e9_reen at yahoo.com (immi immi) Date: Tue, 3 Apr 2007 04:17:38 -0700 (PDT) Subject: [typo] Typo 4.1 admin publish page crashing in IE 6 and IE 7 Message-ID: <33815.82633.qm@web52203.mail.re2.yahoo.com> Hi, I recently deployed typo latest installation on my blog and with a couple of days of messing up was able to finally make it run. every thing worked fine while I was working with Firefox untill I fired the page with IE, the publish page where you write articles does not work in IE. the problem is ajax preview pane, the moment you write any thing in article title or body the preview pane loads and IE browser gives an unknown error all it says is : The webpage cannot be displayed, Most likely cause:Some content or files on this webpage require a program that you don't have installed. can any body help me how to get rid rid of this error. I even tried to integrate FCKeditor, I can get a window pane with it but the problem persists since the preview still loads something that IE doesnt like. what is the work around for this has any body any patches. regards e9 ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070403/919bcf37/attachment-0001.html From toby-typo at bryans.org Tue Apr 3 18:28:02 2007 From: toby-typo at bryans.org (Toby Bryans) Date: Tue, 3 Apr 2007 23:28:02 +0100 (BST) Subject: [typo] 4.1 Upgrade problems In-Reply-To: <2441.172.20.3.91.1175525747.squirrel@admin.cygnetcs.com> References: <2441.172.20.3.91.1175525747.squirrel@admin.cygnetcs.com> Message-ID: <1521.195.149.46.231.1175639282.squirrel@cyglon01.cygnetcs.com> Don't worry about it - there was a problem with the underlying database which meant I had to backup, drop and completely restore the whole thing. Thanks if you did have a look; I'm happily upgraded now! Best wishes, -- Toby > > bryans at cyglon01 ~/www/rails $ typo install > /u01/sites/bryans.org/www/rails/toblog.bryans.org/ > Installing typo 4.1 > Stopping Typo > !!! PID file /u01/sites/bryans.org/www/rails/toblog.bryans.org/tmp/pid.txt > does not exist. Not running? > mongrel::stop reported an error. Use mongrel_rails mongrel::stop -h to get > help. > Checking for existing Typo install in > /u01/sites/bryans.org/www/rails/toblog.bryans.org > Reading files from /usr/lib/ruby/gems/1.8/gems/typo-4.1 > copying rails 1.2.0 to > /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/railties > copying activesupport 1.4.0 to > /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/activesupport > copying activerecord 1.15.0 to > /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/activerecord > copying actionpack 1.13.0 to > /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/actionpack > copying actionmailer 1.3.0 to > /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/actionmailer > copying actionwebservice 1.2.0 to > /u01/sites/bryans.org/www/rails/toblog.bryans.org/vendor/rails/actionwebservice > Making scripts executable > Checking database > Creating initial database > Creating PostgreSQL database > Password: > createdb: database creation failed: ERROR: permission denied to create > database > Password: > createdb: database creation failed: ERROR: permission denied to create > database > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > `log': PGError: ERROR: relation "articles_tags" already exists > (ActiveRecord::StatementInvalid) > : CREATE TABLE articles_tags ( > "article_id" integer DEFAULT NULL, > "tag_id" integer DEFAULT NULL > ) from > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_adapters/postgresql_adapter.rb:152:in > `execute' > from > /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:125:in > `create' > from > /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:124:in > `each' > from > /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:124:in > `create' > from > /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:479:in > `create_initial_database' > from > /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:689:in > `in_directory' > from > /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:478:in > `create_initial_database' > from > /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:213: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-4.1/bin/typo:38 > from > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in > `load' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in > `load' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in > `new_constants_in' > from > /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in > `load' > from /usr/bin/typo:18 > > So, why is it trying to do a CREATE TABLE? Have I missed something > somewhere which prevents it from realising that this is an upgrade as > opposed to an install? > > Many thanks for any hints you can give me and if you need any more > information do let me know! > > Best wishes, > > -- > Toby > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From ahodgkin at rowing.org.uk Tue Apr 3 19:38:13 2007 From: ahodgkin at rowing.org.uk (Andrew Hodgkinson) Date: Wed, 04 Apr 2007 00:38:13 +0100 Subject: [typo] New URL generation code cannot preserve port or protocol? Message-ID: <4612E565.5040806@rowing.org.uk> I recently discovered the all-new Typo site. Great stuff! Even better, Typo 4.1 is out and works on Rails 1.2. My host uses this, so I've just upgraded to Typo 4.1 from a Rails-frozen 4.0.0. Despite having to reapply various integration related patches and tweaks from the older version, the process was really painless and the upgrade has more or less gone without a hitch - except for one rather large speed bump. The problem lies with Typo 4.1's new URL code. While having no reference to a Controller makes things cleaner internally, it seems there is no way to know anything about the request parameters - specifically, whether or not an unusual port number or HTTPS were used. On my site, HTTPS fetches are needed because Typo is integrated with a single sign-on engine that requires them. Over plain HTTP, users always appear to be logged out. Unfortunately, most URLs generated by Typo 4.1 seems to be a fully specified link including host and protocol, assuming HTTP and stripping out the port number. Having a port number is useful to me for various reasons, but its loss is not a disaster; OTOH, having the site lose track of HTTPS is a show-stopper because that breaks the site fundamentally for normal users. Is there a swift way to get Typo to preserve protocol and port? I would in the first instance suggest that Typo should only ever generate relative URLs anyway, thus sidestepping the issue, but of course it needs to construct fully specified URLs for RSS feeds and there's (probably) no point having two different URL generation paths. TIA for all advice. -- TTFN, Andrew Hodgkinson Find some electronic music at: Photos, wallpaper, software and more: http://pond.org.uk/music.html http://pond.org.uk/ From eamonford at mac.com Wed Apr 4 13:11:54 2007 From: eamonford at mac.com (Eamon Ford) Date: Wed, 4 Apr 2007 10:11:54 -0700 Subject: [typo] How do I make Typo use CGI? Message-ID: <2CB12716-9543-4FBA-9535-92D5CFD48C21@mac.com> Hi Guys, I'm running Typo on Dreamhost with shared hosting. Apparently, this is a problem, because I keep getting 500 errors, and it used to be only sometimes, but then it started getting worse and worse, and now it's 100% of the time. I've scoured Google for this problem, and it looks like it's a problem with Fast CGI on shared hosting. I've tried everything to fix it, but to no avail. So my question is, would it possibly help to make Typo use CGI instead of Fast CGI? If so, how can I do this? Thanks in advance. From bill at bfccomputing.com Thu Apr 12 00:25:35 2007 From: bill at bfccomputing.com (Bill McGonigle) Date: Thu, 12 Apr 2007 00:25:35 -0400 Subject: [typo] 4.1: proxy errors, formatting w/ scribbish and markdown Message-ID: Hi, Folks - I've upgraded my blog to 4.1 and hit a couple snags - I wonder if anyone here has solved these already: 1) I reverse proxy for mongrel with Apache, and everything was perfect under 4.0. In 4.1, on POST requests, often I get an error from mod_proxy, to the effect that the upstream server didn't respond properly. In fact, the requests succeeded, something just made mod_proxy grumpy. 2) Blocks of text that start with 4 spaces under MarkDown, to get the green-screen effect (under scribbish) used to look perfect under 4.0. Under 4.1, the first line of text is OK, but subsequent lines are heavily indented. Example: http://blog.bfccomputing.com/articles/2007/03/30/tracking-blog-spam I haven't yet looked into either further - figured I'd ask if anybody else had already seen/solved these first. Thanks, -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 New Blog: http://blog.bfccomputing.com/ VCard: http://bfccomputing.com/vcard/bill.vcf From timocratic at gmail.com Fri Apr 13 15:21:50 2007 From: timocratic at gmail.com (Tim Connor) Date: Fri, 13 Apr 2007 12:21:50 -0700 Subject: [typo] Sitealizer in trunk a bad idea? Bloat and stability issues Message-ID: <5906dd440704131221j20d19e34ob7030c68853d6d8d@mail.gmail.com> Okay, maybe I'm completely off base here, but this seemed like the best place to check. Sorry if I step on any toes. Something in a recent upgrade seems to have made my typo install a total memory hog - like way more than it was before, even. I did an update where the addition of sitealizer was the most obvious change, and then everything went tits up. I'm just picking on sitealizer, because it's an obvious target, but I have zero firm evidence that is it, and I might be completely wrong. I'm trying to get my blog back up after the subsequent downgrade, and then I'll see if it runs smoother - like less than a couple hundred megs across 4 worker processes it is immediately consuming upon re-starting. I assume sitealizer runs some around filters on each request, or something similar? Does it do so on admin requests too, because my live preview went super extra wonky (even if sitealizer isn't the main cause of my problem, having it run on the live preview would be bad, obviously). Does this not invalidate some of the benefits of the caching? I know trunk isn't expected to be stable, but maybe sort of thing should go in experimental? I understand the wish to add every possible feature, but I figure most bloggers capable of running typo have google analytics, feedburner, and their own server side analysis tools already and typo doesn't exactly have a reputation as the sveltest platform. In fact issues keeping typo running on a shared host seem to be one the biggest common Rails deployment problems. Hmm, I wonder if a default base install with a lot of the "optionals" *coughcruftcough* not on by default would help that. Tim From timocratic at gmail.com Fri Apr 13 18:15:50 2007 From: timocratic at gmail.com (Tim Connor) Date: Fri, 13 Apr 2007 15:15:50 -0700 Subject: [typo] Sitealizer in trunk a bad idea? Bloat and stability issues In-Reply-To: <5906dd440704131221j20d19e34ob7030c68853d6d8d@mail.gmail.com> References: <5906dd440704131221j20d19e34ob7030c68853d6d8d@mail.gmail.com> Message-ID: <5906dd440704131515h1d96648alda8be9f84a4d7fed@mail.gmail.com> So it seems I am running a fatter and more sluggish than it has in recent memory, even with sitealizer axed. This whole thing makes me wonder, how hard would it be to make a minimal branch, that instead of having all the filters, sidebars, and extra processing steps on by default, they have to be added or enabled. With all of this directly added in the main repository as they are (instead of accessed by externals, maybe?), even if you go through the pain of cleaning out your vendor and plugin folder, to pare down what you aren't using, you're doomed if you ever want to run svn update. Tim On 4/13/07, Tim Connor wrote: > Okay, maybe I'm completely off base here, but this seemed like the > best place to check. Sorry if I step on any toes. Something in a > recent upgrade seems to have made my typo install a total memory hog - > like way more than it was before, even. I did an update where the > addition of sitealizer was the most obvious change, and then > everything went tits up. I'm just picking on sitealizer, because it's > an obvious target, but I have zero firm evidence that is it, and I > might be completely wrong. > > I'm trying to get my blog back up after the subsequent downgrade, and > then I'll see if it runs smoother - like less than a couple hundred > megs across 4 worker processes it is immediately consuming upon > re-starting. > > I assume sitealizer runs some around filters on each request, or > something similar? Does it do so on admin requests too, because my > live preview went super extra wonky (even if sitealizer isn't the main > cause of my problem, having it run on the live preview would be bad, > obviously). Does this not invalidate some of the benefits of the > caching? I know trunk isn't expected to be stable, but maybe sort of > thing should go in experimental? > > I understand the wish to add every possible feature, but I figure most > bloggers capable of running typo have google analytics, feedburner, > and their own server side analysis tools already and typo doesn't > exactly have a reputation as the sveltest platform. In fact issues > keeping typo running on a shared host seem to be one the biggest > common Rails > deployment problems. Hmm, I wonder if a default base install with a > lot of the "optionals" *coughcruftcough* not on by default would help > that. > > > Tim > From scott at sigkill.org Sun Apr 15 00:26:31 2007 From: scott at sigkill.org (Scott Laird) Date: Sat, 14 Apr 2007 21:26:31 -0700 Subject: [typo] How do I make Typo use CGI? In-Reply-To: <2CB12716-9543-4FBA-9535-92D5CFD48C21@mac.com> References: <2CB12716-9543-4FBA-9535-92D5CFD48C21@mac.com> Message-ID: <14b7e5ef0704142126n24966721qb6e3ac506ea125b7@mail.gmail.com> You really don't want to run Rails apps as CGIs; it takes 5+ seconds to start up, so *every* request will take multiple seconds to fulfill. If you want to see, change the 'dispatch.fcgi' line in the .htaccess to use dispatch.cgi, assuming that the CGI dispatcher hasn't been deleted out of public/. Scott On 4/4/07, Eamon Ford wrote: > Hi Guys, > I'm running Typo on Dreamhost with shared hosting. Apparently, this > is a problem, because I keep getting 500 errors, and it used to be > only sometimes, but then it started getting worse and worse, and now > it's 100% of the time. I've scoured Google for this problem, and it > looks like it's a problem with Fast CGI on shared hosting. I've tried > everything to fix it, but to no avail. So my question is, would it > possibly help to make Typo use CGI instead of Fast CGI? If so, how > can I do this? > Thanks in advance. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From eamonford at mac.com Sun Apr 15 01:07:39 2007 From: eamonford at mac.com (Eamon Ford) Date: Sat, 14 Apr 2007 22:07:39 -0700 Subject: [typo] How do I make Typo use CGI? In-Reply-To: <14b7e5ef0704142126n24966721qb6e3ac506ea125b7@mail.gmail.com> References: <2CB12716-9543-4FBA-9535-92D5CFD48C21@mac.com> <14b7e5ef0704142126n24966721qb6e3ac506ea125b7@mail.gmail.com> Message-ID: <39ACBC37-B868-4163-9BF4-23A58739E925@mac.com> Ooh, that sounds bad. Okay, thanks for the reply. On Apr 14, 2007, at 9:26 PM, Scott Laird wrote: > You really don't want to run Rails apps as CGIs; it takes 5+ seconds > to start up, so *every* request will take multiple seconds to fulfill. > If you want to see, change the 'dispatch.fcgi' line in the .htaccess > to use dispatch.cgi, assuming that the CGI dispatcher hasn't been > deleted out of public/. > > > Scott > > On 4/4/07, Eamon Ford wrote: >> Hi Guys, >> I'm running Typo on Dreamhost with shared hosting. Apparently, this >> is a problem, because I keep getting 500 errors, and it used to be >> only sometimes, but then it started getting worse and worse, and now >> it's 100% of the time. I've scoured Google for this problem, and it >> looks like it's a problem with Fast CGI on shared hosting. I've tried >> everything to fix it, but to no avail. So my question is, would it >> possibly help to make Typo use CGI instead of Fast CGI? If so, how >> can I do this? >> Thanks in advance. >> _______________________________________________ >> Typo-list mailing list >> Typo-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/typo-list >> > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From neuro at 7el.net Sun Apr 15 12:58:32 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Sun, 15 Apr 2007 18:58:32 +0200 Subject: [typo] Some changes on typosphere.org Message-ID: <2FC06A74-EE0C-4635-9EC9-9D5333912932@7el.net> Hello list, There has been a few changes on typosphere.org last week ? The whole platform has moved on a new host, which means trac goes really much faster. ? There's now a website on typosphere.org. Thank you Jordan for your work on the theme. Trac theme may follow soon. ? There's an official Typo blog at http://blog.typosphere.org And lot more to come, stay tuned 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 neuro at 7el.net Sun Apr 15 13:09:21 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Sun, 15 Apr 2007 19:09:21 +0200 Subject: [typo] Typo plugins issues Message-ID: <89E2EA02-5AFE-46BB-8007-96359B72CB00@7el.net> Hi list, Between 4.0 and 4.1, there were lots of changes in the plugins architecture. Plugins have been rewriten to become simple rails plugins you can install with script/plugin install {#PLUGIN_SOURCE_URI}. We've been talking about this lately Piers and I. We're going to remove most of them from the application core and set up an official plugin repository. This aims at 4 things ? Enlighten Typo as much as we can. ? Stop waiting for a new Typo release each time a service changes its API. We'll just update the plugins. ? Remove redundancy : I guess most people don't use both delicious and magnolia. And I wonder how much of you really use the xbox card plugin Here are the plugins we're going to leep in the trunk : ? Archives (will be activated in the default install) ? Amazon (because it interacts with some text filters, it's a good example to show) ? Categories (will be activated in the default install) ? Recent comments ? Statics (with Typo developers blogroll activated by default) ? Tags ? XML syndication (will be activated in the default install) We'll start moving less used plugins starting today, and the whole change will be removed at the next release. Remember using the trunk is always at your own risks. 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 eckhardt.f at googlemail.com Thu Apr 19 04:58:55 2007 From: eckhardt.f at googlemail.com (Frithjof Eckhardt) Date: Thu, 19 Apr 2007 10:58:55 +0200 Subject: [typo] utf-8 problems Message-ID: <85494f4f0704190158s30b76e2ap34b15c1af2e6c533@mail.gmail.com> Hi, I have some problems with utf-8 configuration with my blog (www.rubykids.de). It's o Typo 4.0 o database collation set to utf8_unicode_ci (database and all the tables) o database.yml contains "encoding:utf8" o database content is utf8 (checked via export and Vi) o Typo seems to send response header Content-Type="text/html; charset=utf-8" correctly o I manually added a before_filter to application.rb with the on line: @headers["Content-Type"] = "text/html;charset=UTF-8" I did this after the problem occured the first time, but it seems to be worthless. Now I have the strange effect that after some days/weeks all special characters (especially german umlauts) are displayed encoded incorrectly. It looks very ugly and unprofessional. I found out that the following workaround helps: o sweep the Typo cache o force fastcgi process to restart Sometimes I have to do both twice. Has anybody encountered similar effects? Is there a known bug I am not aware of? Any help is extremely appreciated. Thanks in advance. Cheers! Frithjof -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070419/59443600/attachment.html From trejkaz at trypticon.org Thu Apr 19 22:47:37 2007 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 20 Apr 2007 12:47:37 +1000 (EST) Subject: [typo] https: URLs in feedback Message-ID: <47761.150.101.121.216.1177037257.squirrel@home.trypticon.org> I've noticed that if a user submits a comment with their URL starting with https://example.com for example, that it becomes http://https//example.com . Was this intentional? TX From trejkaz at trypticon.org Thu Apr 19 23:22:15 2007 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 20 Apr 2007 13:22:15 +1000 (EST) Subject: [typo] div.sidebar-node vanished? Message-ID: <33773.150.101.121.216.1177039335.squirrel@home.trypticon.org> I've noticed that the current trunk doesn't have the div.sidebar-node wrapper around each sidebar node anymore. My theme was using this to wrap each sidebar node in a border. I checked the _sidebar.rhtml partial and it does still contain this element. Does render_sidebar no longer use the partial? If it doesn't, is that a bug? TX From trejkaz at trypticon.org Fri Apr 20 05:39:41 2007 From: trejkaz at trypticon.org (Trejkaz) Date: Fri, 20 Apr 2007 19:39:41 +1000 Subject: [typo] utf-8 problems In-Reply-To: <85494f4f0704190158s30b76e2ap34b15c1af2e6c533@mail.gmail.com> References: <85494f4f0704190158s30b76e2ap34b15c1af2e6c533@mail.gmail.com> Message-ID: <200704201939.43877.trejkaz@trypticon.org> On Thursday 19 April 2007 18:58, Frithjof Eckhardt wrote: > Has anybody encountered similar effects? Is there a known bug I am not > aware of? > Any help is extremely appreciated. I've had this happen to me but in all situations, looking at the response headers showed that it wasn't sending UTF-8. I'm not sure if it was due to caching or whatnot, but explicitly adding "AddDefaultCharset utf-8" to public/.htaccess solved the problem for me. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20070420/3e7d632b/attachment.bin From eckhardt.f at googlemail.com Fri Apr 20 07:07:04 2007 From: eckhardt.f at googlemail.com (Frithjof Eckhardt) Date: Fri, 20 Apr 2007 13:07:04 +0200 Subject: [typo] utf-8 problems In-Reply-To: <200704201939.43877.trejkaz@trypticon.org> References: <85494f4f0704190158s30b76e2ap34b15c1af2e6c533@mail.gmail.com> <200704201939.43877.trejkaz@trypticon.org> Message-ID: <85494f4f0704200407u3a8610e1hb39d1b29c7142e44@mail.gmail.com> I will try it, thanks. But what is strange to me is that the content itself arriving at my browser is wrongly encoded already and as I anderstand the "content-type" thing, it tells the browser only how to interpret the content. So when the characters are arriving crumbled, the browser has no chance anymore to display something meeningful. 2007/4/20, Trejkaz : > > > I'm not sure if it was due to caching or whatnot, but explicitly > > adding "AddDefaultCharset utf-8" to public/.htaccess solved the problem > for > > me. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070420/c71058a7/attachment.html From warnero at gmail.com Sun Apr 22 11:14:40 2007 From: warnero at gmail.com (Warner Onstine) Date: Sun, 22 Apr 2007 08:14:40 -0700 Subject: [typo] trying to upgrade Message-ID: Hey all, I'm trying to upgrade my blog to 4.1, but I'm running into some errors. Here's the current one: Making scripts executable Checking database Creating initial database /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log': Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"article_id" integer DEFAULT NULL, (ActiveRecord::StatementInvalid) "tag_id" integer DEFAULT NULL )' at line 2: CREATE TABLE articles_tags ( "article_id" integer DEFAULT NULL, "tag_id" integer DEFAULT NULL ) from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:125:in `create' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:124:in `create' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:479:in `create_initial_database' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:689:in `in_directory' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:478:in `create_initial_database' from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:213: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-4.1/bin/typo:38 from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in `load' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in `new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in `load' from /usr/bin/typo:18 Thanks in advance, I really don't know where I should start on this one. Just before this it was complaining about not finding a typo_dev database, so I went ahead and created it, the typo_test one and then added the existing user to those two and ran it again, getting this error. -warner -- Warner Onstine - Programmer/Author New book! Tapestry 101 available at http://sourcebeat.com/books/ tapestrylive.html warner at warneronstine.com http://warneronstine.com/blog From warnero at gmail.com Sun Apr 22 13:34:24 2007 From: warnero at gmail.com (Warner Onstine) Date: Sun, 22 Apr 2007 10:34:24 -0700 Subject: [typo] trying to upgrade In-Reply-To: References: Message-ID: Ok, I somehow managed to upgrade, or so I thought. Now when I hit my front-page I get this error: Mysql::Error: Table 'typo.articles_categories' doesn't exist: SELECT contents.`id` AS t0_r0, contents.`type` AS t0_r1, contents.`title` AS t0_r2, contents.`author` AS t0_r3, contents.`body` AS t0_r4, contents.`body_html` AS t0_r5, contents.`extended` AS t0_r6, contents.`excerpt` AS t0_r7, contents.`keywords` AS t0_r8, contents.`created_at` AS t0_r9, contents.`updated_at` AS t0_r10, contents.`extended_html` AS t0_r11, contents.`user_id` AS t0_r12, contents.`permalink` AS t0_r13, contents.`guid` AS t0_r14, contents.`text_filter_id` AS t0_r15, contents.`whiteboard` AS t0_r16, contents.`article_id` AS t0_r17, contents.`email` AS t0_r18, contents.`url` AS t0_r19, contents.`ip` AS t0_r20, contents.`blog_name` AS t0_r21, contents.`name` AS t0_r22, contents.`published` AS t0_r23, contents.`allow_pings` AS t0_r24, contents.`allow_comments` AS t0_r25, contents.`blog_id` AS t0_r26, contents.`published_at` AS t0_r27, contents.`state` AS t0_r28, contents.`status_confirmed` AS t0_r29, categories.`id` AS t1_r0, categories.`name` AS t1_r1, categories.`position` AS t1_r2, categories.`permalink` AS t1_r3, tags.`id` AS t2_r0, tags.`name` AS t2_r1, tags.`created_at` AS t2_r2, tags.`updated_at` AS t2_r3, tags.`display_name` AS t2_r4, users.`id` AS t3_r0, users.`login` AS t3_r1, users.`password` AS t3_r2, users.`email` AS t3_r3, users.`name` AS t3_r4, users.`notify_via_email` AS t3_r5, users.`notify_on_new_articles` AS t3_r6, users.`notify_on_comments` AS t3_r7, users.`notify_watch_my_articles` AS t3_r8, users.`notify_via_jabber` AS t3_r9, users.`jabber` AS t3_r10, blogs.`id` AS t4_r0, blogs.`settings` AS t4_r1 FROM contents LEFT OUTER JOIN articles_categories ON articles_categories.article_id = contents.id LEFT OUTER JOIN categories ON categories.id = articles_categories.category_id LEFT OUTER JOIN articles_tags ON articles_tags.article_id = contents.id LEFT OUTER JOIN tags ON tags.id = articles_tags.tag_id LEFT OUTER JOIN users ON users.id = contents.user_id LEFT OUTER JOIN blogs ON blogs.id = contents.blog_id WHERE (published = 1 AND contents.published_at < '2007-04-22 10:35:45' AND blog_id = 1) AND ( (contents.`type` = 'Article' ) ) AND contents.id IN ('287', '231', '230', '226', '225', '224', '6', '5', '4', '1') ORDER BY contents.published_at DESC And when I go to the login page I get a blank screen. Looking at the code, the page is built but there is no login screen whatsoever. -warner On 4/22/07, Warner Onstine wrote: > Hey all, I'm trying to upgrade my blog to 4.1, but I'm running into > some errors. Here's the current one: > > Making scripts executable > Checking database > Creating initial database > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_adapters/abstract_adapter.rb:128:in > `log': Mysql::Error: You have an error in your SQL syntax; check the > manual that corresponds to your MySQL server version for the right > syntax to use near '"article_id" integer DEFAULT NULL, > (ActiveRecord::StatementInvalid) > "tag_id" integer DEFAULT NULL > )' at line 2: CREATE TABLE articles_tags ( > "article_id" integer DEFAULT NULL, > "tag_id" integer DEFAULT NULL > ) from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_adapters/mysql_adapter.rb:243:in > `execute' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:125:in > `create' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/databases.rb:124:in > `create' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:479:in > `create_initial_database' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:689:in > `in_directory' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:478:in > `create_initial_database' > from /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:213: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-4.1/bin/typo:38 > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in > `load' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in > `new_constants_in' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in > `load' > from /usr/bin/typo:18 > > Thanks in advance, I really don't know where I should start on this > one. Just before this it was complaining about not finding a typo_dev > database, so I went ahead and created it, the typo_test one and then > added the existing user to those two and ran it again, getting this > error. > > -warner > > -- > Warner Onstine - Programmer/Author > New book! Tapestry 101 available at http://sourcebeat.com/books/ > tapestrylive.html > warner at warneronstine.com > http://warneronstine.com/blog > -- Warner Onstine - Programmer/Author New book! Tapestry 101 available at http://sourcebeat.com/books/ tapestrylive.html warner at warneronstine.com http://warneronstine.com/blog From linda-list at i-sol.biz Sun Apr 22 20:04:10 2007 From: linda-list at i-sol.biz (Linda Derezinski) Date: Sun, 22 Apr 2007 20:04:10 -0400 Subject: [typo] trying to upgrade In-Reply-To: Message-ID: Did you clear out your sessions from the database? Did you clear out the cache from disk? -Linda On 4/22/07 1:34 PM, "Warner Onstine" wrote: > Ok, I somehow managed to upgrade, or so I thought. Now when I hit my > front-page I get this error: > Mysql::Error: Table 'typo.articles_categories' doesn't exist: SELECT > contents.`id` AS t0_r0, contents.`type` AS t0_r1, contents.`title` AS > t0_r2, contents.`author` AS t0_r3, contents.`body` AS t0_r4, > contents.`body_html` AS t0_r5, contents.`extended` AS t0_r6, > contents.`excerpt` AS t0_r7, contents.`keywords` AS t0_r8, > contents.`created_at` AS t0_r9, contents.`updated_at` AS t0_r10, > contents.`extended_html` AS t0_r11, contents.`user_id` AS t0_r12, > contents.`permalink` AS t0_r13, contents.`guid` AS t0_r14, > contents.`text_filter_id` AS t0_r15, contents.`whiteboard` AS t0_r16, > contents.`article_id` AS t0_r17, contents.`email` AS t0_r18, > contents.`url` AS t0_r19, contents.`ip` AS t0_r20, > contents.`blog_name` AS t0_r21, contents.`name` AS t0_r22, > contents.`published` AS t0_r23, contents.`allow_pings` AS t0_r24, > contents.`allow_comments` AS t0_r25, contents.`blog_id` AS t0_r26, > contents.`published_at` AS t0_r27, contents.`state` AS t0_r28, > contents.`status_confirmed` AS t0_r29, categories.`id` AS t1_r0, > categories.`name` AS t1_r1, categories.`position` AS t1_r2, > categories.`permalink` AS t1_r3, tags.`id` AS t2_r0, tags.`name` AS > t2_r1, tags.`created_at` AS t2_r2, tags.`updated_at` AS t2_r3, > tags.`display_name` AS t2_r4, users.`id` AS t3_r0, users.`login` AS > t3_r1, users.`password` AS t3_r2, users.`email` AS t3_r3, users.`name` > AS t3_r4, users.`notify_via_email` AS t3_r5, > users.`notify_on_new_articles` AS t3_r6, users.`notify_on_comments` AS > t3_r7, users.`notify_watch_my_articles` AS t3_r8, > users.`notify_via_jabber` AS t3_r9, users.`jabber` AS t3_r10, > blogs.`id` AS t4_r0, blogs.`settings` AS t4_r1 FROM contents LEFT > OUTER JOIN articles_categories ON articles_categories.article_id = > contents.id LEFT OUTER JOIN categories ON categories.id = > articles_categories.category_id LEFT OUTER JOIN articles_tags ON > articles_tags.article_id = contents.id LEFT OUTER JOIN tags ON tags.id > = articles_tags.tag_id LEFT OUTER JOIN users ON users.id = > contents.user_id LEFT OUTER JOIN blogs ON blogs.id = contents.blog_id > WHERE (published = 1 AND contents.published_at < '2007-04-22 10:35:45' > AND blog_id = 1) AND ( (contents.`type` = 'Article' ) ) AND > contents.id IN ('287', '231', '230', '226', '225', '224', '6', '5', > '4', '1') ORDER BY contents.published_at DESC > > And when I go to the login page I get a blank screen. Looking at the > code, the page is built but there is no login screen whatsoever. > > -warner > > On 4/22/07, Warner Onstine wrote: >> Hey all, I'm trying to upgrade my blog to 4.1, but I'm running into >> some errors. Here's the current one: >> >> Making scripts executable >> Checking database >> Creating initial database >> /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_ >> adapters/abstract_adapter.rb:128:in >> `log': Mysql::Error: You have an error in your SQL syntax; check the >> manual that corresponds to your MySQL server version for the right >> syntax to use near '"article_id" integer DEFAULT NULL, >> (ActiveRecord::StatementInvalid) >> "tag_id" integer DEFAULT NULL >> )' at line 2: CREATE TABLE articles_tags ( >> "article_id" integer DEFAULT NULL, >> "tag_id" integer DEFAULT NULL >> ) from >> /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_ >> adapters/mysql_adapter.rb:243:in >> `execute' >> from >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/dat >> abases.rb:125:in >> `create' >> from >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/dat >> abases.rb:124:in >> `create' >> from >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb: >> 479:in >> `create_initial_database' >> from >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb: >> 689:in >> `in_directory' >> from >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb: >> 478:in >> `create_initial_database' >> from >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb: >> 213: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/com >> mands.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-4.1/bin/typo:38 >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependenci >> es.rb:489:in >> `load' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependenci >> es.rb:343:in >> `new_constants_in' >> from >> /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependenci >> es.rb:489:in >> `load' >> from /usr/bin/typo:18 >> >> Thanks in advance, I really don't know where I should start on this >> one. Just before this it was complaining about not finding a typo_dev >> database, so I went ahead and created it, the typo_test one and then >> added the existing user to those two and ran it again, getting this >> error. >> >> -warner >> >> -- >> Warner Onstine - Programmer/Author >> New book! Tapestry 101 available at http://sourcebeat.com/books/ >> tapestrylive.html >> warner at warneronstine.com >> http://warneronstine.com/blog >> > From warnero at gmail.com Sun Apr 22 20:29:52 2007 From: warnero at gmail.com (Warner Onstine) Date: Sun, 22 Apr 2007 17:29:52 -0700 Subject: [typo] trying to upgrade In-Reply-To: References: Message-ID: I finally got this working by installing to a new directory and moving over my db config (and some other configs I had done in the installer directory). It was a pain to say the least but at least its up and running again. What appears to have happened is that it had upgraded the db fine but something was still hanging around somewhere (I had completely removed everything from the cache directory to no avail). -warner On 4/22/07, Linda Derezinski wrote: > Did you clear out your sessions from the database? Did you clear out the > cache from disk? > > -Linda > > > On 4/22/07 1:34 PM, "Warner Onstine" wrote: > > > Ok, I somehow managed to upgrade, or so I thought. Now when I hit my > > front-page I get this error: > > Mysql::Error: Table 'typo.articles_categories' doesn't exist: SELECT > > contents.`id` AS t0_r0, contents.`type` AS t0_r1, contents.`title` AS > > t0_r2, contents.`author` AS t0_r3, contents.`body` AS t0_r4, > > contents.`body_html` AS t0_r5, contents.`extended` AS t0_r6, > > contents.`excerpt` AS t0_r7, contents.`keywords` AS t0_r8, > > contents.`created_at` AS t0_r9, contents.`updated_at` AS t0_r10, > > contents.`extended_html` AS t0_r11, contents.`user_id` AS t0_r12, > > contents.`permalink` AS t0_r13, contents.`guid` AS t0_r14, > > contents.`text_filter_id` AS t0_r15, contents.`whiteboard` AS t0_r16, > > contents.`article_id` AS t0_r17, contents.`email` AS t0_r18, > > contents.`url` AS t0_r19, contents.`ip` AS t0_r20, > > contents.`blog_name` AS t0_r21, contents.`name` AS t0_r22, > > contents.`published` AS t0_r23, contents.`allow_pings` AS t0_r24, > > contents.`allow_comments` AS t0_r25, contents.`blog_id` AS t0_r26, > > contents.`published_at` AS t0_r27, contents.`state` AS t0_r28, > > contents.`status_confirmed` AS t0_r29, categories.`id` AS t1_r0, > > categories.`name` AS t1_r1, categories.`position` AS t1_r2, > > categories.`permalink` AS t1_r3, tags.`id` AS t2_r0, tags.`name` AS > > t2_r1, tags.`created_at` AS t2_r2, tags.`updated_at` AS t2_r3, > > tags.`display_name` AS t2_r4, users.`id` AS t3_r0, users.`login` AS > > t3_r1, users.`password` AS t3_r2, users.`email` AS t3_r3, users.`name` > > AS t3_r4, users.`notify_via_email` AS t3_r5, > > users.`notify_on_new_articles` AS t3_r6, users.`notify_on_comments` AS > > t3_r7, users.`notify_watch_my_articles` AS t3_r8, > > users.`notify_via_jabber` AS t3_r9, users.`jabber` AS t3_r10, > > blogs.`id` AS t4_r0, blogs.`settings` AS t4_r1 FROM contents LEFT > > OUTER JOIN articles_categories ON articles_categories.article_id = > > contents.id LEFT OUTER JOIN categories ON categories.id = > > articles_categories.category_id LEFT OUTER JOIN articles_tags ON > > articles_tags.article_id = contents.id LEFT OUTER JOIN tags ON tags.id > > = articles_tags.tag_id LEFT OUTER JOIN users ON users.id = > > contents.user_id LEFT OUTER JOIN blogs ON blogs.id = contents.blog_id > > WHERE (published = 1 AND contents.published_at < '2007-04-22 10:35:45' > > AND blog_id = 1) AND ( (contents.`type` = 'Article' ) ) AND > > contents.id IN ('287', '231', '230', '226', '225', '224', '6', '5', > > '4', '1') ORDER BY contents.published_at DESC > > > > And when I go to the login page I get a blank screen. Looking at the > > code, the page is built but there is no login screen whatsoever. > > > > -warner > > > > On 4/22/07, Warner Onstine wrote: > >> Hey all, I'm trying to upgrade my blog to 4.1, but I'm running into > >> some errors. Here's the current one: > >> > >> Making scripts executable > >> Checking database > >> Creating initial database > >> /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_ > >> adapters/abstract_adapter.rb:128:in > >> `log': Mysql::Error: You have an error in your SQL syntax; check the > >> manual that corresponds to your MySQL server version for the right > >> syntax to use near '"article_id" integer DEFAULT NULL, > >> (ActiveRecord::StatementInvalid) > >> "tag_id" integer DEFAULT NULL > >> )' at line 2: CREATE TABLE articles_tags ( > >> "article_id" integer DEFAULT NULL, > >> "tag_id" integer DEFAULT NULL > >> ) from > >> /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.0/lib/active_record/connection_ > >> adapters/mysql_adapter.rb:243:in > >> `execute' > >> from > >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/dat > >> abases.rb:125:in > >> `create' > >> from > >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer/dat > >> abases.rb:124:in > >> `create' > >> from > >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb: > >> 479:in > >> `create_initial_database' > >> from > >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb: > >> 689:in > >> `in_directory' > >> from > >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb: > >> 478:in > >> `create_initial_database' > >> from > >> /usr/lib/ruby/gems/1.8/gems/rails-app-installer-0.2.0/lib/rails-installer.rb: > >> 213: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/com > >> mands.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-4.1/bin/typo:38 > >> from > >> /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependenci > >> es.rb:489:in > >> `load' > >> from > >> /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependenci > >> es.rb:343:in > >> `new_constants_in' > >> from > >> /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependenci > >> es.rb:489:in > >> `load' > >> from /usr/bin/typo:18 > >> > >> Thanks in advance, I really don't know where I should start on this > >> one. Just before this it was complaining about not finding a typo_dev > >> database, so I went ahead and created it, the typo_test one and then > >> added the existing user to those two and ran it again, getting this > >> error. > >> > >> -warner > >> > >> -- > >> Warner Onstine - Programmer/Author > >> New book! Tapestry 101 available at http://sourcebeat.com/books/ > >> tapestrylive.html > >> warner at warneronstine.com > >> http://warneronstine.com/blog > >> > > > > > -- Warner Onstine - Programmer/Author New book! Tapestry 101 available at http://sourcebeat.com/books/ tapestrylive.html warner at warneronstine.com http://warneronstine.com/blog From benr at x-cr.com Tue Apr 24 10:45:10 2007 From: benr at x-cr.com (Ben Reubenstein) Date: Tue, 24 Apr 2007 08:45:10 -0600 Subject: [typo] Typo plugins issues In-Reply-To: <89E2EA02-5AFE-46BB-8007-96359B72CB00@7el.net> References: <89E2EA02-5AFE-46BB-8007-96359B72CB00@7el.net> Message-ID: <44c79a160704240745n7ecd2a78k713877989711923d@mail.gmail.com> Hello All ~ Read this post too late. I upgraded to trunk, migrated, and things were borked on my home page. I was getting errors like this in the log: Filter chain halted as [#] did not yield. The admin worked so I clicked every link until something failed, and it turned out to be the removal of the Xbox Gamertag plugin for the sidebar. You will see an error like this: ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'XboxSidebar'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Sidebar.inheritance_column to use another column for that information.) To fix I used the mysql command line and ran the following on my production database: delete from sidebars where type = 'XboxSidebar'; Maybe in the future when a plugin is removed from typo, there is a raised exception that draws your attention to a commented line in a migration that would when uncommented would remove the offending data from your sidebars table for the legacy plugin? Thx, Ben On 4/15/07, Frederic de Villamil wrote: > Hi list, > > Between 4.0 and 4.1, there were lots of changes in the plugins > architecture. > Plugins have been rewriten to become simple rails plugins you can > install with script/plugin install {#PLUGIN_SOURCE_URI}. > > We've been talking about this lately Piers and I. We're going to > remove most of them from the application core and set up an official > plugin repository. > > This aims at 4 things > ? Enlighten Typo as much as we can. > ? Stop waiting for a new Typo release each time a service changes its > API. We'll just update the plugins. > ? Remove redundancy : I guess most people don't use both delicious > and magnolia. And I wonder how much of you really use the xbox card > plugin > > Here are the plugins we're going to leep in the trunk : > ? Archives (will be activated in the default install) > ? Amazon (because it interacts with some text filters, it's a good > example to show) > ? Categories (will be activated in the default install) > ? Recent comments > ? Statics (with Typo developers blogroll activated by default) > ? Tags > ? XML syndication (will be activated in the default install) > > We'll start moving less used plugins starting today, and the whole > change will be removed at the next release. Remember using the trunk > is always at your own risks. > > 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 > > > > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Ben Reubenstein 303-947-0446 http://www.benr75.com From mikemondragon at gmail.com Wed Apr 25 04:07:53 2007 From: mikemondragon at gmail.com (Mike Mondragon) Date: Wed, 25 Apr 2007 01:07:53 -0700 Subject: [typo] Capistrano-fied Typo 4.0.3 Message-ID: <967d3b9a0704250107s37ab8b6dwb62bfa41c3bda4e2@mail.gmail.com> I put together a blog post about sourcing a local Typo 4.0.3 into a Subversion repository so the owner can customize it separate from the official source. The post includes instructions for adding a Capistrano configuration to the local Typo so the owner can better control its deployment. Also covered is how to run the Typo on a balanced Mongrel cluster with the Apache 2.2 proxy module doing the balancing. http://blog.mondragon.cc/articles/2007/04/08/maintaining-your-own-typo-4-0-3 When I update to Typo 4.1 I'll document my deployment strategy for anyone interested. Thanks Mike From neuro at 7el.net Wed Apr 25 04:16:04 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Wed, 25 Apr 2007 10:16:04 +0200 Subject: [typo] Capistrano-fied Typo 4.0.3 In-Reply-To: <967d3b9a0704250107s37ab8b6dwb62bfa41c3bda4e2@mail.gmail.com> References: <967d3b9a0704250107s37ab8b6dwb62bfa41c3bda4e2@mail.gmail.com> Message-ID: Le 25 avr. 07 ? 10:07, Mike Mondragon a ?crit : > I put together a blog post about sourcing a local Typo 4.0.3 into a > Subversion repository so the owner can customize it separate from the > official source. The post includes instructions for adding a > Capistrano configuration to the local Typo so the owner can better > control its deployment. Also covered is how to run the Typo on a > balanced Mongrel cluster with the Apache 2.2 proxy module doing the > balancing. > > http://blog.mondragon.cc/articles/2007/04/08/maintaining-your-own- > typo-4-0-3 > > When I update to Typo 4.1 I'll document my deployment strategy for > anyone interested. > > Thanks > Mike Nice post. Don't forget to add the link to your post on the trac, documentation page. 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