✓ Solved

Images in the website

Hi Linode folks!!!!!!

My project is deployed, gunicorn and nginx seems to work fine but unfortunately my images are not showing off.

In the admin dashboard, when I clic an image link,here is the message poping up in the screem:

Not Found
The requested resource was not found on this server.

Do I have any trouble with my staticfiles settings ?
Thants for your help

4 Replies

✓ Best Answer

hi Acanton77, sorry for that. Here is the url http://www.wakawaka-afrobar.com/

I think I have solved the first question. Not now the main page is Server Error (500) but I can see others pages like this :http://www.wakawaka-afrobar.com/gallery/

Thanks for your help

What is the URL?

[editorial]
How do people expect us to help them on a site when they don't give us the site URL?
[/editorial]

Since you are not running a CMS like WordPress, there is either something in your home page that is causing the error… perhaps some link in the header.

Try this search and I'm sure one of the sites will help you find the 500 error:

https://www.google.com/search?client=safari&rls=en&q=500+server+error+on+home+page+but+not+others&ie=UTF-8&oe=UTF-8

Most often a 500 error is from:

A Permissions Error: In most cases, a 500 Internal Server Error is due to an incorrect permission on one or more files or folders. In most of those cases, an incorrect permission on a PHP and CGI script is to blame. These should usually be set at 0755 (-rwxr-xr-x).

A PHP Timeout: If your script connects to external resources and those resources timeout, an HTTP 500 error can occur. Timeout rules, or better error handling in your script, should help if this is the cause of the 500 error.

A Coding Error in .htaccess: While not as common, be sure to check that your site's .htaccess file is properly structured.

I'm seeing lots of error using the Inspector tool on the browser:

instafeed.min.js:2 Uncaught Error: Missing clientId or accessToken.
at e.run (instafeed.min.js:2:611)
at script.js:192:14
at script.js:195:3
e.run @ instafeed.min.js:2
(anonymous) @ script.js:192
(anonymous) @ script.js:195
DevTools failed to load source map: Could not load content for http://www.wakawaka-afrobar.com/static/plugins/aos/aos.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
www.wakawaka-afrobar.com/:357 GET http://www.wakawaka-afrobar.com/media/images/p-1_wuyWBZU.jpg 404 (Not Found)
www.wakawaka-afrobar.com/:368 GET http://www.wakawaka-afrobar.com/media/images/p-3_yMzhVVf.jpg 404 (Not Found)
DevTools failed to load source map: Could not load content for http://www.wakawaka-afrobar.com/static/plugins/bootstrap/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://www.wakawaka-afrobar.com/static/plugins/bootstrap/bootstrap.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://www.wakawaka-afrobar.com/static/plugins/aos/aos.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://www.wakawaka-afrobar.com/static/plugins/swiper/swiper.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

You need to look at your your header links or your .htaccess file if using one.

Also, the site is not secure with SSL so that could also result in an error, but I rather doubt it.

Hi acanton77, Thanks for your help. I have tried to fix static files in settings but iam still having the same trouble.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct