From 5114c1acc95bf6c00ff6a83bea1640e4607d57dd Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 1 Mar 2023 11:16:53 -0500 Subject: [PATCH] Fix possible Setup bug where it sometimes doesnt create the config.php and moves on. The hopeful fix is after creating config.php, sleep for 2 seconds which will wait for the file to be written fully to the filesystem before moving ahead. This issue could arrise with slow disks --- setup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.php b/setup.php index 1629649e..88ad76bb 100644 --- a/setup.php +++ b/setup.php @@ -806,6 +806,8 @@ if (isset($_POST['add_database'])) { file_put_contents("config.php", $new_config); + sleep(2); + include("config.php"); // Name of the file