https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-02-03T17:43:56ZRedmineRedmine - Defect #10135: ActionView::TemplateError (can't convert Fixnum into String) https://www.redmine.org/issues/10135?journal_id=357812012-02-03T17:43:56ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/35781/diff?detail_id=26210">diff</a>)</li><li><strong>Resolution</strong> set to <i>Cant reproduce</i></li></ul><p>You upgraded to 1.2.1 but you report this issue against 1.2.3. So what version are you using?</p> Redmine - Defect #10135: ActionView::TemplateError (can't convert Fixnum into String) https://www.redmine.org/issues/10135?journal_id=357822012-02-03T17:44:15ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Assignee</strong> deleted (<del><i>Felix Schäfer</i></del>)</li></ul><p>And please, don't assign issues.</p> Redmine - Defect #10135: ActionView::TemplateError (can't convert Fixnum into String) https://www.redmine.org/issues/10135?journal_id=358232012-02-05T13:57:54Zshahul hameed
<ul></ul><p>sorry, i have upgraded my redmine from 1.0.2 to 1.2.3</p> Redmine - Defect #10135: ActionView::TemplateError (can't convert Fixnum into String) https://www.redmine.org/issues/10135?journal_id=358502012-02-06T13:51:21ZBernhard Baumgartl
<ul></ul><p>Hi i have the same issue.</p>
<p>I upgraded from 1.0.1 to 1.1.3.</p>
<p>I found out that all project related templating e.g. "link_to_project", "render_project_jump_box", ..., is not working.</p>
<p>Is that maybe an ruby package with an false version?</p>
<p>My installed packeges are:<br /><pre>
actionmailer (3.2.1, 2.3.11)
actionpack (3.2.1, 2.3.11)
activemodel (3.2.1)
activerecord (3.2.1, 2.3.11)
activeresource (3.2.1, 2.3.11)
activesupport (3.2.1, 2.3.11)
acts-as-taggable-on (2.1.1)
arel (3.0.0)
builder (3.0.0)
bundler (1.0.21)
daemon_controller (0.2.5)
erubis (2.7.0)
fastthread (1.0.7)
file-tail (1.0.5)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.1)
json (1.6.5)
mail (2.4.1)
mime-types (1.17.2)
multi_json (1.0.4)
oniguruma (1.1.0)
passenger (3.0.2)
plist (3.1.0)
polyglot (0.3.3)
rack (1.4.1, 1.2.1, 1.1.3)
rack-cache (1.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (2.3.11)
railties (3.2.1)
rake (0.8.7)
rdoc (3.12)
sprockets (2.1.2)
spruz (0.2.2)
textpow (0.10.1)
thor (0.14.6)
treetop (1.4.10)
tzinfo (0.3.31)
</pre></p>
<p>Thx for the help.</p> Redmine - Defect #10135: ActionView::TemplateError (can't convert Fixnum into String) https://www.redmine.org/issues/10135?journal_id=358512012-02-06T14:47:02ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> set to <i>Projects</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>1.3.2</i></li><li><strong>Resolution</strong> changed from <i>Cant reproduce</i> to <i>Fixed</i></li></ul><p>OK, found. You must have at least one project with a legacy numerical identifier (which is no longer valid).<br />The fix is committed in <a class="changeset" title="Fixed "can't convert Fixnum into String" error on projects with numerical identifier (#10135)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/8804">r8804</a>, but it can be easily applied locally:</p>
<pre>
Index: app/models/project.rb
===================================================================
--- app/models/project.rb (revision 8776)
+++ app/models/project.rb (working copy)
@@ -274,7 +274,7 @@
def to_param
# id is used for projects with a numeric identifier (compatibility)
- @to_param ||= (identifier.to_s =~ %r{^\d*$} ? id : identifier)
+ @to_param ||= (identifier.to_s =~ %r{^\d*$} ? id.to_s : identifier)
end
def active?
</pre>
<p>This patch is against current trunk but you should be able to locate this piece of code in 1.1.3 or 1.2.3.<br />Alternatively, you can change your project identifier(s) to non-numerical ones.</p> Redmine - Defect #10135: ActionView::TemplateError (can't convert Fixnum into String) https://www.redmine.org/issues/10135?journal_id=358542012-02-06T15:01:25ZBernhard Baumgartl
<ul></ul><p>Hi thx for the fix,</p>
<p>i found the problem by my self and added before all numeric identifiers a letter. ;)</p>
<p>But i spent 4 hours to found it. xD</p> Redmine - Defect #10135: ActionView::TemplateError (can't convert Fixnum into String) https://www.redmine.org/issues/10135?journal_id=358732012-02-06T18:26:16Zshahul hameed
<ul></ul><p>thank u so much Jean-Philippe Lang, the issue has been fixed and its works for me</p>
<p>Thanks<br />Shahul</p> Redmine - Defect #10135: ActionView::TemplateError (can't convert Fixnum into String) https://www.redmine.org/issues/10135?journal_id=364952012-03-05T12:46:56ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Merged. Thanks for the feedback.</p>