From michaelfranzl at gmx.at Sat Aug 8 04:21:49 2009 From: michaelfranzl at gmx.at (Michael Franzl) Date: Sat, 08 Aug 2009 10:21:49 +0200 Subject: [Instiki] 500 Server Error at first try Message-ID: <4A7D359D.7090907@gmx.at> Hi, just wanted to give Instiki a first try. I run Linux From Scratch Distribution 6.3 with ruby 1.8.7 (2008-05-31 patchlevel 0) and mysql 5.0.51. When I execute ./instiki, WEBrick starts without errors, but when visiting localhost:2500 the server gives an 500 Error "Application error (Apache)", which is misleading, because Apache is not involved here. I tried to find out what went wrong in a log file, but could not find any hints. The command line doesn't complain about anything either. I adapted `config/database.yml` for mysql and ran `rake db:create`, but it tries to create a sqlite database... Any hints appreciated! Michael From michaelfranzl at gmx.at Mon Aug 10 07:54:06 2009 From: michaelfranzl at gmx.at (Michael Franzl) Date: Mon, 10 Aug 2009 13:54:06 +0200 Subject: [Instiki] 500 Server Error at first try In-Reply-To: <292618F6-D9B2-438C-930A-95DF39A2E096@golem.ph.utexas.edu> References: <4A7D359D.7090907@gmx.at> <292618F6-D9B2-438C-930A-95DF39A2E096@golem.ph.utexas.edu> Message-ID: <4A800A5E.3090101@gmx.at> Jacques Distler wrote: > These instructions > > http://golem.ph.utexas.edu/instiki/show/diff/Migrating+to+MySQL > > explain how to migrate an existing Instiki installation to MySQL. Since > you don't have any existing data to migrate, you can skip all the "rake > db:fixtures ..." instructions. But, otherwise, the same steps apply. Thanks, that helped. I had to set the `RAILS_ENV=production` environment variable, adapt `config/database.yml`, manually create an empty MySQL database, and run `rake db:migrate`. Michael From hanke at syndi-cat.net Thu Aug 20 15:54:58 2009 From: hanke at syndi-cat.net (Hanke Daniel) Date: Thu, 20 Aug 2009 21:54:58 +0200 Subject: [Instiki] Weird Session-Error in instiki Message-ID: <01B7DD13-8E30-4188-A4B2-ADEB198AD237@syndi-cat.net> Hi, i use instiki as a part of my application, not as the whole app itself. the site-entrypoint, root, is a own controller that defines a session- value. working on all other non-instiki-controllers. changing into wiki seems to ignore this entry. switching back from wiki to my app, it works again. i am pretty unsure what that might bause. What i actually do is: application_controller: before_filter :check_cart_session def check_cart_session session[:cart] = wholebunchofstuff if session[:cart].nil? end i need this since there are some nested arrays etc. in the main-layout, i say: - if !session[:cart][:count].zero? = I18n.t :"index.cart.count", :count=> session[:cart][:count] displays something like "you have 4 items in your cart" in wiki, i cannot reach that values. is there any odd in this, or, does instiki uses its own session-root? Thanks in advance. Kind Regards Daniel