HugoHasenbein/redmine_more_previews

Plugin not working

phuongnl15395 opened this issue · 56 comments

after installing plugin I'm not seeing any change, still can't preview the file (Libre is installed on server).
I'm using Redmine 4.0.0.stable, centos 7, LibreOffice 7.3.2.2.

yes, i'm already config it but when i try file with *.docx nothing happend, seem like the plugin not working

@HugoHasenbein could you help me with this? I already using latest version of your git

Like I mention above, seems like the plugin not working, can you help me with debuging?

  • I have try with older version, and it load but not load the correct file. It's load current page with duplicate infinity time
  • With this current version and previous version, the file not load anything
  • Are there any other channel I can chat directly with you?

I'm not able to see it, sorry I'm kinda new to this

Yes, I'm already done all that step, I can see it in Administration -> plugin -> active Libre. But the problem after done those step, I upload file but I can preview it

  • and you activated the corresponding file type f.i. docx for Microsoft Word file <- Yes
  • green hook mark behind LibreOffice available? <- Yes
  • Is there anything else that I should check?

Currently, I'm using Redmine version 4.0.0
"turn on debug, you should see something likes the attached image.",

I already turn on debug, but I dont see anything

I give you the log output
Started GET "/attachments/1856" for 103.245.252.76 at 2022-05-04 12:39:18 +0700
Processing by AttachmentsController#show as HTML
Parameters: {"id"=>"1856"}
Current user: phuongnl4 (id=30)
Rendering attachments/other.html.erb within layouts/base
Rendered common/_no_preview.html.erb (0.3ms)
Rendered common/_other.html.erb (0.9ms)
Rendered layouts/_file.html.erb (12.2ms)
Rendered attachments/other.html.erb within layouts/base (12.9ms)
Rendered plugins/redmine_more_filters/app/views/hooks/redmine_more_filters/_toggle_operator.html.erb (0.2ms)
Rendered plugins/redmine_more_filters/app/views/hooks/redmine_more_filters/_css.html.erb (0.3ms)
Rendered plugins/redmineup_tags/app/views/tags/_additional_assets.html.erb (0.6ms)
Rendered plugins/additionals/app/views/additionals/_html_head.html.slim (0.6ms)
Rendered plugins/additionals/app/views/additionals/_body_top.slim (0.2ms)
Rendered plugins/additionals/app/views/additionals/_content.html.slim (0.2ms)
Rendered plugins/redmineup_tags/app/views/tags/_select2_transformation_rules.html.erb (0.3ms)
Rendered plugins/additionals/app/views/additionals/_body_bottom.html.slim (0.3ms)
Completed 200 OK in 59ms (Views: 44.0ms | ActiveRecord: 5.0ms)

image
image
image
I sent you attachment

image
I already tried it before. You can see it here, just take another screenshot for you

letme try then i will reply back to you

Am I do it correctly?

Yes I did,

image
Its false

I dont think its a good idea because you can see it's currently production env. Any other option?

I have the same problems with this plugin.

@HugoHasenbein
2.6.3 :003 > AttachmentsController.ancestors
=> [AttachmentsController, RedmineLightbox2::AttachmentsPatch, #Module:0x00000000065219c0, ApplicationController, Additionals::Patches::ApplicationControllerPatch::InstanceMethods, Additionals::Patches::ApplicationControllerPatch, RedmineExtensions::RenderingHelper, RedmineExtensions::ApplicationControllerPatch::InstanceMethods, RedmineExtensions::ApplicationControllerPatch, Redmine::SudoMode::Controller, Redmine::MenuManager::MenuController, Redmine::Search::Controller, RoutesHelper, Redmine::Hook::Helper, Redmine::Pagination, Redmine::I18n, #Module:0x000000000165a198, #Module:0x00000000027fb460, #Module:0x00000000027fb500, ActionController::Base, OpenIdAuthentication, RedmineupTags::Patches::ActionControllerPatch, InvisibleCaptcha::ControllerExt, ActiveRecord::Railties::ControllerRuntime, ActionDispatch::Routing::RouteSet::MountedHelpers, ActionController::ParamsWrapper, ActionController::Instrumentation, ActionController::Rescue, ActionController::HttpAuthentication::Token::ControllerMethods, ActionController::HttpAuthentication::Digest::ControllerMethods, ActionController::HttpAuthentication::Basic::ControllerMethods, ActionController::DataStreaming, ActionController::Streaming, ActionController::ForceSSL, ActionController::ContentSecurityPolicy, ActionController::RequestForgeryProtection, AbstractController::Callbacks, ActiveSupport::Callbacks, ActionController::FormBuilder, ActionController::Flash, ActionController::Cookies, ActionController::ParameterEncoding, ActionController::StrongParameters, ActiveSupport::Rescuable, ActionController::ImplicitRender, ActionController::BasicImplicitRender, ActionController::MimeResponds, AbstractController::Caching, AbstractController::Caching::ConfigMethods, AbstractController::Caching::Fragments, ActionController::Caching, ActionController::EtagWithFlash, ActionController::EtagWithTemplateDigest, ActionController::ConditionalGet, ActionController::Head, ActionController::Renderers::All, ActionController::Renderers, ActionController::Rendering, ActionView::Layouts, ActionView::Rendering, ActionController::Redirecting, ActiveSupport::Benchmarkable, AbstractController::Logger, ActionController::UrlFor, AbstractController::UrlFor, ActionDispatch::Routing::UrlFor, ActionDispatch::Routing::PolymorphicRoutes, ActionController::Helpers, AbstractController::Helpers, AbstractController::AssetPaths, AbstractController::Translation, AbstractController::Rendering, ActionView::ViewPaths, ActionController::Metal, AbstractController::Base, ActiveSupport::Configurable, ActiveSupport::ToJsonWithActiveSupportEncoder, Object, PP::ObjectMixin, ActiveSupport::Dependencies::Loadable, JSON::Ext::Generator::GeneratorMethods::Object, ActiveSupport::Tryable, Kernel, BasicObject]

@HugoHasenbein any update from my case?

Hi @HugoHasenbein ,
I'm just cloning production instance to new one and remove all plugin except this plugin "redmine_more_previews".
After installing + restart I ran into this problem
This fresh without any plugin
image
After restart
image

I am too having

2.6.3 :001 > AttachmentsController.new.methods.include?(:show_with_more_previews)
 => false

And

AttachmentsController.ancestors => [RedmineMorePreviews::Patches::AttachmentsControllerPatch::ClassMethods, AttachmentsController, RedmineMorePreviews::ControllerHelper, RedmineMorePreviews::Patches::AttachmentsControllerPatch, RedminePreviewInline::Patches::AttachmentsControllerPatch::InstanceMethods, RedminePreviewInline::Patches::AttachmentsControllerPatch, RedmineAllThumbnails::Patches::AttachmentsControllerPatch::InstanceMethods, RedmineAllThumbnails::Patches::AttachmentsControllerPatch, RedmineLightbox2::AttachmentsPatch, #<Module:0x000055914a29f6e0>, ApplicationController, Spectator::Patches::ApplicationControllerInstanceMethods, Spectator::Patches::ApplicationControllerPatch, RedmineExtensions::RenderingHelper, RedmineExtensions::ApplicationControllerPatch::InstanceMethods, RedmineExtensions::ApplicationControllerPatch, Redmine::SudoMode::Controller, Redmine::MenuManager::MenuController, Redmine::Search::Controller, AvatarsHelper, GravatarHelper::PublicMethods, RoutesHelper, Redmine::Hook::Helper, Redmine::Pagination, Redmine::I18n, #<Module:0x0000559148dfb5b8>, #<Module:0x00005591488c1610>, #<Module:0x00005591488c1660>, ActionController::Base, OpenIdAuthentication, InvisibleCaptcha::ControllerExt, ActiveRecord::Railties::ControllerRuntime, ActionDispatch::Routing::RouteSet::MountedHelpers, ActionController::ParamsWrapper, ActionController::Instrumentation, ActionController::Rescue, ActionController::HttpAuthentication::Token::ControllerMethods, ActionController::HttpAuthentication::Digest::ControllerMethods, ActionController::HttpAuthentication::Basic::ControllerMethods, ActionController::DataStreaming, ActionController::Streaming, ActionController::ForceSSL, ActionController::ContentSecurityPolicy, ActionController::RequestForgeryProtection, AbstractController::Callbacks, ActiveSupport::Callbacks, ActionController::FormBuilder, ActionController::Flash, ActionController::Cookies, ActionController::ParameterEncoding, ActionController::StrongParameters, ActiveSupport::Rescuable, ActionController::ImplicitRender, ActionController::BasicImplicitRender, ActionController::MimeResponds, AbstractController::Caching, AbstractController::Caching::ConfigMethods, AbstractController::Caching::Fragments, ActionController::Caching, ActionController::EtagWithFlash, ActionController::EtagWithTemplateDigest, ActionController::ConditionalGet, ActionController::Head, ActionController::Renderers::All, ActionController::Renderers, ActionController::Rendering, ActionView::Layouts, ActionView::Rendering, ActionController::Redirecting, ActiveSupport::Benchmarkable, AbstractController::Logger, ActionController::UrlFor, AbstractController::UrlFor, ActionDispatch::Routing::UrlFor, ActionDispatch::Routing::PolymorphicRoutes, ActionController::Helpers, AbstractController::Helpers, AbstractController::AssetPaths, AbstractController::Translation, AbstractController::Rendering, ActionView::ViewPaths, ActionController::Metal, AbstractController::Base, ActiveSupport::Configurable, ActiveSupport::ToJsonWithActiveSupportEncoder, Object, PP::ObjectMixin, ERB::Util, ActiveSupport::Dependencies::Loadable, JSON::Ext::Generator::GeneratorMethods::Object, ActiveSupport::Tryable, Kernel, BasicObject]

Version Redmine 4.1.0.stable

If I try to preview xlsx as image I get:

ActionController::RoutingError (No route matches [GET] "/tmp/mini_magick20220511-502327-1a96zhk.png"):

If I try to preview as html

then no error, but nothing previewed ...

I can provide you with ssh access to that particular instance...

@acosonic
can u give in nginx

znkey commented

Try to Open it in project setting page

Hi @HugoHasenbein ,

Thanks for not ghosting this, but it's been quite a long time and i'm not using this plugin anymore.

Thanks for your support.

Hello @HugoHasenbein ,
I also faced this issue. I use Redmine 5.0.1. stable and Rails version is 6.1.6 . Even though I cloned redmine_more_previews to my system, it does not work. Could you please help me to get a solution.I have attached the log file and some screenshot for your reference .
preview
information
log_ss

Привет@HugoHasenbein, я тоже столкнулся с этой проблемой. Я использую Redmine 5.0.1. стабильная версия и версия Rails — 6.1.6. Несмотря на то, что я клонировал redmine_more_previews в свою систему, он не работает. Не могли бы вы помочь мне найти решение. Я приложил файл журнала и скриншот для вашей справки. предварительный просмотр информация log_ss

Faced the same problem. It turned out that it was necessary to set the checkbox true in the project settings..
image_2024-02-02_18-31-10