https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-09-13T18:58:58ZRedmineRedmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=202502010-09-13T18:58:58ZFelix Schäfer
<ul></ul><p>I've seen this happen with wrong rails versions, make sure redmine uses the right one.</p> Redmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=202582010-09-13T20:47:07ZMezz Anon
<ul></ul><p>Looks like that could be it. In environment.rb its 2.3.5 on the previous server, 2.3.2 on the new one - when changing it to 2.3.5 I get an error 500 however.</p>
<p>I'll compare the gems and go from there.</p> Redmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=202602010-09-13T21:03:59ZFelix Schäfer
<ul></ul><p>Mezz Anon wrote:</p>
<blockquote>
<p>Looks like that could be it. In environment.rb its 2.3.5 on the previous server, 2.3.2 on the new one - when changing it to 2.3.5</p>
</blockquote>
<p>Wait wait wait, you realize what that means: you have an environment.rb on your <em>new</em> server that requires an <em>older</em> version of rails? I don't think redmine ever required 2.3.2, IIRC it went from 2.2.2 to 2.3.4… You have something <em>very</em> fishy going on it seems.</p> Redmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=202902010-09-14T17:32:32ZMezz Anon
<ul></ul><p>Updated to <a class="changeset" title="Refactor: split FilesController#new into #new and #create." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4084">r4084</a>.</p>
<p>Gems:<br /><pre>
abstract (1.0.0)
actionmailer (3.0.0, 2.3.5, 2.3.2)
actionpack (3.0.0, 2.3.5, 2.3.2)
activemodel (3.0.0)
activerecord (3.0.0, 2.3.5, 2.3.2)
activeresource (3.0.0, 2.3.5, 2.3.2)
activesupport (3.0.0, 2.3.5, 2.3.2)
arel (1.0.1)
builder (2.1.2)
bundler (1.0.0)
erubis (2.6.6)
fastthread (1.0.7)
i18n (0.4.1)
mail (2.2.5)
mime-types (1.16)
mysql (2.8.1)
passenger (2.2.15)
polyglot (0.3.1)
rack (1.2.1, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.4)
rails (3.0.0, 2.3.5, 2.3.2)
railties (3.0.0)
rake (0.8.7, 0.8.3)
rubygems-update (1.3.7)
thor (0.14.0)
treetop (1.4.8)
tzinfo (0.3.23)
</pre></p>
<p>environment.rb using rails 2.3.5. This is the error when trying to access the landing page:</p>
<pre>
I18n::MissingInterpolationArgument in Welcome#index
Showing app/views/news/_news.rhtml where line #6 raised:
missing interpolation argument in "%m/%{count}/%Y %I:%M %p" ({:object=>Fri Oct 30 13:37:57 -0700 2009} given)
Extracted source (around line #6):
3: <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %>
4: <br />
5: <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
6: <span class="author"><%= authoring news.created_on, news.author %></span></p>
Trace of template inclusion: app/views/welcome/index.rhtml
RAILS_ROOT: /srv/www/htdocs/redmine-beta
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:186:in `interpolate_without_deprecated_syntax'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/i18n_interpolation_deprecation.rb:21:in `interpolate'
/usr/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:49:in `translate'
/usr/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n.rb:152:in `t'
/usr/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n/backend/base.rb:62:in `localize'
/usr/lib/ruby/gems/1.8/gems/i18n-0.4.1/lib/i18n.rb:231:in `l'
/srv/www/htdocs/redmine-beta/lib/redmine/i18n.rb:48:in `format_time'
/srv/www/htdocs/redmine-beta/app/helpers/application_helper.rb:331:in `time_tag'
/srv/www/htdocs/redmine-beta/app/helpers/application_helper.rb:323:in `authoring'
/srv/www/htdocs/redmine-beta/app/views/news/_news.rhtml:6:in `_run_rhtml_app47views47news47_news46rhtml_locals_news_news_counter_object'
/srv/www/htdocs/redmine-beta/app/views/welcome/index.rhtml:8:in `_run_rhtml_app47views47welcome47index46rhtml'
</pre> Redmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=202942010-09-14T20:54:47ZFelix Schäfer
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Just covered that in the forums: <a class="external" href="http://www.redmine.org/boards/2/topics/16568#message-17334">http://www.redmine.org/boards/2/topics/16568#message-17334</a> . In short: i18n broke compatibility from 0.3 to 0.4, get rid of 0.4.1 and install 0.3.7.</p> Redmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=202982010-09-14T21:54:43ZMezz Anon
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Thanks Felix.</p>
<p>The original problem of HTML in the Target Version still exists however and it looks like the gems are correct:<br /><pre>
abstract (1.0.0)
actionmailer (2.3.5, 2.3.2)
actionpack (2.3.5, 2.3.2)
activerecord (2.3.5, 2.3.2)
activeresource (2.3.5, 2.3.2)
activesupport (2.3.5, 2.3.2)
arel (1.0.1)
builder (2.1.2)
bundler (1.0.0)
erubis (2.6.6)
fastthread (1.0.7)
i18n (0.3.7)
mail (2.2.5)
mime-types (1.16)
mysql (2.8.1)
passenger (2.2.15)
polyglot (0.3.1)
rack (1.2.1, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.4)
rails (2.3.5, 2.3.2)
rake (0.8.7, 0.8.3)
rubygems-update (1.3.7)
thor (0.14.0)
treetop (1.4.8)
tzinfo (0.3.23)
</pre></p> Redmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=202992010-09-14T22:01:56ZFelix Schäfer
<ul></ul><p>Mmh, can't say for sure what goes wrong there. What does the HTML look like around that, does the selection list work (i.e. can you set a version from that page)?</p>
<p>I might be the form builder gets tangled up because the versions "look like" FixNums, could you try either changing the name of one or both versions to something that doesn't look like a number, and/or to add one version that isn't a number?</p> Redmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=203002010-09-14T22:14:22ZMezz Anon
<ul></ul><p>Scratch that - I did a fresh checkout of <a class="changeset" title="Removes broken javascript on wiki history." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3559">r3559</a> and everything is in order. Thanks for your help.</p> Redmine - Defect #6384: Target Version contains HTML for one projecthttps://www.redmine.org/issues/6384?journal_id=203012010-09-14T22:26:38ZFelix Schäfer
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Good to hear :-)</p>