Fallback if database.inc.php not working #1704

Open
opened 2026-10-05 00:53:33 +02:00 by adam · 0 comments
Owner

The fallback to display the content of the database configuration file to be written manually, if the install script can not write the file, is not working.

The script checks if the file could be opend, but even it could not, it tires to write to the file pointer, resulting in the error:
PHP Fatal error: Uncaught TypeError: fputs(): Argument #1 ($stream) must be of type resource, bool given in /xxx/www/install.php:328

After the fatal error, the execution of the script is canceled and the fallback to display the configuration settings to the user is not working.

The fallback to display the content of the database configuration file to be written manually, if the install script can not write the file, is not working. The script checks if the file could be opend, but even it could not, it tires to write to the file pointer, resulting in the error: `PHP Fatal error: Uncaught TypeError: fputs(): Argument #1 ($stream) must be of type resource, bool given in /xxx/www/install.php:328` After the fatal error, the execution of the script is canceled and the fallback to display the configuration settings to the user is not working. <!-- github-sync-id:1841940714 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1704