Warning: fopen(.accesstoken): Failed to open stream: Permission denied in /var/www/quack.me/streambadge/twitchWrapper.php on line 42

Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/quack.me/streambadge/twitchWrapper.php:43 Stack trace: #0 /var/www/quack.me/streambadge/twitchWrapper.php(43): fwrite() #1 /var/www/quack.me/streambadge/twitchWrapper.php(32): TwitchApiClass\twitchWrapper->refreshToken() #2 /var/www/quack.me/streambadge/twitchWrapper.php(20): TwitchApiClass\twitchWrapper->getTokenFromFile() #3 /var/www/quack.me/streambadge/index.php(18): TwitchApiClass\twitchWrapper->__construct() #4 {main} thrown in /var/www/quack.me/streambadge/twitchWrapper.php on line 43