Canvas LMS/Troubleshooting

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
'''Issue:''' When trying to log in with admin account, an error occurs citing "Oops! something broke".  When checking the logs, this is found:
 
'''Issue:''' When trying to log in with admin account, an error occurs citing "Oops! something broke".  When checking the logs, this is found:
<code><nowiki>
+
<nowiki><code>
 
  ActionView::TemplateError (undefined method `[]' for nil:NilClass) on line #82 of app/views/layouts/application.html.erb:
 
  ActionView::TemplateError (undefined method `[]' for nil:NilClass) on line #82 of app/views/layouts/application.html.erb:
 
  79:          :assignments_recently_graded    => t('menu.assignments_recently_graded', "Recently Graded")
 
  79:          :assignments_recently_graded    => t('menu.assignments_recently_graded', "Recently Graded")
Line 10: Line 10:
 
  title-icon"></span> <i class="icon-mini-arrow-down"></i></a>
 
  title-icon"></span> <i class="icon-mini-arrow-down"></i></a>
 
  85:        <div class="menu-item-drop">
 
  85:        <div class="menu-item-drop">
</nowiki></code><br>
+
<code></nowiki><br>
 
<br>
 
<br>
 
'''Resolution:''' This is scheduled to be addressed in the next stable release per their developers on this thread: [https://groups.google.com/forum/?hl=en#%21topic/canvas-lms-users/Wmq7YYBI0Qc ActionView::TemplateError]
 
'''Resolution:''' This is scheduled to be addressed in the next stable release per their developers on this thread: [https://groups.google.com/forum/?hl=en#%21topic/canvas-lms-users/Wmq7YYBI0Qc ActionView::TemplateError]

Revision as of 20:35, 19 March 2014

Issue: When trying to log in with admin account, an error occurs citing "Oops! something broke". When checking the logs, this is found: <code> ActionView::TemplateError (undefined method `[]' for nil:NilClass) on line #82 of app/views/layouts/application.html.erb: 79: :assignments_recently_graded => t('menu.assignments_recently_graded', "Recently Graded") 80: } 81: total_shown = 0 82: if assignment_sets.any?{ |k, v| @current_user.send(k).length > 0 } 83: -%> 84: <a href="/assignments" class="menu-item-title"><%= t('menu.assignments', 'Assignments') %><span class="menu-item- title-icon"></span> <i class="icon-mini-arrow-down"></i></a> 85: <div class="menu-item-drop"> <code>

Resolution: This is scheduled to be addressed in the next stable release per their developers on this thread: ActionView::TemplateError
In the mean time, a work around was found here:
Comment out lines 77-79 in app/views/layout/application.html.erb:

# Commenting out to temporarily prevent an error
          #:assignments_needing_submitting => t('menu.assignments_needing_submitting', "To Turn In"),
          #:assignments_needing_grading    => t('menu.assignments_needing_grading', "To Grade"),
          #:assignments_recently_graded    => t('menu.assignments_recently_graded', "Recently Graded")
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox