ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Can not view project overview, Home or any page that has project in Liquid Templates

Added by Tony B at 2012-03-28 07:51 pm

Hello,

I have a fresh install of ruby, chiliproject, passenger and all dependencies. I can create projects fine, issues fine, view the wiki, gant and calender but I can't not goto any page that has project in a Liquid template. When I do I get the following error:

ActionView::TemplateError (uninitialized constant ApplicationHelper::Liquid) on line #22 of app/views/projects/index.rhtml:
19:
20: <%= call_hook(:view_projects_show_top) >
21:
22: <%= render_project_hierarchy(@projects)%>
23:
24: <
if User.current.logged? %>
25: <p style="text-align:right;">

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:466:in `load_missing_constant'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing'

Or

ActionView::TemplateError (uninitialized constant ApplicationHelper::Liquid) on line #11 of app/views/projects/show.rhtml:
8:
9: <div class="splitcontentleft">
10: <div class="wiki">
11: <%= textilizable @project.description >
12: </div>
13: <ul>
14: <
unless @project.homepage.blank? ><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li>< end %>

Has anyone seen anything like this before?

Thanks very much for the help and a great project!

-tony


Replies (3)

RE: Can not view project overview, Home or any page that has project in Liquid Templates - Added by Tony B at 2012-03-28 08:57 pm

Everything works fine when I run:

bundle exec script/server -e production

It's only when I'm using apache and passenger that I'm having the issues it appears.

-tony

RE: Can not view project overview, Home or any page that has project in Liquid Templates - Added by Tony B at 2012-03-29 01:19 am

It turns out the cause of the problem was this setting in my passenger.conf:

RailsSpawnMethod smart

I had copied someone else's passenger conf due to my naivety with Ruby. Hope this may help someone in the future!

-tony

RE: Can not view project overview, Home or any page that has project in Liquid Templates - Added by Felix Schäfer at 2012-03-29 06:17 am

RailsSpawnMethod is indeed a little black magic: it can either load new processes in your server faster or crash it completely… Glad you worked it out, and thanks for writing the fix here!

(1-3/3)