Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Wiki page crashes #10

Open
sthashakun opened this issue Aug 14, 2014 · 9 comments
Open

Wiki page crashes #10

sthashakun opened this issue Aug 14, 2014 · 9 comments

Comments

@sthashakun
Copy link

After install the plugin, wiki page is not working.

Here is the exception thrown.

ActionView::Template::Error (':parent' is not an ActiveModel-compatible object that returns a valid partial path.):
1: <%= javascript_include_tag 'image_paste.js', :plugin => 'redmine_image_clipboard_paste' %>
2: <%= render :parent, {:you_can_pass => :locals} %>
app/controllers/wiki_controller.rb:73:in `show'

I'm using the following version.

Redmine version 2.5.2.stable
Ruby version 1.9.3-p231 (2012-05-25) [i386-mingw32]
Rails version 3.2.19

@tornoz
Copy link
Contributor

tornoz commented Aug 20, 2014

Hello,

The latest version of the plugin, which enables the functionalities on wiki and forum pages, needs the gem "render_parent" to be installed.
Either installing the missing gem or downgrading the plugin of one commit should resolve your issue.

@fsalas
Copy link

fsalas commented Sep 18, 2014

Can you post a fix please , I faced the same poblem tried gem install 'render_parent' , but error persist, or what would be the instruction to fix it, forums crash also all with similar problem

ActionView::Template::Error (':parent' is not an ActiveModel-compatible object that returns a valid partial path.):
1: <%= javascript_include_tag 'image_paste.js', :plugin => 'redmine_image_clipboard_paste' %>
2: <%= render :parent, {:you_can_pass => :locals} %>
app/controllers/boards_controller.rb:55:in block (2 levels) in show' app/controllers/boards_controller.rb:37:inshow'
app/controllers/boards_controller.rb:32:in `index'

trying to unistall renders the system unusable with an general error page

Thanks in advance

@pinghe
Copy link

pinghe commented Nov 6, 2014

me too

@TeamForrest
Copy link

I am having the same problem as well.

@yincp
Copy link

yincp commented Dec 12, 2014

me too. crash still exists after render_parent is installed

@arnisjuraga
Copy link

#14 - the same issue?

@razimi
Copy link

razimi commented Apr 28, 2015

Any update on how to fix this issues?

image

image

@ninjasenses
Copy link

Not sure if anyone is still looking for this but I experienced the same issue while upgrading from redmine 2.5 -> 3.0.3. The only way I was able to resolve the issue was to completly remove the /plugins/redmine_image_clipboard_paste/app/views/wiki directory and its subfiles. I was then able to edit the wiki again. I am using redmine_image_clipboard_paste v. 1.0.0

@arnisjuraga
Copy link

Workaround, by the way, is to:

  1. If You have installed plugin already - remove it! If You have not installed yet - do not install.
  2. copy all .js code from plugin file assets/javascript/image_paste.js
  3. paste it at the end of Your's theme javascript file, e.g. public/themes/THEMENAME/javascripts/theme.js

It is now working like this just fine for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants