Closed GoogleCodeExporter closed 9 years ago
Could you please post your $databases array?
Original comment by ian.aldr...@gmail.com
on 15 Apr 2011 at 3:22
$databases = array
(
array
(
"path"=> "../../folder/DbName.sqlite", //path to database file on server relative to phpliteadmin.php (this file you are editing)
"name"=> "DbName" //name of database to appear in application
),
array
(
"path"=> "../../folder/SF/Subfolder/Dbname.sqlite",
"name"=> "DbName"
)
);
Note: the phpliteadmin.php is located in:
/FOLDER/phpLiteAdmin/phpliteadmin.php
Original comment by fabrizio...@gmail.com
on 15 Apr 2011 at 3:37
Ah... I have figured out the problem.
If you want to temporarily fix it until v1.8.3 comes out (might be another day
-- we want to make sure there aren't any other bugs), open up phpliteadmin.php,
do a find and replace by replacing:
if(!file_exists($this->data["path"]) &&
!is_writable(dirname($this->data["path"]))) //make sure the containing
directory is writable if the database does not exist
with:
if(!file_exists($this->data["path"]) && !@mkdir(dirname($this->data['path']),
0755, true) && !is_writable(dirname($this->data["path"]))) //make sure the
containing directory is writable if the database does not exist
The problem was phpLiteAdmin checked to see if the directory was writable, when
that did absolutely no good because we already knew the directory doesn't exist
-- if it doesn't exist, it will never be writable. So now it will attempt to
create the directory, *then* check if it is writable.
Original comment by ian.aldr...@gmail.com
on 15 Apr 2011 at 3:59
Original issue reported on code.google.com by
fabrizio...@gmail.com
on 15 Apr 2011 at 9:01