Re: [radiant] Gallery behavior

(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 :wink: )

On 7/21/06, Oliver B. [email protected] 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

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 (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

(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:inrequire’
/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:inrequire__’
/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:inrequire’
/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 :stuck_out_tongue:

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

thanks
Oliver

2006/7/21, Oliver B. [email protected]:

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/] into it.

  • Oliver

2006/7/21, Oliver B. [email protected]:

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:inrequire__’
/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:inrequire’
/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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs