Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Multi-tenant Setup Upload logo issue #22930

Open
4 tasks done
islam56naser opened this issue Jan 13, 2025 · 0 comments
Open
4 tasks done

[Bug] Multi-tenant Setup Upload logo issue #22930

islam56naser opened this issue Jan 13, 2025 · 0 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member

Comments

@islam56naser
Copy link

What happened?

We have a multi-tenant setup following this guide and it's working as expected for multiple sites. The problem happens when we try to upload a logo for one site it's not saved inside the site folder (e.g. $matomoDir/misc/user/subdomain_a.mydomain.com) and it's saved in $matomoDir/misc/user instead. This doesn't allow tenants to have different logos as expected from the guide.

What should happen?

Each tenant should have its own logo saved in their site folder not in t

How can this be reproduced?

  1. Download example from official matomo docker repo.
  2. Set env variables for passwords
  3. Change the volume matomo:/var/www/html:z to ./matomo:/var/www/html:z (to easily create changes)
  4. Run docker compose up
  5. Create folder tenant1.com inside ./matomo/misc/user.
  6. Modify your host routing to point tenant1.com to localhost (for me in windows I had to add a record to the hosts file)
  7. Now visit tenant1.com and go through the normal setup process.
  8. Move ./matomo/config/config.php.ini to ./matomo/misc/user/tenant1.com/config.php.ini (Had to do this as file is always generated there instead of the right path)
  9. Make sure the site is still working correctly.
  10. Go to settings and try to change the logo.
  11. Check ./matomo/misc/user folder and you'll find the logo and logo-header files there.
  12. Try to move them manually to the correct path inside ./matomo/misc/user/tenant1.com
  13. Logo disappears and falls back to the default.

Matomo version

5.2.1

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

@islam56naser islam56naser added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member
Projects
None yet
Development

No branches or pull requests

1 participant