# Images not displaying in storefront

**URL:** <https://forum.shopware.com/t/images-not-displaying-in-storefront/88554>\
**Category:** Programming (EN)\
**Created:** [23. Juni 2021 um 12:11 UTC](https://forum.shopware.com/t/images-not-displaying-in-storefront/88554 "2021-06-23T12:11:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [23. Juni 2021 um 12:11 UTC](https://forum.shopware.com/t/images-not-displaying-in-storefront/88554/1 "2021-06-23T12:11:27Z")

</div>

I have created a plugin that displays images from a folder in the storefront in the footer. I used the following tutorial for guidance:

> **[Using assets](https://developer.shopware.com/docs/guides/plugins/plugins/administration/using-assets)**

However, my storefront is not showing those images.  
In my task, I created a random function that picks out one image randomly from the directory. The directory and the function can be seen here:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/f/f9f2c897051d8b273ff4e5ad45cd26a2fe66c361.png)  
However, this ends up giving an error:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/4/421ee3684af2e628962d4c5b50ba548a38a1cc89.png)  
I suspect that the array is empty because it can not brows through the directory.  
Kindly help me with this.
