• View
  • Changes
  • Options
  • Related
  • Edit
  • Wagn error on Passenger with Ruby1.9.1+issues

    When running Wagn on Debian Lenny, with Ruby 1.9.1p378,  Apache2, mod_rails (Passenger 2.2.11)

    It appears when something isn't cached yet by for instance running it in Ruby 1.8, the error appears.

    All is fine when running under Ruby 1.8.7 + Passenger 2.2.9.

    Also, when running the same production site from console with either Webrick or Mongrel, everything is alright too.

     

    The follow error occurs when viewing pages:

     

     

    Processing CardController#show (for 82.176.231.90 at 2010-03-18 15:54:23) [GET]

      Parameters: {"id"=>"Home"}

    WAGN: per request setup

    Rendering template within layouts/application

     

    ActionView::TemplateError (can't convert nil into String) on line #5 of app/views/views/_open.rhtml:

    2:      <%= slot.header %>

    3: <% end %>

    4:

    5: <%= slot.wrap_content( slot.render(:expanded_view_content) ) %>

    6:

    7: <%= slot.notice %>

    8: <% if card.ok?(:comment) %> <%#and !card.hard_template %>

     

        app/models/card/basic.rb:29:in `block in table_of_contents'



     

    Add +example
    Add +screenshot
    Status:
    acknowledged
    add/edit
    Tags: Add +tags

  • View
  • Changes
  • Options
  • Related
  • Edit

  • very strange. we haven't tried running on ruby 1.9 yet-- as soon as I get a chance to do that I'll see if I can reproduce this error.  thanks for letting us know!

      --Lewis Hoffman.....Thu Mar 25 10:53:23 -0700 2010


    My workaround is as follows:

    app/models/card/basic.rb:

    line 30, replace + $MATCH

    with + $&

     

    btw; The issue is the same for nginx with passenger.

     

      --Sickboy.....Sat Apr 10 02:10:48 -0700 2010

    Download Docs Sandbox Hosting Support

  • View
  • Changes
  • Options
  • Related
  • Edit
  •  

    Wagn News

    1 to 5 of 24Next-page 1 to 5 of 24Next-page

     

    Ideas

     

     

    Support Tickets



    Wagn at github

    Wheeled by Wagn v. 1.7.2