Gallery extension shows only 10 galleries

I use Gallery extension Version: 0.2.0. When I’ve added 11-th gallery I
cannot see it, but in database the gallery exists.
Thanks for help.

Il giorno 12/ago/07, alle ore 14:28, Artur B. ha scritto:

I use Gallery extension Version: 0.2.0. When I’ve added 11-th
gallery I
cannot see it, but in database the gallery exists.
Thanks for help.

I suggest you to upgrade the gallery extension to the latest
version…let me know if the problem still exists!


Andrea F.

[email protected]
http://bigchieflabs.com/blog/
http://think.bigchief.it

How to simply upgrade this extension?? Or I have to remove the old one
?? But i don’t want lose the old galleries…

I’ve upgrade this gallery and everyhting is OK right now :). Thanks a
lot :).

Everything was going fine on one instance of Radiant (exactly test one).
But when I wanted to upgrade the extension on main instance of my
Radiant.
I made following steps:

  1. Remove old gallery(0.2.0) folder form extensions folder.
  2. Copy new one(0.5.3) to the extensions folder.
  3. rake radiant:extensions:gallery:install

I got such an error when i clicked on Galleries tab in my panel.
ActionView::TemplateError (undefined method `children’ for
#Gallery:0x41446664) on line #2 of
vendor/extensions/gallery/app/views/admin/gallery/_gallery.rhtml:
1: <%
2: count = gallery.children.count
3: children = count > 0
4: level = gallery.ancestors.size
5: padding_left = (level * 22) + 4

/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/activerecord/lib/active_record/base.rb:1860:in 

method_missing' /var/www/localhost/ror/radiant/vendor/extensions/gallery/app/views/admin/gallery/_gallery.rhtml:2:in_run_rhtml_47vendor47extensions47gallery47app47views47admin47gallery47_gallery46rhtml’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:326:in
send' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:326:incompile_and_render_template’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:301:in
render_template' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:260:inrender_file’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:275:in
render' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/partials.rb:59:inrender_partial’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in
benchmark' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/partials.rb:58:inrender_partial’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/partials.rb:73:in
render_partial_collection' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/activesupport/lib/active_support/inflector.rb:250:ineach_with_index’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/partials.rb:71:in
each' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/partials.rb:71:ineach_with_index’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/partials.rb:71:in
render_partial_collection' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:285:inrender’
/var/www/localhost/ror/radiant/vendor/extensions/gallery/app/views/admin/gallery/list.rhtml:16:in
_run_rhtml_47vendor47extensions47gallery47app47views47admin47gallery47list46rhtml' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:326:insend’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:326:in
compile_and_render_template' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:301:inrender_template’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_view/base.rb:260:in
render_file' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:806:inrender_file’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:738:in
render_with_no_layout' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:863:inrender_without_layout’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:798:in
render_action' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:748:inrender_with_no_layout’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/activesupport/lib/active_support/deprecation.rb:44:in
silence' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:747:inrender_with_no_layout’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/layout.rb:244:in
render_without_benchmark' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:inrender’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:inrender’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/extensions/gallery/app/controllers/admin/gallery_controller.rb:14:in
index' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:1095:insend’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in
perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:632:incall_filter’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:619:inperform_action_without_benchmark’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:inperform_action’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
send' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:430:inprocess_without_filters’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in
process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:inprocess’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/base.rb:330:in
process' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/railties/lib/dispatcher.rb:41:indispatch’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/railties/lib/fcgi_handler.rb:168:in
process_request' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/railties/lib/fcgi_handler.rb:143:inprocess_each_request!’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/railties/lib/fcgi_handler.rb:109:in
with_signal_handler' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/railties/lib/fcgi_handler.rb:142:inprocess_each_request!’
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:600:in each_cgi' /usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:ineach’
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in each_cgi' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/railties/lib/fcgi_handler.rb:141:inprocess_each_request!’
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/railties/lib/fcgi_handler.rb:55:in
process!' /usr/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/railties/lib/fcgi_handler.rb:25:inprocess!’
/var/www/localhost/ror/radiant/public/dispatch.fcgi:24

Arthur,

If you have the darcs command on your system, you should updgrade the
gallery by running:

darcs pull http://darcs.bigchieflabs.com/radiant/extensions/gallery/

in /vendor/extensions/gallery

No need to remove the old gallery files first, this will patch to the
newest version.