HugoHasenbein / redmine_more_previews

Redmine plugin to preview various file types in redmine's preview pane
https://www.redmine.org/plugins/redmine_more_previews
GNU General Public License v2.0
46 stars 15 forks source link

Preview not working #32

Open stephb59 opened 3 years ago

stephb59 commented 3 years ago

Hi I just installed the plugin on our redmine server but preview is not working. Our system details are according the screenshot #1

Capture1 #2 #3

Logs are not showing special errors. What need to be checked in order to have it working ? Thanks in advance for your support

stephb59 commented 3 years ago

Found this within production.log

Started GET "/redmine/attachments/more_preview/240/index.pdf" for 192.168.4.43 at 2021-09-02 11:13:59 +0200
Processing by AttachmentsController#more_preview as PDF
  Parameters: {"id"=>"240"}
  Current user: stephane.belche@pierret.com (id=5)
  Couldn't find template for digesting: attachments/more_preview
Saving attachment '/opt/redmine/redmine-4.0.4/files/2021/09/210902111359_emoji5.png' (6998 bytes)
An error occured while generating preview for /opt/redmine/redmine-4.0.4/files/2021/05/210504143237_447739493c06b0ff0a688f2c4ad2213d.pdf
Exception was: undefined method `thumbnail_path' for #
Did you mean?  thumbnail
/var/lib/gems/2.3.0/gems/activemodel-5.2.3/lib/active_model/attribute_methods.rb:430:in `method_missing'
/opt/redmine/redmine-4.0.4/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachment_patch.rb:162:in `delete_from_disk!'
/opt/redmine/redmine-4.0.4/app/models/attachment.rb:148:in `delete_from_disk'
HugoHasenbein commented 3 years ago

Dear Steph,

the log complains about an attachment not having the thumbnail_path method. This method is defined in Redmine's core, attachment.rb.

Seems, Redmine is loosing itself. What other plugins did you install?

Best regards

Stephan

Am 02.09.2021 um 14:12 schrieb stephb59 @.***>:

Found this within production.log

Started GET "/redmine/attachments/more_preview/240/index.pdf" for 192.168.4.43 at 2021-09-02 11:13:59 +0200 Processing by AttachmentsController#more_preview as PDF Parameters: {"id"=>"240"} Current user: @. @.> (id=5) Couldn't find template for digesting: attachments/more_preview Saving attachment '/opt/redmine/redmine-4.0.4/files/2021/09/210902111359_emoji5.png' (6998 bytes) An error occured while generating preview for /opt/redmine/redmine-4.0.4/files/2021/05/210504143237_447739493c06b0ff0a688f2c4ad2213d.pdf Exception was: undefined method thumbnail_path' for # Did you mean? thumbnail /var/lib/gems/2.3.0/gems/activemodel-5.2.3/lib/active_model/attribute_methods.rb:430:in method_missing' /opt/redmine/redmine-4.0.4/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachment_patch.rb:162:in delete_from_disk!' /opt/redmine/redmine-4.0.4/app/models/attachment.rb:148:in delete_from_disk'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/32#issuecomment-911605500, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRGIE47YKG63JJLHICDT75S37ANCNFSM5DI4JA2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

stephb59 commented 3 years ago

Stephan, There's no other plugin installed. While installing there was a conflict with "gem 'mimemagic', '~> 0.3.8'" from the gemfile I removed the gem file for installing that's perhaps causing my problem ? Regards, Stephane

BigDen86 commented 2 years ago

Hi Stefan. can't get your plugin to work. When I try to view the attachment on the page, this appears: image In the server log ("C: \ Bitnami \ redmine-4.2.2-1 \ apps \ redmine \ htdocs \ log \ production.log") this message is: Started HEAD "/redmine/attachments/more_preview/4/index.html?reload=1" for 127.0.0.1 at 2021-11-12 08:04:24 +0500 Processing by AttachmentsController#more_preview as HTML Parameters: {"reload"=>"1", "id"=>"4"} Current user: rmaster (id=1) An error occured while generating preview for C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/files/2021/11/211111171534_5f3a0162a3476f0d193ecc2f7ff95744.doc Exception was: Invalid argument @ dir_s_mkdir - C:/Windows/Temp/d20211112-2340-yhqzok/C: C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:239:inmkdir' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:239:in fu_mkdir' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:217:inblock (2 levels) in mkdir_p' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:215:in reverse_each' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:215:inblock in mkdir_p' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:200:in each' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:200:inmkdir_p' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:262:in path_set' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:178:inblock in transient_preview' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/tmpdir.rb:93:in mktmpdir' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:176:intransient_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:159:in block in preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:127:insynchronize' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:127:in sync' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:159:inpreview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/converter.rb:341:in convert' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachment_patch.rb:40:inmore_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachments_controller_patch.rb:101:in send_more_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachments_controller_patch.rb:63:inblock (2 levels) in more_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/mime_responds.rb:203:in respond_to' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachments_controller_patch.rb:62:inmore_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/basic_implicit_render.rb:6:in send_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/abstract_controller/base.rb:194:inprocess_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/rendering.rb:30:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/abstract_controller/callbacks.rb:42:inblock in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:109:in block in run_callbacks' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/lib/redmine/sudo_mode.rb:61:insudo_mode' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:118:in block in run_callbacks' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:136:inrun_callbacks' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/abstract_controller/callbacks.rb:41:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/rescue.rb:22:inprocess_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/instrumentation.rb:34:in block in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/notifications.rb:168:inblock in instrument' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/notifications/instrumenter.rb:23:in instrument' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/notifications.rb:168:ininstrument' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/instrumentation.rb:32:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/params_wrapper.rb:256:inprocess_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/railties/controller_runtime.rb:24:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/abstract_controller/base.rb:134:inprocess' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionview-5.2.6/lib/action_view/rendering.rb:32:in process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal.rb:191:indispatch' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal.rb:252:in dispatch' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:52:indispatch' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:34:in serve' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/journey/router.rb:52:inblock in serve' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/journey/router.rb:35:in each' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/journey/router.rb:35:inserve' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:840:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/etag.rb:27:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/head.rb:12:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/http/content_security_policy.rb:18:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:incontext' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/cookies.rb:670:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:98:inrun_callbacks' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/callbacks.rb:26:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/debug_exceptions.rb:61:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/show_exceptions.rb:33:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/rack/logger.rb:38:incall_app' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/rack/logger.rb:26:in block in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:71:inblock in tagged' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:28:in tagged' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:71:intagged' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/rack/logger.rb:26:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/remote_ip.rb:81:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/request_store-1.5.0/lib/request_store/middleware.rb:19:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/request_id.rb:27:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/executor.rb:14:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/static.rb:127:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/content_length.rb:17:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:524:incall' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in block in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:ineach' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:86:inblock in pre_process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:84:in catch' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:84:inpre_process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:53:in process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:39:inreceive_data' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:195:in run_machine' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:195:inrun' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/backends/base.rb:75:in start' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/server.rb:162:instart' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/controllers/controller.rb:87:in start' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/runner.rb:203:inrun_command' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/runner.rb:159:in run!' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/bin/thin:6:in<top (required)>' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/bin/thin:29:in load' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/bin/thin:29:in

' Rendering plugins/redmine_more_previews/app/views/attachments/more_preview.html.erb within layouts/base Rendered plugins/redmine_more_previews/converters/cliff/app/views/redmine_more_previews/hooks/_cliff_preview_attachment_contextual.html.erb (0.9ms) Rendered plugins/redmine_more_previews/converters/cliff/app/views/redmine_more_previews/hooks/_cliff_preview_attachment_top.html.erb (0.9ms) Rendered layouts/_file.html.erb (22.5ms) Rendered plugins/redmine_more_previews/app/views/attachments/more_preview.html.erb within layouts/base (23.0ms) Rendered plugins/redmine_more_previews/app/views/hooks/redmine_more_previews/_icon_css.html.erb (1.2ms) Completed 200 OK in 89ms (Views: 45.9ms | ActiveRecord: 16.9ms)`

HugoHasenbein commented 2 years ago

Dear Den,

your server does not have write access to the /tmp directory, it seems. Could you check in Redmine -> Administration -> Information. The second line from above should have a green mark. Else, get back to me Best regards

Stephan

Am 12.11.2021 um 04:30 schrieb BigDen86 @.***>:

Hi Stefan. can't get your plugin to work. When I try to view the attachment on the page, this appears: https://user-images.githubusercontent.com/92114933/141403987-11cfc320-9dc8-46e9-9ca8-793d70fbdd23.png In the server log ("C: \ Bitnami \ redmine-4.2.2-1 \ apps \ redmine \ htdocs \ log \ production.log") this message is: Started HEAD "/redmine/attachments/more_preview/4/index.html?reload=1" for 127.0.0.1 at 2021-11-12 08:04:24 +0500 Processing by AttachmentsController#more_preview as HTML Parameters: {"reload"=>"1", "id"=>"4"} Current user: rmaster (id=1) An error occured while generating preview for C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/files/2021/11/211111171534_5f3a0162a3476f0d193ecc2f7ff95744.doc Exception was: Invalid argument @ dir_s_mkdir - C:/Windows/Temp/d20211112-2340-yhqzok/C: C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:239:in mkdir' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:239:in fu_mkdir' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:217:in block (2 levels) in mkdir_p' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:215:in reverse_each' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:215:in block in mkdir_p' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:200:in each' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/fileutils.rb:200:in mkdir_p' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:262:in path_set' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:178:in block in transient_preview' C:/Bitnami/redmine-4.2.2-1/ruby/lib/ruby/2.6.0/tmpdir.rb:93:in mktmpdir' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:176:in transient_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:159:in block in preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:127:in synchronize' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:127:in sync' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/conversion.rb:159:in preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/lib/converter.rb:341:in convert' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachment_patch.rb:40:in more_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachments_controller_patch.rb:101:in send_more_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachments_controller_patch.rb:63:in block (2 levels) in more_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/mime_responds.rb:203:in respond_to' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachments_controller_patch.rb:62:in more_preview' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/basic_implicit_render.rb:6:in send_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/abstract_controller/base.rb:194:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/rendering.rb:30:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/abstract_controller/callbacks.rb:42:in block in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:109:in block in run_callbacks' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/lib/redmine/sudo_mode.rb:61:in sudo_mode' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:118:in block in run_callbacks' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:136:in run_callbacks' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/abstract_controller/callbacks.rb:41:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/rescue.rb:22:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/instrumentation.rb:34:in block in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/notifications.rb:168:in block in instrument' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/notifications/instrumenter.rb:23:in instrument' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/notifications.rb:168:in instrument' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/instrumentation.rb:32:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal/params_wrapper.rb:256:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/railties/controller_runtime.rb:24:in process_action' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/abstract_controller/base.rb:134:in process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionview-5.2.6/lib/action_view/rendering.rb:32:in process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal.rb:191:in dispatch' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_controller/metal.rb:252:in dispatch' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:52:in dispatch' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:34:in serve' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/journey/router.rb:52:in block in serve' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/journey/router.rb:35:in each' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/journey/router.rb:35:in serve' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/routing/route_set.rb:840:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/head.rb:12:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/http/content_security_policy.rb:18:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in context' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/cookies.rb:670:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:98:in run_callbacks' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/callbacks.rb:26:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/debug_exceptions.rb:61:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/show_exceptions.rb:33:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/rack/logger.rb:38:in call_app' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/rack/logger.rb:26:in block in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:71:in block in tagged' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:28:in tagged' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:71:in tagged' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/rack/logger.rb:26:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/remote_ip.rb:81:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/request_store-1.5.0/lib/request_store/middleware.rb:19:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/request_id.rb:27:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/executor.rb:14:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.6/lib/action_dispatch/middleware/static.rb:127:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/content_length.rb:17:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:524:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in block in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in each' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in call' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:86:in block in pre_process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:84:in catch' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:84:in pre_process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:53:in process' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/connection.rb:39:in receive_data' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:195:in run_machine' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:195:in run' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/backends/base.rb:75:in start' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/server.rb:162:in start' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/controllers/controller.rb:87:in start' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/runner.rb:203:in run_command' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/lib/thin/runner.rb:159:in run!' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/thin-1.8.0-x64-mingw32/bin/thin:6:in <top (required)>' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/bin/thin:29:in load' C:/Bitnami/redmine-4.2.2-1/apps/redmine/htdocs/bin/thin:29:in

' Rendering plugins/redmine_more_previews/app/views/attachments/more_preview.html.erb within layouts/base Rendered plugins/redmine_more_previews/converters/cliff/app/views/redmine_more_previews/hooks/_cliff_preview_attachment_contextual.html.erb (0.9ms) Rendered plugins/redmine_more_previews/converters/cliff/app/views/redmine_more_previews/hooks/_cliff_preview_attachment_top.html.erb (0.9ms) Rendered layouts/_file.html.erb (22.5ms) Rendered plugins/redmine_more_previews/app/views/attachments/more_preview.html.erb within layouts/base (23.0ms) Rendered plugins/redmine_more_previews/app/views/hooks/redmine_more_previews/_icon_css.html.erb (1.2ms) Completed 200 OK in 89ms (Views: 45.9ms | ActiveRecord: 16.9ms)`

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/32#issuecomment-966792229, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRBJAWRK2FALHLTXYITULSC4DANCNFSM5DI4JA2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

stephb59 commented 2 years ago

Dear Steph, the log complains about an attachment not having the thumbnail_path method. This method is defined in Redmine's core, attachment.rb. Seems, Redmine is loosing itself. What other plugins did you install? Best regards Stephan Am 02.09.2021 um 14:12 schrieb stephb59 @.>: Found this within production.log Started GET "/redmine/attachments/more_preview/240/index.pdf" for 192.168.4.43 at 2021-09-02 11:13:59 +0200 Processing by AttachmentsController#more_preview as PDF Parameters: {"id"=>"240"} Current user: @. @.***> (id=5) Couldn't find template for digesting: attachments/more_preview Saving attachment '/opt/redmine/redmine-4.0.4/files/2021/09/210902111359_emoji5.png' (6998 bytes) An error occured while generating preview for /opt/redmine/redmine-4.0.4/files/2021/05/210504143237_447739493c06b0ff0a688f2c4ad2213d.pdf Exception was: undefined method thumbnail_path' for # Did you mean? thumbnail /var/lib/gems/2.3.0/gems/activemodel-5.2.3/lib/active_model/attribute_methods.rb:430:in method_missing' /opt/redmine/redmine-4.0.4/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachment_patch.rb:162:in delete_from_disk!' /opt/redmine/redmine-4.0.4/app/models/attachment.rb:148:in delete_from_disk' — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#32 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRGIE47YKG63JJLHICDT75S37ANCNFSM5DI4JA2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

The only other plugin is "Localizable plugin"

HugoHasenbein commented 2 years ago

Dear Steph,

there is an incompatibility. If you can update to Redmine version 4.1 or later, the plugin should work. Else, I would need to publish a work around.

Best regards

Stephan

Am 15.11.2021 um 10:28 schrieb stephb59 @.***>:

Dear Steph, the log complains about an attachment not having the thumbnail_path method. This method is defined in Redmine's core, attachment.rb. Seems, Redmine is loosing itself. What other plugins did you install? Best regards Stephan … <x-msg://17/#> Am 02.09.2021 um 14:12 schrieb stephb59 @.>: Found this within production.log Started GET "/redmine/attachments/more_preview/240/index.pdf" for 192.168.4.43 at 2021-09-02 11:13:59 +0200 Processing by AttachmentsController#more_preview as PDF Parameters: {"id"=>"240"} Current user: @. @.***> (id=5) Couldn't find template for digesting: attachments/more_preview Saving attachment '/opt/redmine/redmine-4.0.4/files/2021/09/210902111359_emoji5.png' (6998 bytes) An error occured while generating preview for /opt/redmine/redmine-4.0.4/files/2021/05/210504143237_447739493c06b0ff0a688f2c4ad2213d.pdf Exception was: undefined method thumbnail_path' for #Attachment:0x00557c4868d778 Did you mean? thumbnail /var/lib/gems/2.3.0/gems/activemodel-5.2.3/lib/active_model/attribute_methods.rb:430:in method_missing' /opt/redmine/redmine-4.0.4/plugins/redmine_more_previews/lib/redmine_more_previews/patches/attachment_patch.rb:162:in delete_from_disk!' /opt/redmine/redmine-4.0.4/app/models/attachment.rb:148:in delete_from_disk' — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#32 (comment) https://github.com/HugoHasenbein/redmine_more_previews/issues/32#issuecomment-911605500>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRGIE47YKG63JJLHICDT75S37ANCNFSM5DI4JA2Q https://github.com/notifications/unsubscribe-auth/AJWRDRGIE47YKG63JJLHICDT75S37ANCNFSM5DI4JA2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

The only other plugin is "Localizable plugin"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/32#issuecomment-968697097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRHMQ6WVHKO427EG3E3UMDHEHANCNFSM5DI4JA2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

BigDen86 commented 2 years ago

На второй строке сверху должна быть зеленая отметка. Иначе, вернись ко мне С уважением, Стефан Привет, Стефан. Только смог вернуться к работе. Проверил галочки всё в норме кроме Imagemagick PDF (но я так думаю на работу это влиять не должно) пока отображение не работает возможно какие то проблемы с правами. Помогите мне решить эту проблему. image