question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please copy/symlink the 'missing image' image

See original GitHub issue

when I try to deploy an Oscar-based site to Heroku, I get this error:

Please copy/symlink the 'missing image' image at /app/slstore/slstore/public/media/image_not_found.jpg into your MEDIA_ROOT at /app/slstore/slstore/public/media. This exception was raised because Oscar was unable to symlink it for you.

I would think that running the collectstatic command would create the public and media dirs and put this file in the media dir. Is that not the case?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

16reactions
rayrrrcommented, Nov 7, 2014

I just had this same problem with S3 (using Oscar 0.7) and was able to resolve it by placing the following in my settings.py (having properly set my MEDIA_URL for S3 and manually uploaded the missing image placeholder there):

OSCAR_MISSING_IMAGE_URL = MEDIA_URL + ‘image_not_found.jpg’

0reactions
Dihfahsih1commented, Apr 8, 2021

@rayrrr your answer was on absolute help to fixing that bug in my code. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django-Oscar Images Error - python - Stack Overflow
I am using Django-Oscar in Mac (mavericks). and everything looks fine but, it doesnt show any image that are correctly uploaded. in the...
Read more >
"Please copy/symlink the 'missing image'..." exception when ...
"Please copy/symlink the 'missing image'..." exception when MEDIA_ROOT folders are not created.
Read more >
Storage link not loading image after symlink - Laracasts
Hello Team,. I have run the command - php artisan storage:link. Then it created a folder in /project/public/ with the name /storage/custom_folder/images.jpg.
Read more >
symlink files | HostGator Support
So, it's like having a copy of the file in more than one folder, when actually ... ln -s /home/user/public_html/attachments/Image/_vti_cnf /home/user/vti.
Read more >
azcopy copy | Microsoft Learn
Upload a single file by using OAuth authentication. If you haven't yet logged into AzCopy, please run the azcopy login command before you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found