zipme / redmine_lightbox

Lightbox for image attachments
MIT License
116 stars 118 forks source link

RoutingError when using IE 8 #20

Closed creasyimm closed 13 years ago

creasyimm commented 13 years ago

I got following error log when access redmine project->issue page from IE8, but everything is OK from firefox and google chrome.

Any idea how to avoid these annoying error message?

Processing ApplicationController#index (for 192.168.4.45 at 2011-06-10 12:50:23) [GET]

ActionController::RoutingError (No route matches "/projects/dpi/images/fancy_shadow_nw.png" with {:method=>:get}): passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:513:inaccept_and_process_next_request' passenger (3.0.7) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:321:instart_request_handler' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in send' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:275:inhandle_spawn_application' passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in safe_fork' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:270:inhandle_spawn_application' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in __send__' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in start_synchronously' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:instart' passenger (3.0.7) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in start' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:inspawn_rails_application' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:132:in lookup_or_add' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:inspawn_rails_application' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:82:in synchronize' passenger (3.0.7) lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in spawn_rails_application' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:inspawn_application' passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in handle_spawn_application' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:insend' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in server_main_loop' passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously' passenger (3.0.7) helper-scripts/passenger-spawn-server:99

Rendering /var/www/html/redmine/public/404.html (404 Not Found)

zipme commented 13 years ago

IE has some issue with png file, so the fancybox uses IE's filter AlphaImageLoader to solve this problem, the problem is that the AlphaImageLoader uses the current page's (relative) address instead of the css's relative address.

So if you check https://github.com/zipme/redmine_lightbox/blob/master/assets/stylesheets/jquery.fancybox-1.3.4.css, at the bottom of the file you can see something like .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/fancy_shadow_n.png', sizingMethod='scale'); }

You can change these src from 'images/fancy_shadow_n.png' to "/plugin_assets/redmine_lightbox/images/fancybox-y.png" then it will work fine.

creasyimm commented 13 years ago

Thanks~!