# Re: \[radiant\] Gallery behavior

**URL:** <https://www.ruby-forum.com/t/re-radiant-gallery-behavior/99311>\
**Category:** Radiant CMS\
**Created:** [July 21, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/re-radiant-gallery-behavior/99311 "2006-07-21T17:45:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [July 21, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/re-radiant-gallery-behavior/99311/1 "2006-07-21T17:45:08Z")

</div>

(sorry if anybody got a second copy of this, I just noticed I didn’t  
add [radiant] to the subject line, and am resending it)

hello, I’m new to radiant and the list. firstly i’d like to thank  
everybody involved in creating radiant,it’s a great tool and i’m  
looking into using it a lot on my projects.  
I’m not that great a programmer, but I’d like to help wherever I can,  
by testing and sending feedback at least.

and so, I just installed it today for the first time and it’s running  
smoothly by itself on top of locomotive 2 on my old tibook 500, just  
like the demo on the radiant site.

by searching the list archives I found the gallery behavior, which  
looks great, and tried dropping it on the plugins directory. but i  
couldn’t run rake (it doesn’t find RMagick though I have it installed  
in locomotive and have its path added to my environment, but I’m  
guessing this is locomotive’s fault), and I’m getting a 500 internal  
server error when accessing any part of the site, be it admin or  
frontend. lighttpd.error.log says

2006-07-20 21:26:00: (mod\_fastcgi.c.2430) unexpected end-of-file  
(perhaps the fastcgi process died): pid: 2665 socket:  
unix:/tmp/ruby-fastcgi.8cqfQ.socket-1  
2006-07-20 21:26:00: (mod\_fastcgi.c.3168) child exited, pid: 2665  
status: 1  
2006-07-20 21:26:00: (mod\_fastcgi.c.3215) response not received,  
request sent: 742 on socket: unix:/tmp/ruby-fastcgi.8cqfQ.socket-1 for  
/dispatch.fcgi , closing connection

but fastcgi.crash.log says nothing…

any ideas of what could be going wrong? thanks Oliver, for writing  
this plugin by the way.

- Oliver (yup, we have the same name 😉 )

---

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [July 21, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/re-radiant-gallery-behavior/99311/2 "2006-07-21T17:55:35Z")

</div>

On 7/21/06, Oliver B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> (sorry if anybody got a second copy of this,

No problem.

I just noticed I didn’t

> add [radiant] to the subject line, and am resending it)

You don’t need to worry about adding [Radiant] to the subject line; the  
listserv does that automagically (…as you can probably see now that  
I’ve  
replied to you, since adding another [radiant] without the same  
capitalization just results in two prefixes).

James

---

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [July 21, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/re-radiant-gallery-behavior/99311/3 "2006-07-21T20:15:46Z")

</div>

Hi Oliver,

On 21-Jul-2006 17:43 +0200, Oliver B. was heard to say:

> by searching the list archives I found the gallery behavior, which  
> looks great, and tried dropping it on the plugins directory. but i  
> couldn’t run rake (it doesn’t find RMagick though I have it installed  
> in locomotive and have its path added to my environment, but I’m  
> guessing this is locomotive’s fault),

I have never used locomotive, but checking their website you seem to  
require the +RMagick bundle ([Locomotive - Browse /locobundles/Locomotive2 Bundles at SourceForge.net](http://tinyurl.com/jj5vb)). Do you have this  
installed? If you have it installed try to run the plugin unit tests  
with:

rake test:plugins

If they fail, you may want to post the output of those tests.

> and I’m getting a 500 internal  
> server error when accessing any part of the site, be it admin or  
> frontend. lighttpd.error.log says  
> 2006-07-20 21:26:00: (mod\_fastcgi.c.2430) unexpected end-of-file  
> (perhaps the fastcgi process died): pid: 2665 socket:  
> unix:/tmp/ruby-fastcgi.8cqfQ.socket-1  
> 2006-07-20 21:26:00: (mod\_fastcgi.c.3168) child exited, pid: 2665 status: 1  
> 2006-07-20 21:26:00: (mod\_fastcgi.c.3215) response not received,  
> request sent: 742 on socket: unix:/tmp/ruby-fastcgi.8cqfQ.socket-1 for  
> /dispatch.fcgi , closing connection

You are getting this error for every request maybe because Rails fails  
to  
start due to the broken plugin, so the fastcgi manager can actually not  
connect to Rails.

Cheers,  
Oliver

---

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [July 21, 2006, 10:28pm UTC](https://www.ruby-forum.com/t/re-radiant-gallery-behavior/99311/4 "2006-07-21T22:28:09Z")

</div>

(james: you’re right, forgot about that… been a while since  
participating on a list)

Hi Oliver,

I did install the RMagick bundle for Locomotive, but rake still  
doesn’t see it, here’s the trace:

~/Sites/radiant 22:12:45 $rake test:plugins --trace  
(in /Users/souza/Sites/radiant)  
\*\* Invoke test:plugins (first\_time)  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
rake aborted!  
No such file to load – RMagick  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `require__' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require’  
/Users/souza/Sites/radiant/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active\_support/dependencies.rb:147:in  
`require' /Users/souza/Sites/radiant/config/../vendor/plugins/gallery_behavior/lib/gallery_behavior.rb:5 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require\_\_’  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `require' /Users/souza/Sites/radiant/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in `require’  
/Users/souza/Sites/radiant/config/…/vendor/plugins/gallery\_behavior/init.rb:1:in  
`load\_plugin’  
(snip)

on my $PATH i have both  
/Applications/Locomotive2/Bundles/rails112.locobundle/powerpc/bin  
(where locomotive has rails and rake and all), and  
/Applications/Locomotive2/Bundles/rails112rmagick\_ppc.locobundle/bin  
(where the rmagick stuff is)

but i also have another ruby install, under /usr/bin… if I run  
‘which rake’, I get /usr/bin/rake, not the locomotive version.

so I tried putting Locomotive foremost on my $PATH, so that the  
Locomotive version of everything would be searched first. but then  
rake barfs because it doesn’t see rubygems 😛

I’m starting to think this is something for the Locomotive users list  
huh…

thanks  
Oliver

2006/7/21, Oliver B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [July 22, 2006, 3:53pm UTC](https://www.ruby-forum.com/t/re-radiant-gallery-behavior/99311/5 "2006-07-22T15:53:59Z")

</div>

thanks Oliver. I’m following up on the locomotive list, it turns out  
it’s an issue other people are having with missing X11 libs. haven’t  
solved the problem yet, but I believe I’m close… I’m looking forward  
to being able to use your plugin.

by the way, is there a recommended way to implement the upload of  
images through the admin instead of FTP? I have clients that freak at  
just hearing the word FTP. I haven’t looked at the innards of radiant  
yet, but I was hoping to be able to integrate file\_column  
[[http://www.kanthak.net/opensource/file\_column/](http://www.kanthak.net/opensource/file_column/)] into it.

- Oliver

2006/7/21, Oliver B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [July 21, 2006, 10:37pm UTC](https://www.ruby-forum.com/t/re-radiant-gallery-behavior/99311/6 "2006-07-21T22:37:33Z")

</div>

On 21-Jul-2006 22:26 +0200, Oliver B. was heard to say:

> `require' /Users/souza/Sites/radiant/config/../vendor/plugins/gallery_behavior/lib/gallery_behavior.rb:5 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require\_\_’  
> /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `require' /Users/souza/Sites/radiant/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in`require’  
> /Users/souza/Sites/radiant/config/…/vendor/plugins/gallery\_behavior/init.rb:1:in  
> `load\_plugin’  
> (snip)

[…]

> I’m starting to think this is something for the Locomotive users list huh…

I would almost say so. As far as I know, there was an RMagick version  
that  
had all package names in lowercase so you needed to load ‘rmagick’,  
maybe  
Locomotive uses this older version. I will try to see for myself when I  
get  
an Apple into my hands and may be able to provide a fix.

Cheers,  
Oliver
