Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. When i run backend on local, it give me this error, try to help me, i am stuck on this

When i run backend on local, it give me this error, try to help me, i am stuck on this

Added by Divyansh Gupta 12 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">
# &nbsp;
# </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


Replies (1)

RE: When i run backend on local, it give me this error, try to help me, i am stuck on this - Added by Divyansh Gupta 12 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">
# &nbsp;
# </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

  • (1 - 1/1)
Loading...