From 467503fb2ad5904d9c4ef54bf20218937081f3a2 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 16 Feb 2015 12:56:39 +0100 Subject: [PATCH] added warnings on install script on file permissions if writing fails --- install/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/index.php b/install/index.php index 31c15f89..94cf50ac 100755 --- a/install/index.php +++ b/install/index.php @@ -68,7 +68,7 @@ else if (isset($_POST['install'])) { if ($_POST['db_engine'] == 'sqlite') { if (!copy('install/poche.sqlite', 'db/poche.sqlite')) { - $errors[] = 'Impossible to create the SQLite database file.'; + $errors[] = 'Impossible to create the SQLite database file. Please check your file permissions.'; } else { $db_path = 'sqlite:' . realpath('') . '/db/poche.sqlite'; @@ -160,7 +160,7 @@ else if (isset($_POST['install'])) { if (!copy('inc/poche/config.inc.default.php', 'inc/poche/config.inc.php')) { - $errors[] = 'Installation aborted, impossible to create inc/poche/config.inc.php file. Maybe you don\'t have write access to create it.'; + $errors[] = 'Installation aborted, impossible to create inc/poche/config.inc.php file. Maybe you don\'t have write access to create it. Check your file permissions.'; } else { if ($_POST['db_engine'] != 'sqlite') { $content = str_replace("define ('STORAGE', 'sqlite');", "define ('STORAGE', '".$_POST['db_engine']."');", $content); @@ -407,7 +407,7 @@ border: 1px solid #000;

Click here to finish update.
- If it fails, just delete the install directory. + If it fails, check your file permissions or just delete the install directory.

You may have to clear cache (by going into config screen) after update.

-- 2.41.0