This article will explain you the cause(s) and solution(s) for this console error.
Error in console:
Error while fetching connection
The MySQL details filled in the Logblock configuration file are wrong or there is a problem with the MySQL server.
- Check your MySQL details and/or create a MySQL database. To create a MySQL database, use this article.
- The Logblock configuration file is located at "plugins/logblock/config.yml", in this file you can change your MySQL details. Make sure you put the details between quotes.