Project

General

Profile

Actions

Defect #26524

closed

Redmine 500 error

Added by power chen over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
My page
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

log:

Started GET "/my/page" for 183.252.16.23 at 2017-07-25 17:41:58 +0800
Processing by MyController#page as HTML
  Current user: chenxy (id=1)
Completed 500 Internal Server Error in 61ms (ActiveRecord: 40.0ms)

NameError (uninitialized constant Redmine::MyPage):

app/models/user_preference.rb:94:in `my_page_groups'
app/controllers/my_controller.rb:40:in `page'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

At revision 16877.

Actions #1

Updated by Go MAEDA over 6 years ago

  • Category set to My page
  • Status changed from New to Confirmed
  • Target version set to 4.0.0

This error occurs in production mode like #26513.
Here is a workaround.

Index: app/models/user_preference.rb
===================================================================
--- app/models/user_preference.rb    (revision 16877)
+++ app/models/user_preference.rb    (working copy)
@@ -15,6 +15,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

+require 'redmine/my_page'
+
 class UserPreference < ActiveRecord::Base
   include Redmine::SafeAttributes

Actions #2

Updated by Toshi MARUYAMA over 6 years ago

  • Status changed from Confirmed to Closed
  • Target version deleted (4.0.0)
  • Resolution set to Fixed

Fixed by r16881.

Actions

Also available in: Atom PDF