RefineryCMS image uploading error, ImageMagick CentOS 5.5 -


i installed refinerycms on server(centos 5.5) , works fine except uploading images. show error like:

nomethoderror in refinery::admin::imagescontroller#create     undefined method `downcase' nil:nilclass 

i installed imagemagick typing:

sudo yum install imagemagick 

i searched online , seems imagemagick installed yum old (version 6.2.x) removed it, installed imagemagick v6.7.7 source code. when try upload image, refinery shows:

dragonfly::shell::commandfailed in refinery::admin::imagescontroller#create     command failed (identify '/tmp/rackmultipart20120628-29239-70xr45') exit status 127 

however, if run command "identify '/tmp/rackmultipart20120628-29239-70xr45'" in command line, show result without error. seems dragonfly can not pick installation of lastest version of imagemagick. 1 tell me how configure ? or should upgrade centos ?(i wish not)

well, have struggled issue more 1 week. asked question in github , got solution there. see: https://github.com/resolve/refinerycms/issues/1781#issuecomment-6823858

since problem caused dragonfly can not find imagemagick. can try add following code config/application.rb

initializer 'override-image-magick-paths', :after => 'attach-refinery-images-with-      dragonfly'   app=dragonfly[:refinery_images]   app.configure_with(:imagemagick)   app.configure |c|     c.convert_command = "/usr/local/bin/convert"          # defaults "convert"     c.identify_command = "/usr/local/bin/identify"        # defaults "identify"   end end 

modify path according imagemagick installation. can use command find path. e.g. convert

however, still doesn't work me. , finally, toymachiner62 find solution simple , works perfect.

that use symbolic link:

$ cd /usr/bin $ ln -s /usr/local/bin/convert convert              $ ln -s /usr/local/bin/identify identify 

modify /usr/local/bin/convert paths installation well. looks /usr/local/bin path not in $path, is. dragonfly seems can not find anyway.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -