In my case the problem was a corrupted config.php due to the server disk being full. I’ve restored a backup and solved the problem. Thank to @erik09 and his post.