[CommunityEngine] Re: attachment_fu error testing in rails 2.2.2
Thanks. I ran into the same issue :) On Feb 17, 5:04 pm, Bruno Bornsztein bruno.bornszt...@gmail.com wrote: Check out the latest stuff in edge... I encountered this problem today and fixed it. On Tue, Feb 17, 2009 at 2:08 PM, Bruno Bornsztein bruno.bornszt...@gmail.com wrote: Are you overriding any controllers, by any chance? On Wed, Feb 4, 2009 at 9:25 PM, SimianLogic learnyoura...@gmail.comwrote: It looks like a modified form of this patch is in /vendor/plugins/ community_engine/engine_config/initializers/attachment_fu_fix.rb This code works for me while in development mode, but as soon as I switch to a production environment uploading an image bombs out with a NoMethodError (chunk of the trace below, pointing back to the attachment_fu_fix file). Has anyone else run into this? Running in development all the time is a suboptimal solution. NoMethodError (undefined method `after_resize_callback_chain' for #Class:0xb6ade4c0): /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/base.rb:1833:in `method_missing' /vendor/plugins/community_engine/engine_config/initializers/ attachment_fu_fix.rb:25:in `send' /vendor/plugins/community_engine/engine_config/initializers/ attachment_fu_fix.rb:25:in `run_callbacks' /vendor/plugins/community_engine/engine_config/initializers/ attachment_fu_fix.rb:13:in `callback_with_args' /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/ technoweenie/attachment_fu/processors/rmagick_processor.rb:35:in `process_attachment' /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/ technoweenie/attachment_fu/processors/rmagick_processor.rb:22:in `call' /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/ technoweenie/attachment_fu/processors/rmagick_processor.rb:22:in `with_image' /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/ technoweenie/attachment_fu.rb:317:in `with_image' /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/ technoweenie/attachment_fu/processors/rmagick_processor.rb:31:in `process_attachment' On Jan 21, 12:58 pm, simplicoder simplico...@gmail.com wrote: I got this error when doing a rake community_engine:test in rails 2.2.2 install of CE... Error:undefined method `after_attachment_saved_callback_chain' This seems to have been fixed in the March 2008 version of attachument_fu according to its CHANGELOG on github... But implementing the monkeypatch it references athttp:// blog.methodmissing.com/2008/1/19/edge-callback-refactorings-at... into attachment_fu_hacks.rb is the easiest fix. In defense of linkrot, the code is: module Technoweenie module AttachmentFu module InstanceMethods def self.included( base ) base.define_callbacks * [:after_resize, :after_attachment_saved, :before_thumbnail_saved] end def callback_with_args(method, arg = self) notify(method) result = run_callbacks(method, { :object = arg }) { | result, object| result == false } if result != false respond_to_without_attributes?(method) result = send(method) end return result end def run_callbacks(kind, options = {}, block) options.reverse_merge!( :object = self ) ::ActiveSupport::Callbacks::Callback.run(self.class.send(# {kind}_callback_chain), options[:object], options, block) end end end end --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CommunityEngine group. To post to this group, send email to communityengine@googlegroups.com To unsubscribe from this group, send email to communityengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~--~~~~--~~--~--~---
[CommunityEngine] BBorn
Which of your site is running on edge? I can't sign up to Kirbly because it's invite only. I tried upgrading to latest SWFUpload but I'm not getting the upload button for some reason. Wanted to compare my HTML with one of your site where it actually works. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CommunityEngine group. To post to this group, send email to communityengine@googlegroups.com To unsubscribe from this group, send email to communityengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~--~~~~--~~--~--~---
[CommunityEngine] Re: BBorn
Well I figured out my problem. When updating my uploader.js I somehow managed to grab it from master instead of edge. On Mar 29, 7:23 am, sprite aake.gregert...@gmail.com wrote: Which of your site is running on edge? I can't sign up to Kirbly because it's invite only. I tried upgrading to latest SWFUpload but I'm not getting the upload button for some reason. Wanted to compare my HTML with one of your site where it actually works. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CommunityEngine group. To post to this group, send email to communityengine@googlegroups.com To unsubscribe from this group, send email to communityengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~--~~~~--~~--~--~---
[CommunityEngine] Re: BBorn
Getting this error now Processing PhotosController#swfupload (for 127.0.0.1 at 2009-03-29 07:45:51) [POST] Session ID: 551e161357f86cf49c5d7b55f0adf2f2 Parameters: {Filename=jessicahot.jpg, album_id=14, Upload=Submit Query, _vipwithme2_session=19ffd7c aafb7a918c5e6a472a5d27c37, user_id=1, Filedata=#ActionController::UploadedStringIO:0x8cee7a0} [I18n] loading locale: en from config [I18n] Locale set to en Filter chain halted as [:login_required] rendered_or_redirected. Completed in 0ms (View: 0, DB: 63) | 406 Not Acceptable [http:// localhost/1/albums/14/photos/swfupload?_vipwithme2_sessi on=19ffd7caafb7a918c5e6a472a5d27c37] On Mar 29, 7:23 am, sprite aake.gregert...@gmail.com wrote: Which of your site is running on edge? I can't sign up to Kirbly because it's invite only. I tried upgrading to latest SWFUpload but I'm not getting the upload button for some reason. Wanted to compare my HTML with one of your site where it actually works. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CommunityEngine group. To post to this group, send email to communityengine@googlegroups.com To unsubscribe from this group, send email to communityengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~--~~~~--~~--~--~---
[CommunityEngine] Re: BBorn
So it seems the session IDs don't match... but why? On Mar 29, 8:04 am, sprite aake.gregert...@gmail.com wrote: Processing PhotosController#swfupload (for 12.228.3.116 at 2009-03-29 10:01:09) [POST] Session ID: aad4900bce548456f9a9af5a101e0fab Parameters: {Filename=paris-hilton-picture-1.jpg, album_id=14, _vipwithme2_session=a8af949a13d3f8c326e0fdd7a005ee50, Upload=Submit Query, user_id=1, Filedata=#File:/tmp/ CGI21423-3} Filter chain halted as [:login_required] rendered_or_redirected. Completed in 1ms (View: 0, DB: 7) | 406 Not Acceptable [http://www.vipwithme.com/1/albums/14/photos/swfupload?_vipwithme2_session=a8...] On Mar 29, 7:47 am, sprite aake.gregert...@gmail.com wrote: Getting this error now Processing PhotosController#swfupload (for 127.0.0.1 at 2009-03-29 07:45:51) [POST] Session ID: 551e161357f86cf49c5d7b55f0adf2f2 Parameters: {Filename=jessicahot.jpg, album_id=14, Upload=Submit Query, _vipwithme2_session=19ffd7c aafb7a918c5e6a472a5d27c37, user_id=1, Filedata=#ActionController::UploadedStringIO:0x8cee7a0} [I18n] loading locale: en from config [I18n] Locale set to en Filter chain halted as [:login_required] rendered_or_redirected. Completed in 0ms (View: 0, DB: 63) | 406 Not Acceptable [http:// localhost/1/albums/14/photos/swfupload?_vipwithme2_sessi on=19ffd7caafb7a918c5e6a472a5d27c37] On Mar 29, 7:23 am, sprite aake.gregert...@gmail.com wrote: Which of your site is running on edge? I can't sign up to Kirbly because it's invite only. I tried upgrading to latest SWFUpload but I'm not getting the upload button for some reason. Wanted to compare my HTML with one of your site where it actually works. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CommunityEngine group. To post to this group, send email to communityengine@googlegroups.com To unsubscribe from this group, send email to communityengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~--~~~~--~~--~--~---
[CommunityEngine] Re: BBorn
Can't make any sense of this. The session ID passed in is actually correct. The session ID displayed in the Rails log is wrong... Processing UsersController#show (for 12.228.3.116 at 2009-03-29 10:59:02) [GET] Session ID: 1fc819f0a5fa5f46a3c70520146ee57f Parameters: {id=camgirl} Rendering template within layouts/application Rendering users/show Completed in 133ms (View: 110, DB: 3) | 200 OK [http:// www.vipwithme.com/camgirl] Processing PhotosController#swfupload (for 12.228.3.116 at 2009-03-29 10:59:36) [POST] Session ID: aad4900bce548456f9a9af5a101e0fab WTF? Parameters: {Filename=jessicahot.jpg, album_id=14, _vipwithme2_session=1fc819f0a5fa5f46a3c70520146ee57f, Upload=Submit Query, user_id=1, Filedata=#ActionController::UploadedStringIO:0x7f060573dfb8} Filter chain halted as [:login_required] rendered_or_redirected. Completed in 1ms (View: 0, DB: 1) | 406 Not Acceptable [http:// www.vipwithme.com/1/albums/14/photos/swfupload?_vipwithme2_session=1fc819f0a5fa5f46a3c70520146ee57f] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CommunityEngine group. To post to this group, send email to communityengine@googlegroups.com To unsubscribe from this group, send email to communityengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~--~~~~--~~--~--~---