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
On Sunday, January 6, 2013 10:40:06 AM UTC-6, Mohit Sindhwani wrote: > > Hello! I'm continuing on with my explorations of a bunch of plugins > that are important as I try to move my sites up to Radiant 1.1.0. So > far, a bunch of things are working fine. From what I see, the following > are Ok: > * Aggregation (built in) > * paperclipped (built in as clipped) > * Copy Move > * reorder_children extension - works fine (minor problem with SQLite3 > fixed) > [didn't try Blog Tags because I mainly needed "next, prev"but this also > offers time_ago_in_words] > * cr = CodeRay --> works fine > * co = Comments --> seems to work fine > > Now, I am on to Gallery and am facing problems. Is anyone successfully > using Gallery (or equivalent) on Radiant 1.0+? > > Specifically, it seems to install fine using: > > Radiant Gallery - https://github.com/hairballopolis/radiant-gallery > > git clone git://github.com/technoweenie/attachment_fu.git > > vendor/plugins/attachment_fu > > git clone git://github.com/hairballopolis/radiant-gallery.git > > vendor/extensions/gallery > > bundle exec rake RAILS_ENV=production radiant:extensions:gallery:install > > I've got imagemagick installed (to a directory with no spaces in the > path) and I have mini_magick. > I edited config/extensions/gallery/gallery.yml to include: > path_prefix: public/galleries > processor: mini_magick > > restarted the server and went to create a gallery. > > "creating" a gallery works fine. > then, I go to the gallery and click on "New File" - select a file from > my filesystem and click on "upload" > get a set of errors: > > /!\ FAILSAFE /!\ 2013-01-07 00:38:52 +0800 > > Status: 500 Internal Server Error > > can't convert nil into Integer > > E:/projects/radiant/test_v10/vendor/plugins/attachment_fu/init.rb:7:in > > `sprintf' > > E:/projects/radiant/test_v10/vendor/plugins/attachment_fu/init.rb:7:in > > `make_tmpname' > > C:/Ruby193/lib/ruby/1.9.1/tmpdir.rb:132:in `create' > > C:/Ruby193/lib/ruby/1.9.1/tempfile.rb:134:in `initialize' > > C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.1.3/lib/rack/utils.rb:547:in > `new' > > Seems to be related to attachment_fu > > Does anyone have any thoughts on what I could do? > > Best Regards, > Mohit. > > > > > >