Defect #26524

Redmine 500 error

Added by power chen 12 months ago. Updated 12 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:My page
Target version:-
Resolution:Fixed Affected version:


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.


Started GET "/my/page" for 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.

Associated revisions

Revision 16881
Added by Toshi MARUYAMA 12 months ago

add "config.enable_dependency_loading = true" at config/environments/production.rb (#26513, #26524, #26526)


#1 Updated by Go MAEDA 12 months 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

#2 Updated by Toshi MARUYAMA 12 months ago

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

Fixed by r16881.

Also available in: Atom PDF