Project

General

Profile

Can't edit wiki pages.

Added by Travis Paul almost 12 years ago

I am able to create new wiki pages, attempt to edit wiki pages, and preview any changes made to wiki pages, but when I save the changes don't take effect. Production logs do not show any errors.

Any tips for debugging this issue further?

Environment:
  Redmine version                          2.1.2.stable
  Ruby version                             1.8.7 (x86_64-linux)
  Rails version                            3.2.11
  Environment                              production
  Database adapter                         MySQL

Redmine plugins:
  no plugin installed

Additional Info:
  CentOS                                   6.3 x86_64
  Apache                                   2.2.15
  mod_passenger:                           3.0.17

Thanks


Replies (2)

RE: Can't edit wiki pages. - Added by Aaron Craig almost 12 years ago

Had the same problem. This fixes it:

diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index d31c6dd..8e9b6f2 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -151,6 +151,7 @@ class WikiController < ApplicationController
     @content.author = User.current
     @page.content = @content
     if @page.save
+      @content.save!
       attachments = Attachment.attach_files(@page, params[:attachments])
       render_attachment_warning_if_needed(@page)
       call_hook(:controller_wiki_edit_after_save, { :params => params, :page => @page})

RE: Can't edit wiki pages. - Added by Travis Paul almost 12 years ago

Thanks that did it.

    (1-2/2)