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

WARNING Undefined index: host - Matomo 4.5.0 #18338

Closed
lrrrs opened this issue Nov 17, 2021 · 2 comments · Fixed by #18340
Closed

WARNING Undefined index: host - Matomo 4.5.0 #18338

lrrrs opened this issue Nov 17, 2021 · 2 comments · Fixed by #18340
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@lrrrs
Copy link

lrrrs commented Nov 17, 2021

Expected Behavior

I get no warning 😆

Current Behavior

WARNING [2021-11-16 07:30:20] 29776 ...core/Http.php(229): Notice - Undefined index: host - Matomo 4.5.0

Steps to Reproduce (for Bugs)

This warning only occures sometimes when running console core:archive directly after this log: Will invalidate archived reports for yesterday in site ID = 1's timezone (2021-11-16 00:00:00).

It seems like this only occurs, when the script is run via a crontab. When I run it in the terminal, I never noticed the issue. Maybe this could be a clue to identify the root cause. I'll try to dig deeper…

Context

Your Environment

  • Matomo Version: 4.5.0
  • PHP Version: 7.4
  • Server Operating System: Debian
  • Additionally installed plugins: -
@lrrrs lrrrs added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Nov 17, 2021
@sgiehl
Copy link
Member

sgiehl commented Nov 17, 2021

Thanks for the report. I'll prepare a fix for that.

@sgiehl sgiehl added Bug For errors / faults / flaws / inconsistencies etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Nov 17, 2021
@sgiehl sgiehl added this to the 4.7.0 milestone Nov 17, 2021
@sgiehl sgiehl mentioned this issue Nov 17, 2021
11 tasks
@sgiehl sgiehl self-assigned this Nov 17, 2021
@lrrrs
Copy link
Author

lrrrs commented Nov 17, 2021

Many many thanks 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants