HugoHasenbein/redmine_more_previews

After install on redmine 5, pdf preview not working

brgsousa opened this issue · 2 comments

I installed redmine_more_previews correctly but nothing happens when openning a PDF file for example.

This is my environment:

Environment:
  Redmine version                5.0.4.stable
  Ruby version                   2.7.4-p191 (2021-07-07) [x86_64-linux-gnu]
  Rails version                  6.1.7
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Default
SCM:
  Filesystem                     
Redmine plugins:
  redmine_agile                  1.6.5
  redmine_more_previews          5.0.8

I have enabled "PEEK" indeed.
Captura de tela 2023-05-19 095653

There is no error on log file whatsoever:

I, [2023-05-19T09:57:13.417234 #371956]  INFO -- : [01a66ae9-405e-4a1f-b1b8-65ad1740af12] Started GET "/attachments/124244" for 10.43.212.246 at 2023-05-19 09:57:13 -0300
I, [2023-05-19T09:57:13.419029 #371956]  INFO -- : [01a66ae9-405e-4a1f-b1b8-65ad1740af12] Processing by AttachmentsController#show as HTML
I, [2023-05-19T09:57:13.419269 #371956]  INFO -- : [01a66ae9-405e-4a1f-b1b8-65ad1740af12]   Parameters: {"id"=>"124244"}
I, [2023-05-19T09:57:13.426514 #371956]  INFO -- : [01a66ae9-405e-4a1f-b1b8-65ad1740af12]   Current user: uitec (id=76)
I, [2023-05-19T09:57:13.443723 #371956]  INFO -- : [01a66ae9-405e-4a1f-b1b8-65ad1740af12]   Rendered attachments/other.html.erb within layouts/base (Duration: 8.6ms | Allocations: 3595)
I, [2023-05-19T09:57:13.474922 #371956]  INFO -- : [01a66ae9-405e-4a1f-b1b8-65ad1740af12]   Rendered layout layouts/base.html.erb (Duration: 39.8ms | Allocations: 29894)
I, [2023-05-19T09:57:13.475259 #371956]  INFO -- : [01a66ae9-405e-4a1f-b1b8-65ad1740af12] Completed 200 OK in 56ms (Views: 36.1ms | ActiveRecord: 7.7ms | Allocations: 33985)

When I try to open a PDF file:

Captura de tela 2023-05-19 100005

I have just figured that out! Thank you. Please consider including that instruction on "install" in your readme.md
image