# Avatar png

**URL:** <https://forum.mautic.org/t/avatar-png/16423>\
**Category:** Product Support\
**Created:** [October 4, 2020, 8:39am UTC](https://forum.mautic.org/t/avatar-png/16423 "2020-10-04T08:39:10Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)\
**Post date:** [October 4, 2020, 8:39am UTC](https://forum.mautic.org/t/avatar-png/16423/1 "2020-10-04T08:39:10Z")

</div>

**Your software**  
CentOS 8.2  
Safari / Firefox latest builds  
mautic 3.1.1 from github  
php 7.3.22

**Your problem**  
The avatar image is again not showing up. If a gravatar can not be found, will the avatar.png be used from the assets folder? Apache has access to the assets folder. Since this broken image is showing up all over mautic, it doesn’t look good, I’m wondering again how to fix this?

Steps I have tried to fix the problem:

chown -R apache:apache /var/www/\*  
chown -R apache:apache /var/www/mautic/\*

chmod 0777 /images/avatar.png

Still it looks like this:

 ![Screenshot 2020-10-04 at 10.29.27](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b4126ffe71fb99acddf94c2220d82918a9851f56.png)

---

<div class="post-metadata">

**Author:** ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)\
**Post date:** [October 6, 2020, 11:46am UTC](https://forum.mautic.org/t/avatar-png/16423/2 "2020-10-06T11:46:02Z")

</div>

any ideas how i can fix this avatar bug?

the command `ps aux | grep apache2` returns:

`root 72982 0.0 0.1 11776 992 pts/1 S+ 13:43 0:00 grep --color=auto apache2`

the steps like described didn’t bring any changes:

```auto
find . -type f -not -perm 644 -exec chmod 644 {} +
find . -type d -not -perm 644 -exec chmod 755 {} +
chmod -R g+w var/cache/ var/logs/ app/config/
chmod -R g+w media/files/ media/images/ translations/
rm -rf var/cache/*

```

i also ran the command:

``sudo chown -R apache:apache` /var/www/mautic/*`

still, the avatar.png is not used, neither for the user nor the contacts. what else can i do?

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 6, 2020, 1:04pm UTC](https://forum.mautic.org/t/avatar-png/16423/3 "2020-10-06T13:04:56Z")

</div>

Maybe the image is corrupted somehow. Have you deleted it and replaced with another file ?

Have you opened dev tools on your browser and inspected that element specifically to see if that sheds any light?

---

<div class="post-metadata">

**Author:** ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)\
**Post date:** [October 6, 2020, 1:44pm UTC](https://forum.mautic.org/t/avatar-png/16423/4 "2020-10-06T13:44:41Z")

</div>

good point. The link seems to be broken to the standard avatar.png

`<span class="img-wrapper img-rounded" style="width:32px;"><img src="https://www.gravatar.com/avatar/5c47a76f4ce1d1694c0d17693b74ef5a?s=250&d=https%3A%2F%2Fmautic.mydomain.tld%2Fmedia%2Fimages%2Favatar.png`

when i click on it in the sourcecode link i get redirected to:

view-source:[https://i2.wp.com/mautic.mydomain.tld/media/images/avatar.png?ssl=1](https://i2.wp.com/mautic.mydomain.tld/media/images/avatar.png?ssl=1)

with the error message:

> Sorry, the parameters you provided were not valid

Cutting away the “[i2.wp.com](http://i2.wp.com)” shows me the avatar. so where is this “[i2.wp.com](http://i2.wp.com)” coming from?

Avatar:

 ![Screenshot 2020-10-06 at 15.43.09](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/64c23bb834d4ffd6b3f3f84b3d004eaca0c31cb9.jpeg)

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 6, 2020, 1:53pm UTC](https://forum.mautic.org/t/avatar-png/16423/5 "2020-10-06T13:53:39Z")

</div>

The “avatar” being displayed is a Gravatar placeholder. If there is a Gravatar associated with the email address of a contact it displays by default. You can select what you want displayed by clicking edit on the contact.

 ![Screenshot (26)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/fa9091b3f4629c6057e6eec8ac9487e53f91e2c0.png)

There may be a way to change that in the code but it would take some exploring.

---

<div class="post-metadata">

**Author:** ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)\
**Post date:** [October 6, 2020, 2:15pm UTC](https://forum.mautic.org/t/avatar-png/16423/6 "2020-10-06T14:15:40Z")

</div>

in the case of a contact you can choose or set another image. in the case of the owner / user there is no way to change this. i dont have a gravatar acc. for the user.

i also used my gmail address for one test account and it stills shows the broken missing asset image in the contact.

it’s just weird, that the standard avatar is not showing up, instead a broken / missing asset is used in the code.

maybe i will drop the database and start from scratch.

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 6, 2020, 3:37pm UTC](https://forum.mautic.org/t/avatar-png/16423/7 "2020-10-06T15:37:36Z")

</div>

are you running any ad blockers or similar extensions in the browser you are using? Maybe the resource is getting blocked by an extension.

 ![Screenshot (27)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/960b64fe84a29fd521a5c9178c3f2b9ea32b536c.png)

add [info@monkeybeetees.com](mailto:info@monkeybeetees.com) as a contact and see if their gravatar pops up

last idea is to check permissions on your media folder

---

<div class="post-metadata">

**Author:** ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)\
**Post date:** [October 7, 2020, 6:40am UTC](https://forum.mautic.org/t/avatar-png/16423/8 "2020-10-07T06:40:54Z")

</div>

The monkeybeetees gravatar is showing up (great one btw).

 ![Screenshot 2020-10-07 at 08.32.09](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cdbfc20efe2e4d47ff7a825168e6b1fcc3f3c5d0.png)

The strange thing is, the mautic avatar is showing up, when i click in mautic on create new user. As soon as is fill in a non existing email address and click save the standard mautic avatar gone and no placeholder is used anymore.

Creating the contact: (AVATAR SHOWING UP)

 ![Screenshot 2020-10-07 at 08.31.25](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cfe8cdeaa780eecbda6039695d69531ca91685b2.png)

Saving the contact without any email address AVATAR STILL VISIBLE

 ![Screenshot 2020-10-07 at 08.38.49](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/901b1e080d7fa00e93ae919b126ab9da44b1204f.png)

Filling in an email address (AVATAR IS GONE AND NO PLACEHOLDER INSTEAD)

 ![Screenshot 2020-10-07 at 08.39.05](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/fc68a09b1085c3b5848b8f86d32a58614f8ef086.png)

---

<div class="post-metadata">

**Author:** ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)\
**Post date:** [October 7, 2020, 6:50am UTC](https://forum.mautic.org/t/avatar-png/16423/9 "2020-10-07T06:50:02Z")

</div>

ohh, I think it’s a firewall thing, port 80/443 needs to be open. It was restricted before to only my IP. Thanks for your time and input EJL 🙂

So the ip from [wp.com](http://wp.com) **192.0.78.24** must have access to port 80/443 and all is good.

---

<div class="post-metadata">

**Author:** ![frankofno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/frankofno/32/3455_2.png) [@frankofno](https://forum.mautic.org/u/frankofno)\
**Post date:** [October 7, 2020, 11:23am UTC](https://forum.mautic.org/t/avatar-png/16423/10 "2020-10-07T11:23:08Z")

</div>

Can this become a legal / GDPR issue? Since all email addresses are sent to [wp.com](http://wp.com) to check for an gravatar, the personal data is sent to US servers. Allthough you might think, all data is processed on your own server it’s not true in this case.

Wouldn’t it be better to make this gravatar thing optional? Otherwise the avatar from the mautic asset folder is used.

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 7, 2020, 1:51pm UTC](https://forum.mautic.org/t/avatar-png/16423/11 "2020-10-07T13:51:12Z")

</div>

Excellent job catching the firewall issue. I wasn’t expecting that.

> [@frankofno](#):
>
> Can this become a legal / GDPR issue? Since all email addresses are sent to [wp.com](http://wp.com) to check for an gravatar, the personal data is sent to US servers. Allthough you might think, all data is processed on your own server it’s not true in this case.
> 
> Wouldn’t it be better to make this gravatar thing optional? Otherwise the avatar from the mautic asset folder is used.

I completely agree. It seems mundane and probably covered under someone’s terms and conditions that makes the queries to [WP.com](http://WP.com) permissible but it seems to make more sense all the way around to default to a local image and the gravatar as optional.

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 8, 2020, 4:54pm UTC](https://forum.mautic.org/t/avatar-png/16423/12 "2020-10-08T16:54:04Z")

</div>

@frankofno check out  
app/bundles/CoreBundle/Templating/Helper/GravatarHelper.php  
app/bundles/LeadBundle/Templating/Helper/AvatarHelper.php

---

<div class="post-metadata">

**Author:** ![coachieving](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/coachieving/32/5139_2.png) [@coachieving](https://forum.mautic.org/u/coachieving)\
**Post date:** [October 28, 2021, 1:22pm UTC](https://forum.mautic.org/t/avatar-png/16423/13 "2021-10-28T13:22:53Z")

</div>

Fwiw: I also had a problem with the avatar picture not being loaded somehow, as it was pointing to [https://i0.wp.com/my.mauticinstall.tld/index.php/media/images/avatar.png?ssl=1](https://i0.wp.com/my.mauticinstall.tld/index.php/media/images/avatar.png?ssl=1) and the ports 80 & 443 were open to IP of [wp.com](http://wp.com). When removing the “index.php” from the URL, the avatar was loading.

So thanks to the help in this post I figured out that in the /app/config/local.php file my site\_url was [https://my.mauticinstall.tld/index.php](https://my.mauticinstall.tld/index.php) after removing the index.php it worked. Hope this may help future someone 🙂

---

<div class="post-metadata">

**Author:** ![okagoogle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/okagoogle/32/12661_2.png) [@okagoogle](https://forum.mautic.org/u/okagoogle)\
**Post date:** [May 3, 2024, 3:33am UTC](https://forum.mautic.org/t/avatar-png/16423/14 "2024-05-03T03:33:42Z")

</div>

> [@coachieving](#):
>
> So thanks to the help in this post I figured out that in the /app/config/local.php file my site\_url was [https://my.mauticinstall.tld/index.php](https://my.mauticinstall.tld/index.php) after removing the index.php it worked. Hope this may help future someone 🙂

Thanks it worked for me as well 😄

---

<div class="post-metadata">

**Author:** ![cespimpress](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cespimpress/32/5777_2.png) [@cespimpress](https://forum.mautic.org/u/cespimpress)\
**Post date:** [May 3, 2024, 4:10am UTC](https://forum.mautic.org/t/avatar-png/16423/15 "2024-05-03T04:10:40Z")

</div>

I am attaching a small pdf tutorial, How to solve a problem with the profile avatar in Mautic, share it in the community of other forums to help more people.

> **[steps-for-avatar-mautic.pdf](https://cesp.link/steps-for-avatar-mautic.pdf)**
>
> 165.31 KB
