# BIG problems after removing page\_attachments

**URL:** <https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277>\
**Category:** Radiant CMS\
**Created:** [August 30, 2008, 6:19am UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277 "2008-08-30T06:19:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 30, 2008, 6:19am UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/1 "2008-08-30T06:19:21Z")

</div>

OK, guys. I gave in to the hype about paperclipped, about how it will  
make my whites whiter and make my food taste better and all that jazz.  
Weeelllll, I need to get rid of page\_attachments first, so I did, and  
now my site won’t start back up.

The process:

1. ssh into server and migrate page\_attachments to VERSION=0
2. delete local copy from project
3. svn commit the the changes
4. cap deploy
5. remove the page\_attachments entry in the production db (was id=1)
6. problems started

When I went back to my old pages in the web browser and refreshed them,  
I got a very long lasting beach ball and the error “Application error  
Rails application failed to start properly” shows up.

This is where it gets good: I tried to go to my production.log to get a  
clue what was happening, but for some reason I told svn to ignore the  
whole log folder when I started the project. Now I have no production  
log to go to and my app won’t start. I’ll set that issue to the side for  
a minute. I’ll have to figure out how to coax svn to start using the log  
directory again another time.

What I really need to know is, did I uninstall the page\_attachments  
extension improperly? Is there something that the extension added or  
changed installed during the installation procedure that might be  
keeping my app from working now that it no longer exists?

Any would certainly be appreciated.

~Nate

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 30, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/2 "2008-08-30T16:22:28Z")

</div>

Nate,

That seems correct. If you get the production log issue fixed, give us  
a pastie of the failure, or better yet, just ssh in and run Mongrel with  
script/server. If it fails to start, it should give you a stack dump of  
the failure.

Sean

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 31, 2008, 5:26am UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/3 "2008-08-31T05:26:55Z")

</div>

On Sat, 2008-08-30 at 10:21 -0400, Sean C. wrote:

> Nate,
> 
> That seems correct. If you get the production log issue fixed, give us  
> a pastie of the failure, or better yet, just ssh in and run Mongrel with  
> script/server. If it fails to start, it should give you a stack dump of  
> the failure.

Well, I went back to the first version before I deleted the  
page\_attachments plugin and I was able to use the site as normal, even  
after I migrated the extension back to VERSION=0. I restarted the server  
and the site behaved like it did before, and on the admin side the  
Attachments section was still visible on the bottom of each of the  
pages. I didn’t try adding anything, it was enough for me that the site  
was loading properly.

Everything changed however when I deleted the page\_attachments  
extension. When I tried to start up the server, I got the following  
output: [http://pastie.org/263392](http://pastie.org/263392) . I am really at a loss here. Do you  
have any idea where I need to start looking to get this thing up and  
running again without page\_attachments? I am totally confused.

Thanks,

Nate

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 1, 2008, 4:32am UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/4 "2008-09-01T04:32:49Z")

</div>

> Well, I went back to the first version before I deleted the  
> page\_attachments plugin and I was able to use the site as normal, even  
> after I migrated the extension back to VERSION=0. I restarted the server  
> and the site behaved like it did before, and on the admin side the  
> Attachments section was still visible on the bottom of each of the  
> pages. I didn’t try adding anything, it was enough for me that the site  
> was loading properly.
> 
> Everything changed however when I deleted the page\_attachments  
> extension. When I tried to start up the server, I got the following  
> output: [http://pastie.org/263392](http://pastie.org/263392) . I am really at a loss here. Do you  
> have any idea where I need to start looking to get this thing up and  
> running again without page\_attachments? I am totally confused.
> 
> Thanks,
> 
> Nate

Are you sure that all your pages do not have any “page\_attachments” tags  
interpolated throughout the content?

P.S, Sorry if its a dumb question.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 1, 2008, 8:42am UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/5 "2008-09-01T08:42:33Z")

</div>

Hmmm … nothing in that dump points to your Radiant app. It’s all  
references to the files in the Radiant gem or in Rails. Can you get a  
more descriptive dump that traces something back or mentions something  
the files in your Radiant instance?

-C

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 2, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/6 "2008-09-02T21:19:56Z")

</div>

On Mon, 2008-09-01 at 04:32 +0200, Arik J. wrote:

> Are you sure that all your pages do not have any “page\_attachments” tags  
> interpolated throughout the content?

I realize that there is no way to know how well/not-well informed  
somebody is when they ask a question on a mailing list, but seriously.  
Yeah, I checked that. It’s not a huge site and there is only one other  
extension loaded (reorder).

Honestly, I got fed up banging my head against the wall and set up a  
new, clean radiant app and moved my database.yml over. Everything works  
like a dream. So no, it’s not something in the database that is messing  
things up. It seemed to as if a phantom controller was requiring it, but  
I couldn’t figure out where that would have been happening. Strangeness.

Long story short, new app, old db, new svn repo and I’ll try and deploy  
it again and see what happens.

~Nate

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 2, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/7 "2008-09-02T22:25:14Z")

</div>

On Tue, 2008-09-02 at 22:08 +0200, Arik J. wrote:

> I wasn’t questioning your intelligence.

Yeah, I know. It is the most obvious thing. Once I read your email I did  
recheck it, but I had removed all references to it. It’s a shame to  
rebuid (well, halfway) the site. It’s all good in the end.

~Nate

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 2, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/8 "2008-09-02T22:30:32Z")

</div>

Yay web development! lol.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 2, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/9 "2008-09-02T22:08:36Z")

</div>

I wasn’t questioning your intelligence. Jesus, take a pill. Did you even  
read the end of the reply?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 17, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/10 "2008-10-17T19:25:05Z")

</div>

On Fri, Aug 29, 2008 at 9:18 PM, removed\_email\_address@domain.invalid  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> OK, guys. I gave in to the hype about paperclipped, about how it will  
> make my whites whiter and make my food taste better and all that jazz.  
> Weeelllll, I need to get rid of page\_attachments first, so I did, and  
> now my site won’t start back up.

How’s paperclipped better than attachment\_fu/page\_attachments?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 18, 2008, 3:36am UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/11 "2008-10-18T03:36:28Z")

</div>

On Fri, Oct 17, 2008 at 12:39 PM, Arik J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Paperclipped doesn’t use RMagick (thanks to the paperclip plugin),  
> instead it directly accesses ImageMagick which does wonders for memory  
> consumption. You can drag and drop assets into the edit page text area.  
> ALL assets are accessible to all pages, unlike page attachments where it  
> didn’t give you access to any previously uploaded attachments (you’d  
> have to re-upload it or access it via another page or it’s parent page  
> using additional radiant tags).

But unlike page\_attachments, you cannot use the images in a stylesheet.  
You  
can use paperclipped to manage PDFs and Flash files, though. And the  
bucket  
metaphor is nice for attaching images to pages.

~Nate

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 17, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/12 "2008-10-17T19:39:43Z")

</div>

Joe Van D. wrote:

> On Fri, Aug 29, 2008 at 9:18 PM, removed\_email\_address@domain.invalid  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > OK, guys. I gave in to the hype about paperclipped, about how it will  
> > make my whites whiter and make my food taste better and all that jazz.  
> > Weeelllll, I need to get rid of page\_attachments first, so I did, and  
> > now my site won’t start back up.
> 
> How’s paperclipped better than attachment\_fu/page\_attachments?

Paperclipped doesn’t use RMagick (thanks to the paperclip plugin),  
instead it directly accesses ImageMagick which does wonders for memory  
consumption. You can drag and drop assets into the edit page text area.  
ALL assets are accessible to all pages, unlike page attachments where it  
didn’t give you access to any previously uploaded attachments (you’d  
have to re-upload it or access it via another page or it’s parent page  
using additional radiant tags).

Someone help me if I’ve missed any features.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 18, 2008, 4:05am UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/13 "2008-10-18T04:05:46Z")

</div>

Why can’t you use the images in a stylesheet? Just specify the image  
URL in the stylesheet.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 18, 2008, 4:13am UTC](https://www.ruby-forum.com/t/big-problems-after-removing-page-attachments/147277/14 "2008-10-18T04:13:22Z")

</div>

I was never able to get it to work. I guess I should try it again before  
I  
start spreading FUD, eh?

~Nate
