Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught TypeError: fclose(): #152

Closed
sevi4310 opened this issue Oct 30, 2023 · 2 comments
Closed

PHP Fatal error: Uncaught TypeError: fclose(): #152

sevi4310 opened this issue Oct 30, 2023 · 2 comments

Comments

@sevi4310
Copy link

sevi4310 commented Oct 30, 2023

I am on Debian 12, PHP8.2, Apache2
Did all instructions from:
https://fatg3erman.github.io/RompR/Installation-on-Linux-Alternative-Method.html
Getting this error (/var/log/apache2/error.log)
[Mon Oct 30 00:30:35.785374 2023] [php:warn] [pid 17771] [client 192.168.1.22:55731] PHP Warning: fopen(prefs/prefs.lock): Failed to open stream: No such file or directory in /var/www/html/rompr/includes/prefs.class.php on line 351
[Mon Oct 30 00:30:35.785709 2023] [php:error] [pid 17771] [client 192.168.1.22:55731] PHP Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/rompr/includes/prefs.class.php:352\nStack trace:\n#0 /var/www/html/rompr/includes/prefs.class.php(352): fclose()\n#1 /var/www/html/rompr/includes/prefs.class.php(409): prefs::lock_prefs()\n#2 /var/www/html/rompr/includes/prefs.class.php(440): prefs::save_prefs_file()\n#3 /var/www/html/rompr/includes/prefs.class.php(658): prefs::save()\n#4 /var/www/html/rompr/includes/vars.php(65): prefs::early_prefs_update()\n#5 /var/www/html/rompr/index.php(9): require_once('...')\n#6 {main}\n thrown in /var/www/html/rompr/includes/prefs.class.php on line 352
image

@fatg3erman
Copy link
Owner

Does your prefs directory exist, and does the webserver have write access?

@sevi4310
Copy link
Author

thanks Mark,
It works after adding
mkdir prefs
mkdir albumart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants