Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8213373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:05:41+00:00 2026-06-07T11:05:41+00:00

I installed RefineryCMS on my server(CentOs 5.5) and everything works fine except uploading images.

  • 0

I installed RefineryCMS on my server(CentOs 5.5) and everything works fine except uploading images. It will show an error like:

NoMethodError in Refinery::Admin::ImagesController#create

   undefined method `downcase' for nil:NilClass

I installed ImageMagick by typing:

sudo yum install ImageMagick

I searched online and it seems ImageMagick installed by yum is too old (Version 6.2.x)
Then I removed it, successfully installed ImageMagick v6.7.7 from source code.
Now when I try to upload an image, refinery shows:

Dragonfly::Shell::CommandFailed in Refinery::Admin::ImagesController#create

   Command failed (identify '/tmp/RackMultipart20120628-29239-70xr45') with exit status 127

However, if I run that command “identify ‘/tmp/RackMultipart20120628-29239-70xr45′” in the command line, it will show the result without any error. It seems that Dragonfly can not pick up my installation of the lastest version of ImageMagick. Could any one tell me how to configure it ? Or should I upgrade my centOS ?(I wish not)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:05:42+00:00Added an answer on June 7, 2026 at 11:05 am

    Well, I have struggled with this issue for more than one week.
    I also asked this question in Github and finally got the solution there.
    see: https://github.com/resolve/refinerycms/issues/1781#issuecomment-6823858

    Since this problem is caused by that Dragonfly can not find imagemagick.
    You can try add the following code to config/application.rb

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

    Modify the path according to your imagemagick installation.
    You can use which command to find the path. e.g. which convert

    However, this still doesn’t work for me.
    And finally, toymachiner62 find a solution which is simple and works perfect.

    That is to use symbolic link:

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

    modify the /usr/local/bin/convert paths to you installation as well.
    This looks like my /usr/local/bin path is not in my $PATH, but actually it is.
    Dragonfly just seems can not find it anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed SVN on a Windows 2008 server, everything works like it should, except
I installed AvalancheImagineBundle for Symfony 2.0. Everything wen't fine except the fact that it
I installed memcached in a CentOS following this steps This is the PHP error:
I installed the ADT plugin for Android for Eclipse, and I don't like it.
I installed the playframework fbconnect module (version 0.6). I keep getting the following error.
I installed the latest stable xampp package, and received the following error page when
Installed Magento 1.6.2.0, and noticed that the links are like http://MYSEUPERSTORE.com/ index.php /customer/account/ but
Installed SlikSvn on Window 2008 server Created Repository at c:\dia\svn\repos running this windows service
I installed eclipse and the FDT plugin. Now i would like to create a
Just installed Gollum wiki on Ubuntu server 11.10, and when I go to launch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.