peclik / clipboard_image_paste

Redmine plugin for pasting cropped image from clipboard as an attachment.
264 stars 118 forks source link

Clipboard Image Paste breaks KnowledgeBase v3.0.0 plugin installation #30

Closed Atmis closed 10 years ago

Atmis commented 10 years ago

Hello,

Clipboard Image Paste is causing errors when installing KnowledgeBase plugin v3.0.0. I get the following error : undefined methodcreate_versioned_table'`

I had to comment the following lines to fix this, but of course I'm not getting the KnowledgeBase integration : File : clipboard_image_paste\lib\clipboard_image_paste\attachment_patch.rb

# KbArticle plug-in (https://github.com/alexbevi/redmine_knowledgebase)
#begin
#  unless KbArticle.included_modules.include? AttachmentPatch
#    KbArticle.send(:include, AttachmentPatch)
#  end
#rescue NameError
#  # plug-in not installed
#end
brucenan commented 10 years ago

I met the same problem, only way is to remove clipboard_image_paste plugin, even sucessfully install knowledgebase.

peclik commented 10 years ago

Please try a quick fix (and let me know if that helps): from Rails.configuration.to_prepare do in redmine_knowledgebase/init.rb remove lines

  require 'acts_as_viewed'
  require 'acts_as_rated'

and add the same lines after require 'diff' in redmine_knowledgebase/app/models/kb_article.rb

I hope the issue will be corrected in redmine_knowledgebase (see alexbevi/redmine_knowledgebase#215)

peclik commented 10 years ago

Already fixed in redmine_knowledgebase.