YunoHost-Apps / matomo_ynh

Matomo package for YunoHost
https://matomo.org/
GNU General Public License v3.0
18 stars 6 forks source link

Changing domain returns error #114

Open gcollin opened 10 months ago

gcollin commented 10 months ago

How to post a meaningful bug report

  1. Read this whole template first.
  2. Determine if you are on the right place:
    • If you were performing an action on the app from the webadmin or the CLI (install, update, backup, restore, change_url...), you are on the right place!
    • Otherwise, the issue may be due to the app itself. Refer to its documentation or repository for help.
    • When in doubt, post here and we will figure it out together.
  3. Delete the italic comments as you write over them below, and remove this guide.

Describe the bug

Matomo version : 5.0.0~ynh2

Using the yunohost webadmin interface, I've changed the url from 'old-domain.net'/matomo to 'new-domain.net'/matomo The script run and worked well. Now when I'm accessing matomo with https://new-domain.net/matomo I get the following error: image

It seems that the url change script is not updating the php config file to declare the new host name. Setting the new domain in the file /var/www/matomo/config/config.ini.php solves the issue.

Context

Steps to reproduce

Expected behavior

The config file of matomo is updated to reflect the new domain name.

Logs

Logs of the url change script: https://paste.yunohost.org/raw/lejipijolo

CodeShakingSheep commented 7 months ago

I had the same issue when changing the URL. I just made a PR to fix it https://github.com/YunoHost-Apps/matomo_ynh/pull/119 .