Hi John,

Thanks for the reply!

On 7/1/2013 7:28 AM, john wrote:
i don't think attachment_fu was ever updated to be fully compatible with ruby 1.9.x...see https://github.com/technoweenie/attachment_fu/issues/25 for this specific issue


I have been to that page a few times, and have tried a few of the things that are suggested - but no real luck yet.

So far, I have
* changed the implementation of make_tmpname
* changed code within the mini_magick processor for deprecation
* changed code within attachment_fu for deprecation
* made a couple of other minor changes

Now, it claims to upload correctly but the thumbnails are all the same size as the original. Also, when I go to the view of the specific gallery, I get an error of this kind:
NoMethodError in Gallery_items#index

Showing vendor/extensions/gallery/app/views/gallery_items/_item.html.erb where line #3 raised:

undefined method `*' for nil:NilClass

Extracted source (around line #3):

1: <div class="item" id="item_<%= item.id %>">
2:   <%= item_label(item) %>
3:   <%= item_preview(item) %>
4:   <%= item_buttons(item) %>
5: <div class="credits" id="item_<%= item.id %>_credits" style="display:none;"><%= "#{item.credits}" %></div> 6: <div class="description" id="item_<%= item.id %>_description" style="display:none;"><%= "#{item.description}" %></div>

Digging down, this comes from the function
E:/projects/radiant/test_v10/vendor/extensions/gallery/app/models/gallery_item.rb:182:in `proportional_resize'

which says:
    [(width * scale_ratio).to_i, (height * scale_ratio).to_i]

so, either width or height is nil.

I will have to backtrack and find why this is happening.

Is anyone using gallery or something else for picture galleries in Radiant 1.0+?
Best Regards,
Mohit.



Reply via email to