Redmine 500 error
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 184.108.40.206 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.
- 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