[Radiant] gallery extension error
hi i try to install the gallery-ext. vinz:dorfbrand vinz$ ./script/extension install gallery Initialized empty Git repository in /private/var/folders/-q/-qlnHoFOFbCCajjZzhXJDk+++TI/-Tmp-/gallery/.git/ remote: Counting objects: 1039, done. remote: Compressing objects: 100% (523/523), done. remote: Total 1039 (delta 550), reused 850 (delta 440) Receiving objects: 100% (1039/1039), 307.03 KiB | 341 KiB/s, done. Resolving deltas: 100% (550/550), done. rake aborted! You have a nil object when you didn't expect it! The error occurred while evaluating nil.to_sym (See full trace by running task with --trace) rake aborted! You have a nil object when you didn't expect it! The error occurred while evaluating nil.to_sym (See full trace by running task with --trace) --- so i try this: vinz:dorfbrand vinz$ rake RAILS_ENV=development radiant:extensions:gallery:install --trace (in /Users/vinz/Sites/dorfbrand) ** Invoke radiant:extensions:gallery:install (first_time) ** Invoke radiant:extensions:gallery:create_config_file (first_time) ** Execute radiant:extensions:gallery:create_config_file mkdir -p /Users/vinz/Sites/dorfbrand/config/extensions/gallery ** Invoke environment (first_time) ** Execute environment rake aborted! You have a nil object when you didn't expect it! The error occurred while evaluating nil.to_sym /Users/vinz/Sites/dorfbrand/vendor/extensions/gallery/app/models/gallery_item.rb:17 /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:380:in `load_file' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:379:in `load_file' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:259:in `require_or_load' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:98:in `send' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:98:in `const_missing' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activerecord/lib/active_record/base.rb:2199:in `compute_type' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activerecord/lib/active_record/base.rb:2195:in `compute_type' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activerecord/lib/active_record/reflection.rb:156:in `send' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activerecord/lib/active_record/reflection.rb:156:in `klass' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activerecord/lib/active_record/reflection.rb:187:in `quoted_table_name' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activerecord/lib/active_record/associations.rb:1413:in `configure_dependency_for_has_many' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/activerecord/lib/active_record/associations.rb:823:in `has_many' (eval):3:in `has_many' --- the file gallery_item.rb:17 source has_attachment :storage = Radiant::Config[gallery.storage].to_sym the attachement_fu plugin is in the plugin-directory. Any idea's? Cheers, vinz ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] The system cannot find the path specified.
Hi, First post here - just getting to grips with Radiant. I'm trying to install the Paperclipped extension on a test site and have run into a couple of issues. I'm on Windows, using the RubyInstaller (which recently went RC1): ruby -v ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32] First, if the site is not in a git repo, I get the following error: http://pastie.org/693369 It looks to me like the paperclipped directory in Temp isn't being created. There's no reason a dir can't be created in there, and %TEMP% is set correctly: echo %TEMP% C:\Users\charlesr\AppData\Local\Temp So I wiped the project, recreated it, manually created the paperclipped dir in Temp and tried again: http://pastie.org/693374 Seems like there are problems creating or finding directories and/or files with the Windows filesystem. Note, the paperclipped dir I manually added to Temp is deleted automatically when I run the above task. Next I tried installing the extension once I had added my test site to a git repo. This seemed to fare better, although there is an error on line 9 of the output: http://pastie.org/693362 The system cannot find the path specified. Not sure what is going on there. The install *appears* to have worked, but that warning leaves me feeling anxious that something is not quite right. Cheers, Charles ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] gallery extension error
I just had the same problem. You need to edit your config/ environment.rb file. Inside the config.after_initialize block, add the line: Radiant::Config[gallery.storage] = s3 That fixed it for me. On 11 Nov 2009, at 09:16, Emanuel Vinzent wrote: hi i try to install the gallery-ext. vinz:dorfbrand vinz$ ./script/extension install gallery Initialized empty Git repository in /private/var/folders/-q/-qlnHoFOFbCCajjZzhXJDk+++TI/-Tmp-/ gallery/.git/ remote: Counting objects: 1039, done. remote: Compressing objects: 100% (523/523), done. remote: Total 1039 (delta 550), reused 850 (delta 440) Receiving objects: 100% (1039/1039), 307.03 KiB | 341 KiB/s, done. Resolving deltas: 100% (550/550), done. rake aborted! You have a nil object when you didn't expect it! The error occurred while evaluating nil.to_sym (See full trace by running task with --trace) rake aborted! You have a nil object when you didn't expect it! The error occurred while evaluating nil.to_sym (See full trace by running task with --trace) --- so i try this: vinz:dorfbrand vinz$ rake RAILS_ENV=development radiant:extensions:gallery:install --trace (in /Users/vinz/Sites/dorfbrand) ** Invoke radiant:extensions:gallery:install (first_time) ** Invoke radiant:extensions:gallery:create_config_file (first_time) ** Execute radiant:extensions:gallery:create_config_file mkdir -p /Users/vinz/Sites/dorfbrand/config/extensions/gallery ** Invoke environment (first_time) ** Execute environment rake aborted! You have a nil object when you didn't expect it! The error occurred while evaluating nil.to_sym /Users/vinz/Sites/dorfbrand/vendor/extensions/gallery/app/models/ gallery_item.rb:17 /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:380:in `load_file' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:379:in `load_file' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:259:in `require_or_load' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:92:in `const_missing' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:98:in `send' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/dependencies.rb:98:in `const_missing' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activerecord/lib/active_record/base.rb:2199:in `compute_type' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activerecord/lib/active_record/base.rb:2195:in `compute_type' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activerecord/lib/active_record/reflection.rb:156:in `send' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activerecord/lib/active_record/reflection.rb:156:in `klass' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activerecord/lib/active_record/reflection.rb:187:in `quoted_table_name' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activerecord/lib/active_record/associations.rb:1413:in `configure_dependency_for_has_many' /Users/vinz/.gem/ruby/1.8/gems/radiant-0.8.1/vendor/rails/ activerecord/lib/active_record/associations.rb:823:in `has_many' (eval):3:in `has_many' --- the file gallery_item.rb:17 source has_attachment :storage = Radiant::Config[gallery.storage].to_sym the attachement_fu plugin is in the plugin-directory. Any idea's? Cheers, vinz ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] gallery extension error
On 11.11.2009, at 10:23, Paul Ingles wrote: I just had the same problem. You need to edit your config/ environment.rb file. Inside the config.after_initialize block, add the line: Radiant::Config[gallery.storage] = s3 That fixed it for me. It basically is the storage option of attachment_fu http://wiki.github.com/technoweenie/attachment_fu options are db_file, file_system db_file, and s3 cu edi -- DI Edmund Haselwanter, edm...@haselwanter.com, http://edmund.haselwanter.com/ ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] gallery extension error
thanks guys for help! works fine*! cheers vinz* 2009/11/11 Haselwanter Edmund edm...@haselwanter.com On 11.11.2009, at 10:23, Paul Ingles wrote: I just had the same problem. You need to edit your config/ environment.rb file. Inside the config.after_initialize block, add the line: Radiant::Config[gallery.storage] = s3 That fixed it for me. It basically is the storage option of attachment_fu http://wiki.github.com/technoweenie/attachment_fu options are db_file, file_system db_file, and s3 cu edi -- DI Edmund Haselwanter, edm...@haselwanter.com, http://edmund.haselwanter.com/ ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Rack Lighttpd fix breaks extension migration
Try pasting the code he mentions directly into config/environments/production.rb. It seems that is being triggered because Rails is trying to load Rack::LighttpdFix by requiring 'rack/lighttpd_fix'. Sean Tom Stoll wrote: Several weeks ago, I asked a question about caching problems on shared hosting which was nicely resolved by this: http://workswithruby.com/2009/7/rack-cache-and-lighttpd-fcgi So everything works fine, until I try to install an extension and run its migration. I installed ray, help, and mailer: things are fine. I can install settings and paperclipped, but they are non-functional, and I cannot run the rake production db:migrate:extensions task. It fails with the following error: no such file to load -- rack/lighttpd_fix This obviously has to do with the above hack, but everything I've tried to work around it has not worked. Any help would be appreciated. System Info: Rails 2.3.3, Radiant 0.8.1, Bluehost shared hosting service. Thanks! Tom ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] The system cannot find the path specified.
On 11/11/2009 09:17, Charles Roper wrote: Hi, First post here - just getting to grips with Radiant. I'm trying to install the Paperclipped extension on a test site and have run into a couple of issues. I'm on Windows, using the RubyInstaller (which recently went RC1): ruby -v ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32] I've done some further digging and found the problem. I've created an issue on Github: http://github.com/radiant/radiant/issues/#issue/69 Cheers, Charles ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant