Content
When i run backend on local, it give me this error, try to help me, i am stuck on this
Added by Divyansh Gupta 6 months ago
Encountered a syntax error while rendering template: check # <div id="nav-login-content">
# <%= styled_form_tag({controller: '/account', action: "login"},
# autocomplete: 'off', class: '-vertical') do %>
# <%= back_url_to_current_page_hidden_field_tag %>
# <div class="grid-block">
# <div class="form--field -required">
# <%= styled_label_tag 'username-pulldown', User.human_attribute_name(:login) %>
# <div class="form--field-container">
# <%= styled_text_field_tag 'username', nil, id: 'username-pulldown', tabindex: 1, autocapitalize: 'none' %>
# </div>
# <div class="form--field-extra-actions">
# <% if Setting::Autologin.enabled? %>
# <label class="form--label-with-check-box -no-ellipsis">
# <%= styled_check_box_tag 'autologin', 1, false, id: 'autologin-pulldown' %>
# <%= t('users.autologins.prompt', num_days: I18n.t('datetime.distance_in_words.x_days', count: Setting.autologin)) %>
# </label>
# <% elsif Setting::SelfRegistration.enabled? %>
# <%# show here if autologin is disabled, otherwise below lost_password link %>
# <%= link_to t(:label_register),
# account_register_path,
# title: t(:label_register) %> <!-- Corrected: added closing parenthesis -->
# <% end %>
# </div>
# </div>
# <div class="form--field -required">
# <%= styled_label_tag 'password-pulldown', User.human_attribute_name(:password) %>
# <div class="form--field-container">
# <%= styled_password_field_tag 'password', nil, id: 'password-pulldown', tabindex: 1 %>
# </div>
# <div class="form--field-extra-actions">
# <% if Setting.lost_password? %>
# <%= link_to t(:label_password_lost), {controller: '/account', action: 'lost_password'} %>
# <% end %>
# <% if Setting::Autologin.enabled? && Setting::SelfRegistration.enabled? %>
# <%# show here if autologin is enabled, otherwise below login field %>
# <%= "<br>".html_safe if Setting.lost_password? %>
# <%= link_to t(:label_register),
# account_register_path,
# title: t(:label_register) %> <!-- Corrected: added closing parenthesis -->
# <% end %>
# </div>
# </div>
# <div class="form--field">
# <label class="form--label">
#
# </label>
# <input type="submit" name="login" id="login-pulldown"
# value="<%=t(:button_login)%>" class="button -highlight" tabindex="1" />
# </div>
# </div>
# <%= render partial: 'account/auth_providers' %>
# <% end %>
# </div>
Extracted source (around line #5):
3 4 5 6 7 8 |
# autocomplete: 'off', class: '-vertical') do %> # <%= back_url_to_current_page_hidden_field_tag %> # <div class="grid-block"> # <div class="form--field -required"> # <%= styled_label_tag 'username-pulldown', User.human_attribute_name(:login) %> # <div class="form--field-container"> |
Rails.root: /mnt/c/Users/DivyanshGupta/Documents/Cubapps/openproject
Application Trace | Framework Trace | Full Trace
app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')'
app/views/account/_login.html.erb:59: unterminated string meets end of file
app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')'
app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')'
app/views/account/_login.html.erb:59: unterminated string meets end of file
app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')'
app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')'
app/views/account/_login.html.erb:59: unterminated string meets end of file
app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')'
app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')'
app/views/account/_login.html.erb:59: unterminated string meets end of file
app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')'
lib/redmine/menu_manager/top_menu_helper.rb:159:in `render_login_partial'
lib/redmine/menu_manager/top_menu_helper.rb:120:in `block in render_login_drop_down'
lib/redmine/menu_manager/menu_helper.rb:107:in `block in render_menu_dropdown'
lib/redmine/menu_manager/menu_helper.rb:105:in `render_menu_dropdown'
lib/redmine/menu_manager/top_menu_helper.rb:119:in `render_login_drop_down'
lib/redmine/menu_manager/top_menu_helper.rb:105:in `render_user_top_menu_node'
lib/redmine/menu_manager/top_menu_helper.rb:82:in `top_menu_right_menu_items'
lib/redmine/menu_manager/top_menu_helper.rb:74:in `block in top_menu_right_node'
lib/redmine/menu_manager/top_menu_helper.rb:73:in `top_menu_right_node'
lib/redmine/menu_manager/top_menu_helper.rb:68:in `block in render_top_menu_right'
lib/redmine/menu_manager/top_menu_helper.rb:66:in `render_top_menu_right'
app/views/layouts/base.html.erb:89
app/views/layouts/no_menu.html.erb:30
Exception Causes
Request
Parameters:
{"back_url"=>"http://127.0.0.1:3000/"}
Response
Headers:
None
Replies (1)
Encountered a syntax error while rendering template: check # <div id="nav-login-content">
# <%= styled_form_tag({controller: '/account', action: "login"},
# autocomplete: 'off', class: '-vertical') do %>
# <%= back_url_to_current_page_hidden_field_tag %>
# <div class="grid-block">
# <div class="form--field -required">
# <%= styled_label_tag 'username-pulldown', User.human_attribute_name(:login) %>
# <div class="form--field-container">
# <%= styled_text_field_tag 'username', nil, id: 'username-pulldown', tabindex: 1, autocapitalize: 'none' %>
# </div>
# <div class="form--field-extra-actions">
# <% if Setting::Autologin.enabled? %>
# <label class="form--label-with-check-box -no-ellipsis">
# <%= styled_check_box_tag 'autologin', 1, false, id: 'autologin-pulldown' %>
# <%= t('users.autologins.prompt', num_days: I18n.t('datetime.distance_in_words.x_days', count: Setting.autologin)) %>
# </label>
# <% elsif Setting::SelfRegistration.enabled? %>
# <%# show here if autologin is disabled, otherwise below lost_password link %>
# <%= link_to t(:label_register),
# account_register_path,
# title: t(:label_register) %> <!-- Corrected: added closing parenthesis -->
# <% end %>
# </div>
# </div>
# <div class="form--field -required">
# <%= styled_label_tag 'password-pulldown', User.human_attribute_name(:password) %>
# <div class="form--field-container">
# <%= styled_password_field_tag 'password', nil, id: 'password-pulldown', tabindex: 1 %>
# </div>
# <div class="form--field-extra-actions">
# <% if Setting.lost_password? %>
# <%= link_to t(:label_password_lost), {controller: '/account', action: 'lost_password'} %>
# <% end %>
# <% if Setting::Autologin.enabled? && Setting::SelfRegistration.enabled? %>
# <%# show here if autologin is enabled, otherwise below login field %>
# <%= "<br>".html_safe if Setting.lost_password? %>
# <%= link_to t(:label_register),
# account_register_path,
# title: t(:label_register) %> <!-- Corrected: added closing parenthesis -->
# <% end %>
# </div>
# </div>
# <div class="form--field">
# <label class="form--label">
#
# </label>
# <input type="submit" name="login" id="login-pulldown"
# value="<%=t(:button_login)%>" class="button -highlight" tabindex="1" />
# </div>
# </div>
# <%= render partial: 'account/auth_providers' %>
# <% end %>
# </div>
Extracted source (around line #5):
3 4 5 6 7 8
# autocomplete: 'off', class: '-vertical') do %>
# <%= back_url_to_current_page_hidden_field_tag %>
# <div class="grid-block">
# <div class="form--field -required">
# <%= styled_label_tag 'username-pulldown', User.human_attribute_name(:login) %>
# <div class="form--field-container">
Rails.root: /mnt/c/Users/DivyanshGupta/Documents/Cubapps/openproject
Application Trace | Framework Trace | Full Trace
app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')'
app/views/account/_login.html.erb:59: unterminated string meets end of file
app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')'
app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')'
app/views/account/_login.html.erb:59: unterminated string meets end of file
app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')'
app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')'
app/views/account/_login.html.erb:59: unterminated string meets end of file
app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')'
app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')'
app/views/account/_login.html.erb:59: unterminated string meets end of file
app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')'
lib/redmine/menu_manager/top_menu_helper.rb:159:in `render_login_partial'
lib/redmine/menu_manager/top_menu_helper.rb:120:in `block in render_login_drop_down'
lib/redmine/menu_manager/menu_helper.rb:107:in `block in render_menu_dropdown'
lib/redmine/menu_manager/menu_helper.rb:105:in `render_menu_dropdown'
lib/redmine/menu_manager/top_menu_helper.rb:119:in `render_login_drop_down'
lib/redmine/menu_manager/top_menu_helper.rb:105:in `render_user_top_menu_node'
lib/redmine/menu_manager/top_menu_helper.rb:82:in `top_menu_right_menu_items'
lib/redmine/menu_manager/top_menu_helper.rb:74:in `block in top_menu_right_node'
lib/redmine/menu_manager/top_menu_helper.rb:73:in `top_menu_right_node'
lib/redmine/menu_manager/top_menu_helper.rb:68:in `block in render_top_menu_right'
lib/redmine/menu_manager/top_menu_helper.rb:66:in `render_top_menu_right'
app/views/layouts/base.html.erb:89
app/views/layouts/no_menu.html.erb:30
Exception Causes
SyntaxError: /mnt/c/Users/DivyanshGupta/Documents/Cubapps/openproject/app/views/account/_login.html.erb:5: syntax error, unexpected string literal, expecting ')' '.freeze;@output_buffer.safe_a... ^ /mnt/c/Users/DivyanshGupta/Documents/Cubapps/openproject/app/views/account/_login.html.erb:59: unterminated string meets end of file end ^ /mnt/c/Users/DivyanshGupta/Documents/Cubapps/openproject/app/views/account/_login.html.erb:59: syntax error, unexpected end-of-input, expecting ')' end ^
Request
Parameters:
{"back_url"=>"http://127.0.0.1:3000/"}
Toggle session dump
Toggle env dump
Response
Headers:
None