Content
Incorrect URL for Local Avatar
Added by Mike Lewis almost 9 years ago
Not sure if this is related to
Using OP 5.0.13. I’ve set the default for all users to use Gravatar MonsterIDs if they don’t have their own Gravatar. One of our users decided to upload his own user avatar to OP without signing up for Gravatar.
In the attached example, on the left side of the work package screen you can see that user Leo Correa has a custom avatar, but on the right side (the work package activity) you see broken links.
Upon investigation, the image source addresses to localhost
, which you can’t do if you are using the system from another computer. (Unless, of course, you happen to be running a local web server with the appropriate file structure to provide the image…. :-P )This would work only if using OP on the host machine itself.
I have configured my host name in the General System Setting to be the actual IP address of the host that OpenProject is operating on. It would seem that the avatar image references for work package activity are not using the value in this setting. (Which is why it works on the left side and not the right side.)
Replies (4)
Hi Mike,
thanks for the report, it is most likely a different issue.
I’ve created a second bug to track its progress
Best,
Oliver
Hey Mike,
what is the setting for
hostname
in your System settings? On my local machine, the local avatar URL is tied to that value.With that value correctly set, I can’t reproduce the error.
Best,
Oliver
Oliver,
Host name is set to the IP address of the machine, and was when I saw the problem. I cleared my browser cache and it appears to be working now. I do remember I had to go to System Settings to reset the host name from “localhost” to the machine’s IP address after one of the OP upgrades, but I would have thought that existing system settings would have been left untouched during an upgrade. Undoubtedly some mistake on my part that I don’t now remember.
Thanks for double checking.
- Mike
Hey Mike,
thanks for the thorough update. If you’re on a packaged installation, the hostname is set on each upgrade (rather, everytime you run
openproject configure
) to the value set during the wizard.You can view that setting in
/etc/openproject/installer.dat
(it’s theserver/hostname
value).To change the value, either
1. run
openproject reconfigure
to reopen the installer (simply confirm all other values withreturn
to use the values stored in the installer.dat)2. Modify
/etc/openproject/installer.dat
directly.Best,
Oliver