projectsend / projectsend

ProjectSend is a free, open source software that lets you share files with your clients, focused on ease of use and privacy. It supports clients groups, system users roles, statistics, multiple languages, detailed logs... and much more!
https://www.projectsend.org/
GNU General Public License v2.0
1.33k stars 303 forks source link

Uncaught TypeError: fwrite() #1274

Open Abhisheksha1553 opened 11 months ago

Abhisheksha1553 commented 11 months ago

Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /Applications/XAMPP/xamppfiles/htdocs/projectsend/includes/functions.php:168 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/projectsend/includes/functions.php(168): fwrite(false, '1691860387\n') #1 /Applications/XAMPP/xamppfiles/htdocs/projectsend/includes/updates.functions.php(18): get_json('https://project...', '-1 days') #2 /Applications/XAMPP/xamppfiles/htdocs/projectsend/includes/core.update.php(17): get_latest_version_data() #3 /Applications/XAMPP/xamppfiles/htdocs/projectsend/header.php(39): require_once('/Applications/X...') #4 /Applications/XAMPP/xamppfiles/htdocs/projectsend/dashboard.php(15): include_once('/Applications/X...') #5 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/projectsend/includes/functions.php on line 168

computid commented 4 months ago

I'm having the exact same issue. Has anybody found a resolution?

computid commented 4 months ago

FYI, this is caused by the directory permissions on /cache not being set correctly. I set them to 755 and it seems to work, but that's probably a bit loose.