# Add\_attachment is not defined

**URL:** <https://www.ruby-forum.com/t/add-attachment-is-not-defined/106056>\
**Category:** Radiant CMS\
**Created:** [June 6, 2007, 12:20am UTC](https://www.ruby-forum.com/t/add-attachment-is-not-defined/106056 "2007-06-06T00:20:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [June 6, 2007, 12:20am UTC](https://www.ruby-forum.com/t/add-attachment-is-not-defined/106056/1 "2007-06-06T00:20:24Z")

</div>

Hi, I just installed the page\_attachments Extension following the new  
tutorial at  
[http://dev.radiantcms.org/radiant/wiki/InstallingPageAttachments](http://dev.radiantcms.org/radiant/wiki/InstallingPageAttachments)

I froze Radiant to edge, updated everything, and restarted the web  
server and processes.

When I open a page from the admin, I see the Attachments (0) message,  
and on top of it, the + icon. When I click this icon, nothing happens  
and I get this error message in Firefox console:

Error: add\_attachment is not defined  
Source File: [http://radiant.externalisation.fr/admin/pages/edit/1#](http://radiant.externalisation.fr/admin/pages/edit/1#)  
Line: 1

Note that I emptied my Firefox cache.

Any clue what’s happening? Some javascript file not correctly copied  
maybe?

Thanks!

J.

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [June 6, 2007, 12:22am UTC](https://www.ruby-forum.com/t/add-attachment-is-not-defined/106056/2 "2007-06-06T00:22:24Z")

</div>

Try ‘rake radiant:extensions:page\_attachments:update’ again. That’s the  
task that copies the appropriate CSS and JS to the public directory.

Sean

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [June 6, 2007, 12:41am UTC](https://www.ruby-forum.com/t/add-attachment-is-not-defined/106056/3 "2007-06-06T00:41:26Z")

</div>

On 6/6/07, Sean C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Try ‘rake radiant:extensions:page\_attachments:update’ again. That’s the  
> task that copies the appropriate CSS and JS to the public directory.
> 
> Sean

Files were not readable by web server, I forgot to set the appropriate  
permissions after rake update.

Thanks!

J.
