I just switched from Radiant 0.6.1 full-install to Radiant 0.6.2 on gem.
Locally everything worked fine, but on the live server the Page
Attachments extension won’t upload image files (JPG and PNG tested).
Text files and 1MB+ PDFs work fine, but images are a no-go.
I’m 99% sure this is just a server issue and not a Page Attachments bug.
The server has the image_science gem for processing images, but NOT
RMagick or ImageMagick. Here is the log output:
TypeError (Unknown file format):
/users/home/MYAPPNAME/web/vendor/extensions/page_attachments/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:14:in
with_image' /users/home/MYAPPNAME/web/vendor/extensions/page_attachments/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:14:in
with_image’
/users/home/MYAPPNAME/web/vendor/extensions/page_attachments/lib/technoweenie/attachment_fu.rb:317:in
with_image' /users/home/MYAPPNAME/web/vendor/extensions/page_attachments/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:21:in
process_attachment’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in
send' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in
callback’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in
each' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in
callback’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:301:in
valid?' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/validations.rb:751:in
save_without_transactions’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in
save' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in
transaction’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:95:in
transaction' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:121:in
transaction’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in
save' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb:163:in
insert_record’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:26:in
<<' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:23:in
each’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:23:in
<<' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in
transaction’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:95:in
transaction' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:121:in
transaction’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:22:in
<<' /users/home/MYAPPNAME/web/vendor/extensions/page_attachments/app/models/page_attachment_associations.rb:33:in
save_attachments’
/users/home/MYAPPNAME/web/vendor/extensions/page_attachments/app/models/page_attachment_associations.rb:32:in
each' /users/home/MYAPPNAME/web/vendor/extensions/page_attachments/app/models/page_attachment_associations.rb:32:in
save_attachments’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in
send' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in
callback’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in
each' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in
callback’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/callbacks.rb:243:in
create_or_update' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/base.rb:1545:in
save_without_validation’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/validations.rb:752:in
save_without_transactions' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in
save’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in
transaction' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:95:in
transaction’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:121:in
transaction' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in
save’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/app/controllers/admin/page_controller.rb:110:in
save' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/app/controllers/admin/abstract_model_controller.rb:116:in
handle_new_or_edit_post’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/app/controllers/admin/page_controller.rb:25:in
edit' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in
send’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in
perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in
call_filter’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in
perform_action_without_benchmark’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in
measure’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in
perform_action’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
send' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
process_without_filters’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in
process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
process_without_test’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/test_process.rb:15:in
process' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/actionpack/lib/action_controller/base.rb:330:in
process’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/railties/lib/dispatcher.rb:41:in
dispatch' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/railties/lib/fcgi_handler.rb:168:in
process_request’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/railties/lib/fcgi_handler.rb:143:in
process_each_request!' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/railties/lib/fcgi_handler.rb:109:in
with_signal_handler’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/railties/lib/fcgi_handler.rb:142:in
process_each_request!' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in
each_cgi’
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in
each' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in
each_cgi’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/railties/lib/fcgi_handler.rb:141:in
process_each_request!' /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/railties/lib/fcgi_handler.rb:55:in
process!’
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/vendor/rails/railties/lib/fcgi_handler.rb:25:in
`process!’
/users/home/MYAPPNAME/web/public/dispatch.fcgi:24