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 when attempting fresh install #13014

Closed
Joseph310 opened this issue May 30, 2018 · 4 comments
Closed

Error when attempting fresh install #13014

Joseph310 opened this issue May 30, 2018 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@Joseph310
Copy link

Hello,

I am trying to install Matomo in a system. I downloaded the newest version from the website and copied it onto the server. Then I open the /analytics subfolder in a browser - just like always, but now I get the following error:

Matomo encoutered an error: An exception has been thrown during the rendering of a template (".submit is undefined: failed at .submit; line: 1699"). (which lead to: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO))

The server is running nothing special with the php version 5.6.35.

What could be the problem?

Thanks

  • Joseph

PS: there is also a typo in the error message: "encouNtered"...

@Findus23
Copy link
Member

Thanks for mentioning the type. Seems like it has been there for quite a while:

$message = sprintf("Matomo encoutered an error: %s (which lead to: %s)", $lastError['message'], $e->getMessage());

You issue isn't related to Matomo. Your SQL server tells you that the Username/Password is incorrect.

Access denied for user ''@'localhost'

You can edit it in the config/config.ini.php or delete it if you want to start the setup from the beginning.

@Joseph310
Copy link
Author

Joseph310 commented May 30, 2018

It is a fresh install - I havn't even seen the setup scripts. I don't have a config.ini.php in the folder. Should I edit the

[database_tests]
host = localhost
username = "@USERNAME@"

section of the global.ini.php?

@mattab
Copy link
Member

mattab commented May 31, 2018

Try re-upload all files, maybe some files were not uploaded correct. Thanks for reporting the typo, will be fixed in #13020

@mattab mattab closed this as completed May 31, 2018
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label May 31, 2018
@Joseph310
Copy link
Author

Tried that - same error. Can I copy/paste the config.ini.php from a different installation and modify it by hand, or do other files also get changed during the setup-process?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants