Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/hosting/nginx/www/maxlib.ru/public_html/fotogal/include/logger.inc.php:59 Stack trace: #0 /var/hosting/nginx/www/maxlib.ru/public_html/fotogal/include/logger.inc.php(59): fwrite(false, '<?php defined('...') #1 /var/hosting/nginx/www/maxlib.ru/public_html/fotogal/include/init.inc.php(172): log_write('Unable to conne...', 'logs/database.l...') #2 /var/hosting/nginx/www/maxlib.ru/public_html/fotogal/displayimage.php(19): require('/var/hosting/ng...') #3 {main} thrown in /var/hosting/nginx/www/maxlib.ru/public_html/fotogal/include/logger.inc.php on line 59