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

Error about getenv function #19173

Closed
loukasstoltz opened this issue May 4, 2022 · 3 comments
Closed

Error about getenv function #19173

loukasstoltz opened this issue May 4, 2022 · 3 comments
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@loukasstoltz
Copy link

Expected Behavior

Try to connect to my matomo instance and get
Fatal error: Uncaught Error: Call to undefined function Piwik\Plugin\getenv() in analytics.serveur.digital/core/Plugin/Manager.php:345 Stack trace: #15849
analytics.serveur.digital/core/bootstrap.php(48): Piwik\Plugin\Manager::initPluginDirectories() #1 analytics.serveur.digital/index.php(19): require_once('...') #2 {main} thrown in
analytics.serveur.digital/core/Plugin/Manager.php on line 345

Current Behavior

Just update to latest version

Possible Solution

I have try to reinstall with command line,
I have try to reinstall by downloading zip script
I have fix permission

Steps to Reproduce (for Bugs)

  1. Installation
  2. go to the URL

Context

I can't go to my analytics

https://analytics.serveur.digital/

Your Environment

  • Matomo Version: Latest
  • PHP Version: 8.1
  • Server Operating System: Ubuntu
  • Additionally installed plugins:No
  • Browser: Google Chrome
  • Operating System: iOs
@loukasstoltz loukasstoltz added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label May 4, 2022
@sgiehl
Copy link
Member

sgiehl commented May 5, 2022

Hm.... getenv() is actually a php functions and no method in that namespace. Normally PHP should automatically use the php function if it is not defined in the namespace (when being used unqualified).
Was Matomo working before on that server or weren't you able to install it? Just wondering if anything changed on your server or within Matomo.

@loukasstoltz
Copy link
Author

loukasstoltz commented May 5, 2022 via email

@sgiehl
Copy link
Member

sgiehl commented May 5, 2022

Ok. I'll close this issue for now, as I'm not able to reproduce that. If you decide to update PHP later and run into the same problem, feel free to reopen/create an issue. Thanks.

@sgiehl sgiehl closed this as completed May 5, 2022
@sgiehl sgiehl added worksforme The issue cannot be reproduced and things work as intended. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants