Project

General

Profile

LightBox 2 by Tobias Fischer internal error when view pdf

Added by Alexandr Demushkin over 9 years ago

After install the plugin, when I am trying to view pdf and push "eye" icon, I get blank box with a internal error

I install the plugin from https://github.com/paginagmbh/redmine_lightbox2 version 0.2.1

Environment:
Redmine version 3.0.0.stable
Ruby version 2.0.0-p598 (2014-11-13) [x86_64-linux]
Rails version 4.2.0
Environment production
Database adapter Mysql2
SCM:
Git 1.9.5
Filesystem
Redmine plugins:
redmine_checklists 3.0.4
redmine_lightbox2 0.2.1
redmine_wiki_extensions 0.7.0
redmine_wysiwyg 1.0.0

The log file:

Started GET "/redmine/attachments/download_inline/104/%d1%80%d0%b0%d0%b7%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%ba%d0%b0%20%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d0%b0%20ECWID.pdf" for 192.168.88.1 at 2015-03-18 14:19:46 +0300
Processing by AttachmentsController#download_inline as HTML
Parameters: {"id"=>"104", "filename"=>"разработка плагина ECWID.pdf"}
Current user: ulm (id=1)
Completed 500 Internal Server Error in 5ms

NoMethodError (undefined method `diskfile' for nil:NilClass):
plugins/redmine_lightbox2/lib/patches/attachments_patch.rb:9:in `download_inline'

Is this a bug in plugin or my fault in some place?
PNG, JPG is viewed fine.


Replies (3)

RE: LightBox 2 by Tobias Fischer internal error when view pdf - Added by Ivan Cenov over 9 years ago

I would like to suggest you, first disable/remove other plugins, leave in place redmine_lightbox2 only to see if there is plugin incompatibility.

RE: LightBox 2 by Tobias Fischer internal error when view pdf - Added by Tobias Fischer over 9 years ago

Thanks for the bug report. Please report bugs to the github issue tracker in the future: https://github.com/paginagmbh/redmine_lightbox2/issues/
This issue is now tracked at https://github.com/paginagmbh/redmine_lightbox2/issues/8

I found and fixed the bug, however, there seems to be a major redmine bug which prevents inline display of PDF attachments within the lightbox...
See #19435 for more details.

RE: LightBox 2 by Tobias Fischer internal error when view pdf - Added by Tobias Fischer over 9 years ago

Tobias Fischer wrote:

I found and fixed the bug, however, there seems to be a major redmine bug which prevents inline display of PDF attachments within the lightbox...
See #19435 for more details.

#19435 is no Redmine bug - more or less a Firefox regression.

Feel free to use v0.2.2 of the Lightbox Plugin with Redmine 3 in production!

    (1-3/3)