Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users receive an Internal Error on "My Page" #17

Closed
rileyw opened this issue Mar 9, 2011 · 5 comments
Closed

Users receive an Internal Error on "My Page" #17

rileyw opened this issue Mar 9, 2011 · 5 comments

Comments

@rileyw
Copy link

rileyw commented Mar 9, 2011

Users are adding the "Active Work" page block to their "My Page" and as soon the page block has been added an "Internal Error" is returned. The production.log reports the following:


ActionView::TemplateError (undefined method `pending?' for nil:NilClass) on line #11 of vendor/plugins/easy_agile/app/views/my/blocks/_active_work.erb:
8: <li class="<%= cycle('odd', 'even') %>">
9:   <div class="iteration">
10:     <%= link_to(
11:       image_tag(iteration.pending? ? 'burndown.png' : project_iteration_burndown_path(iteration.project, iteration, :width => width),
12:         :width => width, :height => height, :alt => "Burndown chart for #{h iteration.name}"),
13:       [iteration.project, iteration]) %>
14:     <%= link_to h(iteration), [iteration.project, iteration] %>

    vendor/plugins/easy_agile/app/views/my/blocks/_active_work.erb:11
    app/views/my/page.rhtml:11:in `_run_rhtml_app47views47my47page46rhtml'
    app/views/my/page.rhtml:8:in `each'
    app/views/my/page.rhtml:8:in `_run_rhtml_app47views47my47page46rhtml'
    dispatch.fcgi:24
@patakijv
Copy link

Getting this also - how to resolve or undo adding the block to My Page?

@rileyw
Copy link
Author

rileyw commented Mar 17, 2011

You will need to edit the user_preferences table, find the row for the appropriate user_id, and remove the "active_work" line from the row contents. I forget the exact column name.

@rileyw
Copy link
Author

rileyw commented Mar 17, 2011

Ack -- Didn't mean to close.

@msorc msorc reopened this Mar 17, 2011
@rnuno
Copy link

rnuno commented Mar 22, 2011

I'm also seeing this error. Anyway on how to fix it?

To clean it you need to:

  1. Open user_preferences table
  2. locate your user_id
  3. delete -active_work from the "others" field.

msorc pushed a commit that referenced this issue Apr 16, 2011
@msorc
Copy link

msorc commented Apr 16, 2011

Fixed

@msorc msorc closed this as completed Apr 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants