https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-01-12T22:01:08ZRedmineRedmine - Defect #12826: Error viewing some issues: ActionView::Template::Error (undefined method `-' for nil:NilClass): https://www.redmine.org/issues/12826?journal_id=441702013-01-12T22:01:08ZEtienne Massip
<ul></ul><p>Looks a lot like <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: 500 error on user page after migrating from Trac to RedMine 2.0.3 (Closed)" href="https://www.redmine.org/issues/12026#note-3">#12026-3</a>, did you migrate from Trac too?</p> Redmine - Defect #12826: Error viewing some issues: ActionView::Template::Error (undefined method `-' for nil:NilClass): https://www.redmine.org/issues/12826?journal_id=441942013-01-13T11:02:19ZMichael F
<ul></ul><p>Yes, i have migrated from Trac too. Manually set (SQL) all fielfs with date (created_on and updated_on) from '0000-00-00 00:00:00' to a valid value solved problem :)<br />UPDATE `wiki_contents` set `updated_on`='2010-12-31 23:59:59' where `updated_on`='0000-00-00 00:00:00'</p>
<p>Thanks!</p>
<p>But i think, that for null as date or wrong date must be showed correct error message.</p> Redmine - Defect #12826: Error viewing some issues: ActionView::Template::Error (undefined method `-' for nil:NilClass): https://www.redmine.org/issues/12826?journal_id=1089532022-12-30T08:00:05ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/38139">Patch #38139</a>: Add guard clause to time_tag method to handle nil time</i> added</li></ul> Redmine - Defect #12826: Error viewing some issues: ActionView::Template::Error (undefined method `-' for nil:NilClass): https://www.redmine.org/issues/12826?journal_id=1089542022-12-30T08:03:18ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Michael F wrote:</p>
<blockquote>
<p>But i think, that for null as date or wrong date must be showed correct error message.</p>
</blockquote>
<p>I have opened <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Add guard clause to time_tag method to handle nil time (Closed)" href="https://www.redmine.org/issues/38139">#38139</a> to properly handle nil and avoid Internal Server Error.</p>