I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #1797

http 500 error when using Wiki content

Added by Jamie Gruener over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
29 Jun 2011
Due date:
19 Sep 2011
% Done:

100%

Redmine version:
External issue:

Description

If I set the Sidebar to display a Wiki page, I get this:

ActionView::TemplateError (undefined method `strip_tags' for #<SidebarHook:0xb56a6dcc @parsed_headings=[]>) on line #59 of app/views/layouts/base.rhtml:
56: <%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
57:     <div id="sidebar">        
58:         <%= yield :sidebar %>
59:         <%= call_hook :view_layouts_base_sidebar %>
60:     </div>
61:     
62:     <div id="content">

Doesn’t seem to matter which location I choose.

I also get the error if I try to use Wiki-style formatting in a Text option (“h1.” for example).

I’m using Redmine 1.2.0 stable in a Turnkey Linux VM.

Any input appreciated.


Related issues

Related to Sidebar Content - Bug #1827: Sidebar wiki contents doesn't get rendered Closed 19 Aug 2011 19 Sep 2011
Duplicates Sidebar Content - Bug #1809: the plugin show_issue_description and the plugin Sidebar_content has conflict. Closed 21 Jul 2011 19 Sep 2011

Associated revisions

Revision 8 (diff)
Added by Andriy Lesyuk over 13 years ago

Now using Projects Settings Hook (#1839), moved sidebar content to views (#1827, #1797, #1809)

History

#1 Updated by Andriy Lesyuk over 13 years ago

  • Status changed from New to Open
  • Assignee set to Andriy Lesyuk

This can be related to version 1.2.0... Will check. Thanks for the report.

#2 Updated by Adam Mallinson over 13 years ago

I get this same error when using headings (tested with h1, h2 and h3 tags), if i take the headings out i can still use underline and other formatting options with no problems

Running Mongrel 1.5, Ruby 1.8.7 and Redmine 1.2.1 under Windows Server 2008 R2

#3 Updated by Andriy Lesyuk over 13 years ago

  • Target version set to 0.0.3

#4 Updated by Andriy Lesyuk over 13 years ago

  • Status changed from Open to In Progress
  • % Done changed from 0 to 80

Try updating code from SVN.

Please also note that now you also need Project Settings Hook plugin!

#5 Updated by Andriy Lesyuk over 13 years ago

  • Due date set to 19 Sep 2011
  • Status changed from In Progress to Closed
  • % Done changed from 80 to 100

I believe the issue has been resolved.

Also available in: Atom PDF

Terms of use | Privacy policy