# Image 404s

**URL:** <https://www.ruby-forum.com/t/image-404s/199960>\
**Category:** Radiant CMS\
**Created:** [December 2, 2010, 1:26am UTC](https://www.ruby-forum.com/t/image-404s/199960 "2010-12-02T01:26:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [December 2, 2010, 1:26am UTC](https://www.ruby-forum.com/t/image-404s/199960/1 "2010-12-02T01:26:40Z")

</div>

I have just started using Radiant (which is just great, by the way),  
so apologies in advance for what may be a very simple question: the  
server log shows various 404s to image files: button.png and new-  
snippet.png are two examples. My setup is on locahost, for testing, so  
the 404 refers to (for example) this url:  
[http://localhost/images/admin/button.png](http://localhost/images/admin/button.png).  
There are quite a few image files in /images/admin, but not  
button.png. On the other hand, there is a new-snippet.png in the  
images/admin directory, but I still get a 404 for that file as well.  
These image files are not ones that I have created, so I’m not sure  
what’s going on. I do have some extensions installed (Chronicle, blog,  
mailer, paperclipped, settings) and I don’t know if these are a  
factor. I have combed through all the css files I can find, and  
nothing seems to point to these missing files.

Suggestions?

Thanks in advance.

Ross Laird

---

<div class="post-metadata">

**Author:** ![rosslaird](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rosslaird](https://www.ruby-forum.com/u/rosslaird)\
**Post date:** [December 2, 2010, 1:54am UTC](https://www.ruby-forum.com/t/image-404s/199960/2 "2010-12-02T01:54:11Z")

</div>

connect to your DB and do a select \* across all the tables w/ a content  
field:

page\_parts  
pages  
snippets  
layouts

e.g. select \* from page\_parts where content like ‘%button.png%’, etc.

That should identify where the reference to the asset is.

For the new-snippet.png 404 - that’s a tough one. I’d use curl to debug  
it -  
confirm the 404 w/ curl and then go from there. My guess is the browser  
is  
requesting it with the wrong URI.

e.g. curl -svo /dev/null localhost/images/admin/new-snippet.png

HTH,  
Fima

---

<div class="post-metadata">

**Author:** ![rosslaird](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rosslaird](https://www.ruby-forum.com/u/rosslaird)\
**Post date:** [December 2, 2010, 3:02am UTC](https://www.ruby-forum.com/t/image-404s/199960/3 "2010-12-02T03:02:57Z")

</div>

Thanks for the help.  
Unless I’ve done something incorrectly, this:

> select \* from page\_parts where content like ‘%button.png%’, etc.

returns no results (I did this in PHPMyAdmin) for any of the tables  
with a content field.

> For the new-snippet.png 404 - that’s a tough one. I’d use curl to debug it -

Here’s what I get from “curl -svo /dev/null localhost/images/admin/new-  
snippet.png”:

GET /images/admin/new-snippet.png HTTP/1.1  
User-Agent: curl/7.21.0 (i686-pc-linux-gnu) libcurl/7.21.0 OpenSSL/  
0.9.8o zlib/1.2.3.4 libidn/1.18  
Host: localhost  
Accept: _/_

HTTP/1.1 404 Not Found  
Date: Thu, 02 Dec 2010 01:51:01 GMT  
Server: Apache/2.2.16 (Ubuntu)  
Vary: Accept-Encoding

I’m not sure where to go next with that.

So, overall, I am learning things (the upside) but not closer to  
resolving this (the downside).  
Thanks again for the help.

Cheers.

Ross

---

<div class="post-metadata">

**Author:** ![rosslaird](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rosslaird](https://www.ruby-forum.com/u/rosslaird)\
**Post date:** [December 2, 2010, 5:09am UTC](https://www.ruby-forum.com/t/image-404s/199960/4 "2010-12-02T05:09:35Z")

</div>

Nope. I get 404 for them all.

R.

On Dec 1, 7:55pm, Fima L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Can you hit other assets in the /admin dir w/ curl and do u get a 200?

---

<div class="post-metadata">

**Author:** ![rosslaird](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rosslaird](https://www.ruby-forum.com/u/rosslaird)\
**Post date:** [December 2, 2010, 4:56am UTC](https://www.ruby-forum.com/t/image-404s/199960/5 "2010-12-02T04:56:23Z")

</div>

Can you hit other assets in the /admin dir w/ curl and do u get a 200?

---

<div class="post-metadata">

**Author:** ![rosslaird](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rosslaird](https://www.ruby-forum.com/u/rosslaird)\
**Post date:** [December 2, 2010, 8:26am UTC](https://www.ruby-forum.com/t/image-404s/199960/6 "2010-12-02T08:26:47Z")

</div>

Yup so your request path/URI is wrong. Do a:

$ pwd; ls -lh

inside your image directory

---

<div class="post-metadata">

**Author:** ![rosslaird](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rosslaird](https://www.ruby-forum.com/u/rosslaird)\
**Post date:** [December 2, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/image-404s/199960/7 "2010-12-02T15:09:07Z")

</div>

I started to wonder if this was related to the chronicle extension  
after I grep’ed for various of the 404-causing files and found  
references to these files:

./vendor/extensions/chronicle/app/views/admin/snippets/index.html.haml  
./vendor/extensions/chronicle/public/javascripts/admin/chronicle.js  
./vendor/extensions/chronicle/public/javascripts/admin/HelpBalloon.js  
./vendor/extensions/chronicle/app/helpers/admin/timeline\_helper.rb

Then I saw Will’s response. So, although I do like the chronicle  
extension, is the solution to remove it (at least for now, until it is  
updated)? And, if so, I can’t find documentation anywhere on how to do  
that. (I have removed extensions from redmine by just deleting their  
directories, but this is not best practice I’m sure.)

---

<div class="post-metadata">

**Author:** ![rosslaird](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rosslaird](https://www.ruby-forum.com/u/rosslaird)\
**Post date:** [December 2, 2010, 9:13am UTC](https://www.ruby-forum.com/t/image-404s/199960/8 "2010-12-02T09:13:44Z")

</div>

On 2 Dec 2010, at 00:25, rosslaird wrote:

> I have just started using Radiant (which is just great, by the way),  
> so apologies in advance for what may be a very simple question: the  
> server log shows various 404s to image files: button.png and new-  
> snippet.png are two examples. My setup is on locahost, for testing, so  
> the 404 refers to (for example) this url:  
> [http://localhost/images/admin/button.png](http://localhost/images/admin/button.png).

Both of those are files used by older versions of the admin interface.  
The most likely explanation is that one of your extensions is not up to  
date: being contemporary with an older version of radiant it is assuming  
the presence of files that don’t exist any more.

Radiant’s helper methods mean that the author probably didn’t need to  
spell out the image path, but something like this (in your radiant  
instance directory) should show you where it’s coming from:

grep -r ‘new-snippet’ .

I don’t get any matches from a normal radiant site except in old log  
files.

best,

will

---

<div class="post-metadata">

**Author:** ![rosslaird](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rosslaird](https://www.ruby-forum.com/u/rosslaird)\
**Post date:** [December 2, 2010, 3:12pm UTC](https://www.ruby-forum.com/t/image-404s/199960/9 "2010-12-02T15:12:15Z")

</div>

Oh wait, I found it:

> **[Uninstalling Extensions](https://github.com/radiant/radiant/wiki/Uninstalling-Extensions)**
>
> Radiant is a no-fluff, open source content management system designed for small teams. - radiant/radiant

A nice wiki page on how to uninstall extensions. Don’t know how I  
missed that.
