NameError in
Dradis::Plugins::Calculators::CVSS::Base#index
Showing /opt/dradis-calculator_cvss/app/views/layouts/dradis/plugins/calculators/cvss/base.html.erb where line #17 raised:
undefined local variable or method `frontend’ for #<#Class:0x0000000310ce28:0x00000004c9a618>
Extracted source (around line #17):
<ul class="nav pull-right">
<li>
<%= link_to Dradis::constants.include?(:Pro) ? main_app.root_path : frontend.root_path do %>
Back to the app →
<% end %>
</li>
Hi @markajbell, thanks for including the screenshot. The CVSS calculator is included with CE, we just need to get around this error message! Can you try replacing the offending line of code and let us know if it resolves the error?
Navigate to the dradis-calculator_cvss folder (it should be in the same folder that also contains dradis-ce)
Open up file dradis-calculator_cvss/app/views/layouts/dradis/plugins/calculators/cvss/base.html.erb
Edit Line #17 and change it from: <%= link_to Dradis::constants.include?(:Pro) ? main_app.root_path : frontend.root_path do %>
To: <%= link_to main_app.root_path do %>
Save your changes and restart the server.
Navigate to /calculators/cvss and let us know if you’re able to access the calculator