Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8560051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:11:24+00:00 2026-06-11T16:11:24+00:00

I have encountered a strange error message when I try to load certain pages

  • 0

I have encountered a strange error message when I try to load certain pages of my site (most pages, actually) on my test production server.

Started GET "/students" for 10.0.0.68 at Mon Sep 17 12:53:16 +0100 2012
Processing by StudentsController#index as HTML
  Rendered shared/_alerts.html.erb (0.7ms) 
  Rendered students/_student_search.html.erb (0.0ms)
  Rendered students/index.html.erb within layouts/application (17.8ms)
Completed 500 Internal Server Error in 92ms

ActionView::Template::Error (syntax error on line 4, col 586: `      state: ["北海道","青森県","岩手県","宮城県","秋田県","山形県","福島県","茨城県","栃木県","群馬県","埼玉県","千葉県","東京都","神奈川県","新潟県","富山県","石川県","福井県","山梨県","長野県","岐阜県","静岡県","愛知県","三重県","滋賀県","京都府","大阪府","兵庫県","奈良県","和歌山県","鳥取県","島根県","岡山県","広島県","山口県","徳島県","香川県","愛媛県","高知県","福岡県","佐賀県","長崎県","熊本県","大分県","宮崎県","鹿児島県","沖縄県"]'):
    59:     <% end %>
    60:     
    61:     <div class="sidebar_item">
    62:       <h2>Filter By <%= t(:class) %></h2>
    63:       <div class="content">
    64:         
    65:         <% if Klass.where(:tutor_group => false).count > 0 %>
  app/views/students/index.html.erb:62:in `_app_views_students_index_html_erb___542210558__648905548'
  app/views/students/index.html.erb:35:in `_app_views_students_index_html_erb___542210558__648905548'

Whichever page it happens on the error message is always the same (same line and col numbers) but the filenames are different and the quoted code changes too. As far as I know or can see there are none of these japanese characters anywhere in my code. It seems like some encoding issue or something but I really have no idea and I don’t know where to begin to debug it.

My env:

deploy@mike-test:~$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
deploy@mike-test:~$ rails -v
Rails 3.2.0
deploy@mike-test:~$ gem -v
1.8.15
deploy@mike-test:~$ /opt/nginx/sbin/nginx -V
nginx version: nginx/1.2.3
built by gcc 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
TLS SNI support enabled
configure arguments: --prefix=/opt/nginx --with-http_ssl_module --with-http_gzip_static_module --with-cc-opt=-Wno-error --with-pcre=/tmp/root-passenger-16778/pcre-8.31 --add-module=/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.17/ext/nginx
deploy@mike-test:~$ passenger -v
Phusion Passenger version 3.0.17

Ubuntu is 11.04.

Update: OK, I narrowed the problem down somewhat. Figured out it’s to do with the method call t(:class), which is a rails helper method for translation, and that appears in my views quite a bit (I’m new to this app, so still getting my head around how it’s written). Judging by the two locale files that are present, this is meant to return either ‘School’, or ‘Class’ depending on the locale setting. What I still don’t know is why it is causing this error, though.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:11:25+00:00Added an answer on June 11, 2026 at 4:11 pm

    @Hates_ solved this one for me in a comment, so I’ll copy what he put to here so that I can accept it as an answer:

    The answer on this question
    heroku run db:migrate fail as rake aborted
    should help: https://stackoverflow.com/a/12451678

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to output XML with PHP but encountered a strange(!) error
I have encountered a strange error relating to template class in C++. The codes
I have encountered a very strange problem in using jQuery load() . I used
I'm working with MVC 3 and have encountered a strange error. I have customErrors='On'
While attempting to use the CopyFile() function I have encountered a strange error. It
I have encountered a strange Invalid Packet Lenght (that is how the error is
I have encountered a strange error. I use Windows 7 x64. Visual Studio 2010
I have encountered a strange problem when using the File.Move command. The Programm actually
I've encountered a strage error today. I have an NSArray and an NSMutableDictionary .
I have encountered the strange problem, that linux c++ compiler includes the files from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.