# Error image uploaded from Local storage sources

**URL:** <https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009>\
**Category:** Themes\
**Created:** [March 4, 2019, 3:07am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009 "2019-03-04T03:07:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 4, 2019, 3:07am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/1 "2019-03-04T03:07:43Z")

</div>

Hi everyone,

I’ve used Casper. But, i found the error image src. This is my console report:  
 ![13%20AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/5/59af813bf5985c7ba04a7264c9f17bd47de3fc26.png)

Any idea to fix this problem?

FYI, i uploade the featured image from my local storage. Do not use Unsplash plugin. When i’m using image from Unsplash, everything its Ok. But, when i uploaded from local storage, the error will appear.

---

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 4, 2019, 3:08am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/2 "2019-03-04T03:08:17Z")

</div>

This is on my website display:

![51%20AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/f/f774796953b2b717fcfbd3b9268c8f699cc984d7.png)

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [March 4, 2019, 9:13am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/3 "2019-03-04T09:13:35Z")

</div>

Hi @Fathul! Which version of Ghost are you running and what exact configuration for storage are you using? From the log output above, it seems like there’s a stray `ng` postfix added to image extension everywhere. Can you also provide the full request path these 404s are coming from (you can find that info in the network tab);

---

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 4, 2019, 9:37am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/4 "2019-03-04T09:37:10Z")

</div>

> [@naz](#):
>
> postfix

Hi Gargol.

I’m using Ghost 2.0. I dont familiar about back-end script. Hope you can explain more.

This is my Network tab as you ask:

 ![31%20PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/5/58cee587e4a7b5edba0131b69da7da91319cbb09.png)

---

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 4, 2019, 9:37am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/5 "2019-03-04T09:37:46Z")

</div>

This is another image:

 ![06%20PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/6/64fa133ced7de4fa1654174eb8764f9a6fd228f1.png)

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [March 4, 2019, 10:02am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/6 "2019-03-04T10:02:25Z")

</div>

Thanks for more info@Fathul! Can you try updating to the latest version of Ghost [2.16.2](https://github.com/TryGhost/Ghost/releases/tag/2.16.2), as 2.0 is quite outdated? Let me know if the problem persists after that.  
How did you install this Ghost version, through CLI or manually from [source](https://docs.ghost.org/install/source/)? Did you do any modifications to configuration files regarding storage?

---

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 4, 2019, 11:00am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/7 "2019-03-04T11:00:36Z")

</div>

> [@naz](#):
>
> 2.16.2

Hi @naz. Thanks for your help. I was update the Ghost version to 2.16.2.

![48%20PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/3/397c5cadd0c6cddd268bde39fbd1286423b27102.png)

But the images still error. See next thread below…

---

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 4, 2019, 11:01am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/8 "2019-03-04T11:01:40Z")

</div>

This display when i running on [http://localhost:2368/](http://localhost:2368/). Everything looks good, right?

 ![45%20PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/1/1f4345d4fc0986ab57b68b553940f019b745080b.jpeg)

---

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 4, 2019, 11:03am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/9 "2019-03-04T11:03:49Z")

</div>

When i run on [http://localhost:9000/](http://localhost:9000/), the error will appear:

 ![24%20PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/8/880ae994551e0d7dde6bf46a3634c410dd4c6367.png)

I’ve using this blog to instal Ghost on my Macbook:

> **[Setup Ghost for GitHub Pages](https://stefanscherer.github.io/setup-ghost-for-github-pages/)**
>
> To build your own static GitHub Pages with Ghost, just follow these steps. Install Node.js Ghost is written in Node.js, so you will need the Node.js runtime. brew install node brew install wget Download and Install Ghost Check for the latest version...

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [March 5, 2019, 3:09am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/10 "2019-03-05T03:09:20Z")

</div>

Hey @Fathul 🙂 The blog you referred to is using `:2368` port and the Ghost instance is starting on this port as well, and everything seems to work as expected.

I suspect there’s an error on Buster’s side (because that’s what is served on `:9000`) which adds that **ng** postfix. Not familiar with Buster, so can’t really help much here 🤷‍♂️ The only thing that I clearly see that might go wrong is this `sed` command:

```auto
find static -name *.html -type f -exec sed -i '' 's#http://localhost:2368#https://stefanscherer.github.io#g' {} \;

```

Which replaces `http://localhost:2368` with your address, might have a mistake, and that’s why the links are broken in this generated html files.

---

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 5, 2019, 4:42pm UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/11 "2019-03-05T16:42:13Z")

</div>

It’s work @naz!! Thanks to remember me about bash. I copy and paste tis code below:

```
#!/bin/bash
buster generate --domain=http://127.0.0.1:2368
find static/* -name *.html -type f -exec sed -i '' 's#u=http://localhost:2368#u=https://stefanscherer.github.io#g' {} \;
find static/* -name *.html -type f -exec sed -i '' 's#url=http://localhost:2368#url=https://stefanscherer.github.io#g' {} \;
find static/* -name *.html -type f -exec sed -i '' 's#href="http://localhost:2368#href="https://stefanscherer.github.io#g' {} \;
find static/* -name *.html -type f -exec sed -i '' 's#src="http://localhost:2368#src="https://stefanscherer.github.io#g' {} \;
find static/* -name *.html -type f -exec sed -i '' 's#link>http://localhost:2368#link>https://stefanscherer.github.io#g' {} \;
buster deploy

```

And then, my Ghost blog back to party:

 ![44%20PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/3/3699f5e63df9a34ce915c753b5a06bcde9c1df84.jpeg)

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [March 6, 2019, 1:31am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/12 "2019-03-06T01:31:24Z")

</div>

Awesome 😄 glad everything is sorted now! Cheers!

---

<div class="post-metadata">

**Author:** ![naz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/naz/32/30666_2.png) [@naz](https://forum.ghost.org/u/naz)\
**Post date:** [March 6, 2019, 1:31am UTC](https://forum.ghost.org/t/error-image-uploaded-from-local-storage-sources/6009/13 "2019-03-06T01:31:36Z")

</div>

Closed on March 6, 2019, 1:31am UTC


