# Mautic 4.4.4 images are not displayed in landing page and email

**URL:** <https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [November 6, 2022, 6:32pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974 "2022-11-06T18:32:55Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent.fr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vincent.fr/32/6600_2.png) [@vincent.fr](https://forum.mautic.org/u/vincent.fr)\
**Post date:** [November 6, 2022, 6:32pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/1 "2022-11-06T18:32:55Z")

</div>

**Your software**  
My Mautic version is: 4.4.4, fresh install from zip file.  
My PHP version is: 7.4.30  
My Database type and version is: mysql Ver 15.1 Distrib 10.5.15-MariaDB, for debian-linux-gnu (x86\_64)  
Web sever: nginx 1.18.0

**Your problem**  
My problem is: when creating landing page or email from existing themes delivered in the installation, the **images do not show up**. When uploading images, one sees their names, but no preview is available. And all the images are not displayed in the page. I have not yet managed to upload a theme made by myself to see if the problem is the same.

 ![image_grapesjs](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0e3017716fb6c8d589bed09a5c6af1735d253019.png)

These errors are showing in the log: No error recorded.

Steps I have tried to fix the problem: 1. restart server 2. try different themes.

Any suggestion is really appreciated.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [November 7, 2022, 4:32pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/2 "2022-11-07T16:32:55Z")

</div>

Are there any errors in the browser console when you open image manager?

---

<div class="post-metadata">

**Author:** ![vincent.fr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vincent.fr/32/6600_2.png) [@vincent.fr](https://forum.mautic.org/u/vincent.fr)\
**Post date:** [November 7, 2022, 5:11pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/3 "2022-11-07T17:11:49Z")

</div>

when opening the window in my first post (by double clicking on an image), there is no error message in the browser. I checked the .php file in mautic\_directory/var/log/ as well and saw no error message neither.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 7, 2022, 6:35pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/4 "2022-11-07T18:35:23Z")

</div>

Could you check weather these files belong to the right user on the server?

---

<div class="post-metadata">

**Author:** ![vincent.fr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vincent.fr/32/6600_2.png) [@vincent.fr](https://forum.mautic.org/u/vincent.fr)\
**Post date:** [November 7, 2022, 7:26pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/5 "2022-11-07T19:26:25Z")

</div>

I guess this is what you meant. Frankly speaking, now I realize this may be where to look at.

```auto
ls -l themes/
total 104
drwxr-xr-x 4 www-data www-data 4096 Oct 25 10:06 Mauve
drwxr-xr-x 4 www-data www-data 4096 Oct 25 10:06 aurora
drwxr-xr-x 3 www-data www-data 4096 Oct 25 10:06 blank
-rw-r--r-- 1 www-data www-data 5086 Oct 25 09:01 blank-big.png
-rw-r--r-- 1 www-data www-data 4035 Oct 25 09:01 blank.png
drwxr-xr-x 4 www-data www-data 4096 Oct 25 10:06 brienz
drwxr-xr-x 4 www-data www-data 4096 Oct 25 10:06 cards
drwxr-xr-x 4 www-data www-data 4096 Oct 25 10:06 coffee
drwxr-xr-x 3 www-data www-data 4096 Oct 25 10:06 confirmme
drwxr-xr-x 6 www-data www-data 4096 Oct 25 10:06 fresh-center
drwxr-xr-x 6 www-data www-data 4096 Oct 25 10:06 fresh-fixed
drwxr-xr-x 6 www-data www-data 4096 Oct 25 10:06 fresh-left
drwxr-xr-x 6 www-data www-data 4096 Oct 25 10:06 fresh-wide
drwxr-xr-x 3 www-data www-data 4096 Oct 25 10:06 goldstar
drwxr-xr-x 4 www-data www-data 4096 Nov 6 09:51 hello
drwxr-xr-x 5 www-data www-data 4096 Nov 5 07:21 myneo
drwxr-xr-x 5 www-data www-data 4096 Oct 25 10:06 nature
drwxr-xr-x 5 www-data www-data 4096 Oct 25 10:06 neopolitan
drwxr-xr-x 5 www-data www-data 4096 Oct 25 10:06 oxygen
drwxr-xr-x 4 www-data www-data 4096 Oct 25 10:06 paprika
drwxr-xr-x 5 www-data www-data 4096 Oct 25 10:06 skyline
drwxr-xr-x 4 www-data www-data 4096 Oct 25 10:06 sparse
drwxr-xr-x 5 www-data www-data 4096 Oct 25 10:06 sunday
drwxr-xr-x 3 www-data www-data 4096 Oct 25 10:06 trulypersonal
drwxr-xr-x 4 www-data www-data 4096 Oct 25 10:06 vibrant

```

I followed this [guide](https://docs.mautic.org/en/troubleshooting/file-ownership-and-permissions)

```auto
sudo find . -type f -not -perm 644 -exec chmod 644 {} +

sudo find . -type d -not -perm 755 -exec chmod 755 {} +

sudo chmod -R g+w var/cache/ var/logs/ app/config/

sudo chmod -R g+w media/files/ media/images/ translations/

sudo rm -rf var/cache/*

sudo chown -R www-data:www-data /my/path/to/mautic

```

---

<div class="post-metadata">

**Author:** ![vincent.fr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vincent.fr/32/6600_2.png) [@vincent.fr](https://forum.mautic.org/u/vincent.fr)\
**Post date:** [November 9, 2022, 11:00pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/6 "2022-11-09T23:00:48Z")

</div>

I tried to install Mautic again (once with 4.4.4, once with 4.4.3) using the same procedure above. I realize that since the beginning of the installation, the images are already missing. It seems the logos are not displayed. However, when checking System Info \> Files and folder permissions, all seem ok.

I am still search for a solution. Thank you for your help.

![image_install](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3803e9550f24bd653784f833ff04dc48aebeaa4d.png)

 ![image_install2](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0bce036ea55f7aec1fa5b88a28f653e74f0e4f0d.png)

 ![write_rights](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c446470e798853ab2848c5a0a5e199c1fcb58d0c.png)

---

<div class="post-metadata">

**Author:** ![johnwick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/johnwick/32/3279_2.png) [@johnwick](https://forum.mautic.org/u/johnwick)\
**Post date:** [November 9, 2022, 11:05pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/7 "2022-11-09T23:05:25Z")

</div>

Yes, the media folder is missing all the images. If you unzip the Mautic folder on the desktop they are there, just copy them over to the /media folder.

---

<div class="post-metadata">

**Author:** ![vincent.fr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vincent.fr/32/6600_2.png) [@vincent.fr](https://forum.mautic.org/u/vincent.fr)\
**Post date:** [November 9, 2022, 11:12pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/8 "2022-11-09T23:12:55Z")

</div>

> [@johnwick](#):
>
> ing all the images. If you unzip the Mautic folder on the desktop they are there, just copy them over to the /media folder.

Thank you. But I think the images are already there. I compared them with the files unzipped on the desktop. They are the same (except the owner and group)

```auto
ls -l media/images/
total 152
-rw-rw-r-- 1 www-data www-data 37373 Sep 27 08:58 apple-touch-icon.png
-rw-rw-r-- 1 www-data www-data 15995 Sep 27 08:58 avatar.png
-rw-rw-r-- 1 www-data www-data 1091 Sep 27 08:58 btn_Facebook.png
-rw-rw-r-- 1 www-data www-data 820 Sep 27 08:58 btn_GooglePlus.png
-rw-rw-r-- 1 www-data www-data 1406 Sep 27 08:58 btn_LinkedIn.png
-rw-rw-r-- 1 www-data www-data 1137 Sep 27 08:58 btn_Twitter.png
-rw-rw-r-- 1 www-data www-data 12862 Sep 27 08:58 favicon.ico
drwxrwxr-x 2 www-data www-data 12288 Sep 27 08:58 flags
-rw-rw-r-- 1 www-data www-data 24341 Sep 27 08:58 mautic_logo_db200.png
-rw-rw-r-- 1 www-data www-data 5691 Sep 27 08:58 mautic_logo_db64.png
-rw-rw-r-- 1 www-data www-data 15086 Sep 27 08:58 mautic_logo_lb200.png
drwxrwxr-x 2 www-data www-data 4096 Sep 27 08:58 mejs

```

The files unzipped on the desktop.

```auto
~/4.4.3/media$ ls -l images/
total 152
-rw-r--r-- 1 root root 37373 Sep 27 08:58 apple-touch-icon.png
-rw-r--r-- 1 root root 15995 Sep 27 08:58 avatar.png
-rw-r--r-- 1 root root 1091 Sep 27 08:58 btn_Facebook.png
-rw-r--r-- 1 root root 820 Sep 27 08:58 btn_GooglePlus.png
-rw-r--r-- 1 root root 1406 Sep 27 08:58 btn_LinkedIn.png
-rw-r--r-- 1 root root 1137 Sep 27 08:58 btn_Twitter.png
-rw-r--r-- 1 root root 12862 Sep 27 08:58 favicon.ico
drwxr-xr-x 2 root root 12288 Sep 27 08:58 flags
-rw-r--r-- 1 root root 24341 Sep 27 08:58 mautic_logo_db200.png
-rw-r--r-- 1 root root 5691 Sep 27 08:58 mautic_logo_db64.png
-rw-r--r-- 1 root root 15086 Sep 27 08:58 mautic_logo_lb200.png
drwxr-xr-x 2 root root 4096 Sep 27 08:58 mejs

```

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 10, 2022, 7:17am UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/9 "2022-11-10T07:17:46Z")

</div>

Hi,  
Any wordpress plugin blobking things on the same server? Wordfence for example?  
Do you have SSL installed?  
What happens if you try to load the source of the missing pucture?  
Right click + copy img url, then paste it in your browser - appears?

---

<div class="post-metadata">

**Author:** ![vincent.fr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vincent.fr/32/6600_2.png) [@vincent.fr](https://forum.mautic.org/u/vincent.fr)\
**Post date:** [November 10, 2022, 5:06pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/10 "2022-11-10T17:06:00Z")

</div>

It is a virtual machine. Nothing else is installed alongside Mautic (no wordpress). SSL certificate is used.

The image url pasted in the web browser leads to Not Found error. However, it seem to me the image file is in the directory media/images (last row in the output below).

```auto
https://my_domain.com/index.php/media/images/crofts-white.png

```

 ![image_url](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b8ba195d1f4161376ac7fc6393823167c5ef9161.png)

```auto
ls -l media/images/
total 392
-rw-rw-r-- 1 www-data www-data 37373 Oct 25 09:01 apple-touch-icon.png
-rw-rw-r-- 1 www-data www-data 15995 Oct 25 09:01 avatar.png
-rw-r--r-- 1 www-data www-data 99886 Nov 6 12:57 brienz.jpeg
-rw-rw-r-- 1 www-data www-data 1091 Oct 25 09:01 btn_Facebook.png
-rw-rw-r-- 1 www-data www-data 820 Oct 25 09:01 btn_GooglePlus.png
-rw-rw-r-- 1 www-data www-data 1406 Oct 25 09:01 btn_LinkedIn.png
-rw-rw-r-- 1 www-data www-data 1137 Oct 25 09:01 btn_Twitter.png
-rw-r--r-- 1 www-data www-data 21543 Nov 5 14:25 crofts-white.png

```

---

<div class="post-metadata">

**Author:** ![vincent.fr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vincent.fr/32/6600_2.png) [@vincent.fr](https://forum.mautic.org/u/vincent.fr)\
**Post date:** [November 10, 2022, 5:52pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/11 "2022-11-10T17:52:58Z")

</div>

I found it.

The image url is wrong

```auto
https://my_domain.com/index.php/media/images/crofts-white.png

```

It must be **without the index.php**

```auto
https://my_domain.com/media/images/crofts-white.png

```

Is it a bug or it is due to my specific configuration? It seems that no one else has this problem apart from me, which means my installation is the problem 😃 ?

The next question is: how can one solve this problem?

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [November 10, 2022, 5:58pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/12 "2022-11-10T17:58:02Z")

</div>

Check your paths in your local config file

/app/config/local.php

Open in txt editor, it’s pretty self explanatory from there

---

<div class="post-metadata">

**Author:** ![vincent.fr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vincent.fr/32/6600_2.png) [@vincent.fr](https://forum.mautic.org/u/vincent.fr)\
**Post date:** [November 10, 2022, 6:08pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/13 "2022-11-10T18:08:35Z")

</div>

@techbill thank you. I don’t know how my installation ended up like this in the **app/config/local.php** file:

```auto
'site_url' => 'https://mydomain.com/index.php',

```

I changed it to

```auto
'site_url' => 'https://mydomain.com',

```

The problem is solved.

I learnt about the local.php this way.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [November 10, 2022, 6:14pm UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/14 "2022-11-10T18:14:46Z")

</div>

Glad you got it sorted!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [November 12, 2022, 6:15am UTC](https://forum.mautic.org/t/mautic-4-4-4-images-are-not-displayed-in-landing-page-and-email/25974/15 "2022-11-12T06:15:18Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
