# Gallery 500 Error

**URL:** <https://www.ruby-forum.com/t/gallery-500-error/161996>\
**Category:** Radiant CMS\
**Created:** [March 4, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/gallery-500-error/161996 "2009-03-04T17:06:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [March 4, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/gallery-500-error/161996/1 "2009-03-04T17:06:29Z")

</div>

I’m getting a 500 Error in my Gallery admin tab and the images don’t  
display on my site.

My gallery folder with all the images is still intact in “public”.

Is there a way to clear everything and rebuild, but not lose the images?

I updated radiant and all my extensions over the weekend so both are  
current, but I’m not sure when it broke.

Thanks for your help,

Ben

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [March 6, 2009, 10:35am UTC](https://www.ruby-forum.com/t/gallery-500-error/161996/2 "2009-03-06T10:35:15Z")

</div>

Ben M. wrote:

> I’m getting a 500 Error in my Gallery admin tab and the images don’t  
> display on my site.

Upon futher inspection in the production.log, I found:

ActionView::TemplateError (undefined method `parent’ for  
#Array:0x2ba402816c40) on line #3 of gallery\_items/\_item.html.erb:  
1:

  
2: \<%= item\_label(item) %\>  
3: \<%= item\_preview(item) %\>  
4: \<%= item\_buttons(item) %\>  
5: 
\<%= “#{item.description}” %\>
  
6: 

Any ideas on how I could fix it?

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [March 8, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/gallery-500-error/161996/3 "2009-03-08T22:07:14Z")

</div>

I tried deleting the extension directory in “vendor” and re-installing  
it, twice. This did not fix the problem.

The error message about “undefined method ‘parent’” seems to point to  
something in the gallery controller, but if it is working for everybody  
else, that doesn’t make much sense.

If any of you could shed some light on this, or give me something to  
try, I would be extremely grateful.

To see what happens head over to [http://www.artcrete.com/showcase/](http://www.artcrete.com/showcase/). The  
images point to a link that contains the error message.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [March 10, 2009, 12:48am UTC](https://www.ruby-forum.com/t/gallery-500-error/161996/4 "2009-03-10T00:48:36Z")

</div>

Well, I figured it out after banging my head on the desk a few times –  
I had frozen the radiant install so it couldn’t take advantage of the  
new gem. Running the unfreeze task fixed it.
