When you want to change your profile image and the installation is not connected to the internet, doesn't upload the image.
It would be nice if the gravatar is an option , otherwise not connected to the internet has image problems.
Hello @tomchavakis
Gravatar is actually an option, if the user uploads an image it should be working even if the instance isn't connected to the internet. Are your MEDIA settings for taiga-back correctly configured?, could you check the url Taiga is trying to use for your uploaded avatar?
Although that i have put the static ip at configuration files the image url is http://localhost:8000/media/user/ ........png
So that url is the problem, did you overwrite the MEDIA_URL setting?
i follow the installation using taiga-scripts , The nginx config has
location /media {
alias /home/..../taiga-back/media;
}
and the taiga-back local.py config has
MEDIA_URL = "/media/"
Regards
And what url are you using for accessing the web app?
I'm experiencing the same bug. Was there ever a resolution?
Hello @natejgardner what's exactly your situation?. Are you trying to use gravatar or uploading an image to the server doesn't show the correct url?
To clarify, after deploying taiga with the scripts, neither profile photos nor gravatars are found.
Could you show us an url of the avatar taiga is trying to show?
http://localhost:8000/media/user/4/5/e/d/[long hash here]/solarized.jpg
On Wed, Jan 25, 2017, 10:56 PM Alejandro notifications@github.com wrote:
Could you show us an url of the avatar taiga is trying to show?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/taigaio/taiga-front/issues/409#issuecomment-275319986,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIZ80bmfAnrfLlUAJUHfsXRhphBL-GPsks5rWEOkgaJpZM4Dx11B
.
And what url should be?, which one are you using to access Taiga?.
If you need http://localhost:8000 to be another thing you can update your MEDIA_URL and SITES["api"]["domain"] settings.
Hello, I'm also encountering this issue. I did install Taiga using scripts and all is working fine except the avatars. If I disable gravatar in the config.json, I can see the default profile images working.
When I try to upload and image, the url assigned is something like:
http://localhost:8000/user/b/7/4/0/96aa7bcf81dae1bfde968f95fde63e33bed50382c6b66dc2add5a73f5abc/download.png.80x80_q85_crop.png
My taiga-back settings in local.py:
MEDIA_URL = "[myIP]:8000/media/"
STATIC_URL = "/static/"
# This should change if you want generate urls in emails
# for external dns.
SITES["front"]["domain"] = "localhost:8000"
DEBUG = True
PUBLIC_REGISTER_ENABLED = True
DEFAULT_FROM_EMAIL = "[email protected]"
SERVER_EMAIL = DEFAULT_FROM_EMAIL
#EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
#EMAIL_USE_TLS = False
#EMAIL_HOST = "localhost"
#EMAIL_HOST_USER = ""
#EMAIL_HOST_PASSWORD = ""
#EMAIL_PORT = 25
where myIP contains the static IP address assigned to this server.
I also performed a circusctl reload taiga after editing the local.py settings.
Am I doing something wrong?
EDIT: i compiled again the configuration as follows and restarted with sudo service circusd restart (I'm on Ubuntu Server 16.04). It works now:
MEDIA_URL = "http://[myIP]:8000/media/"
STATIC_URL = "http://[myIP]:8000/static/"
# This should change if you want generate urls in emails
# for external dns.
SITES["front"]["domain"] = "[myIP]"
DEBUG = True
PUBLIC_REGISTER_ENABLED = True
DEFAULT_FROM_EMAIL = "[email protected]"
SERVER_EMAIL = DEFAULT_FROM_EMAIL
#EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
#EMAIL_USE_TLS = False
#EMAIL_HOST = "localhost"
#EMAIL_HOST_USER = ""
#EMAIL_HOST_PASSWORD = ""
#EMAIL_PORT = 25
Yes
MEDIA_URL = "[myIP]:8000/media/"
STATIC_URL = "/static/"
This two vars should be two urls, the first one should be the url when you are serving the media files
SITES["front"]["domain"] = "localhost:8000"
This should be the url of taiga-front
I made the above changes, but it's still trying to use localhost. I restarted circusd but it didn't solve this.
That's the solution, :-(
Try to clean the browser cache.
I did that, but no luck. Where is taiga-front located on the server? How do permissions get managed for that directory to expose them to the web? Is this in /var/www/?
In /home/taiga/taiga-front-dist/ ?
I had the same problem. Uploaded profile images not appearing. The image link points to "localhost:8000" and not to the server own IP (or domain name). I have installed Taiga using setup-server.sh script.
The solution was to change the file ~/taiga-back/settings/local.py according to these instructions: https://github.com/taigaio/taiga-front/issues/251#issuecomment-70216972
MEDIA_URL = "http://192.168.0.33:8000/media/"
STATIC_URL = "http://192.168.0.33:8000/static/"
ADMIN_MEDIA_PREFIX = "/static/admin/"
SITES["front"]["domain"] = "192.168.0.33:8000"
By the way, uploaded images are fine now, but gravatar images are not working yet.
Link of one gravatar image on Taiga running on my local server:
https://www.gravatar.com/avatar/64e1b8d34f425d19e1ee2ea7236d3028?d=http%3A%2F%2F192.168.0.33%3A8000%2Fv-1489511410824%2Fimages%2Fuser-avatars%2Fuser-avatar-02.png
This above link, when opened on a browser, redirects to this 404 error page:
http://i2.wp.com/192.168.0.120/v-1489511410824/images/user-avatars/user-avatar-02.png
404 Not Found
nginx
I have installed taiga instance on our environment which is not accessible from outside. After upgrading to 3.0 version am getting 404 error while trying to fetch default user avatar. It should get the default avatar from http://mydomainname/v-1522826679902/images/user-avatars/user-avatar-01.png instead of it is reaching out to i0.wp.com for user avatar.
http://i0.wp.com/mydomainname/v-1522826679902/images/user-avatars/user-avatar-01.png.
Is there any workaround so it will get default image from the local system instead of i0.wp.com. I have set gravatar parameter to false.
Hi,
Disabling gravatar in front end configuration file (conf.json) solves the issue for me.
Most helpful comment
By the way, uploaded images are fine now, but gravatar images are not working yet.
Link of one gravatar image on Taiga running on my local server:
https://www.gravatar.com/avatar/64e1b8d34f425d19e1ee2ea7236d3028?d=http%3A%2F%2F192.168.0.33%3A8000%2Fv-1489511410824%2Fimages%2Fuser-avatars%2Fuser-avatar-02.png
This above link, when opened on a browser, redirects to this 404 error page:
http://i2.wp.com/192.168.0.120/v-1489511410824/images/user-avatars/user-avatar-02.png
404 Not Found
nginx