diff --git a/core/database.class.php b/core/database.class.php index 27805521..53abd16e 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -310,7 +310,7 @@ class Database { } $matches = array(); - if(CACHE_DSN && preg_match("#(memcache|apc)://(.*)#", CACHE_DSN, $matches)) { + if( defined("CACHE_DSN") && CACHE_DSN && preg_match("#(memcache|apc)://(.*)#", CACHE_DSN, $matches)) { if($matches[1] == "memcache") { $this->cache = new MemcacheCache($matches[2]); } diff --git a/install.php b/install.php index 09da4d33..a14c4c7a 100755 --- a/install.php +++ b/install.php @@ -1,7 +1,8 @@ - + +
Shimmie needs to be run via a web server with PHP support -- you appear to be either opening the file from your hard disk, or your - web server is mis-configured. + web server is mis-configured.
If you've installed a web server on your desktop PC, you probably
- want to visit the local web server.
+ want to visit the local web server.
+
Once you have created these folders, hit 'refresh' to continue."; + print "
Shimmie needs three folders in it's directory, 'images', 'thumbs', and 'data', + and they need to be writable by the PHP user.
+If you see this error, if probably means the folders are owned by you, and they need to be + writable by the web server.
+PHP reports that it is currently running as user: ".$_ENV["USER"]." (". $_SERVER["USER"] .")
+Once you have created these folders and/or changed the ownership of the shimmie folder, hit 'refresh' to continue.
"; exit; } } // }}} @@ -388,15 +428,22 @@ EOD; } } // }}} -function Database_user_deletion_fix() { +function Database_user_deletion_fix() { // {{{ try { - require_once "core/database.class.php"; $db = new Database(); - echo "Fixing user_favorites table...."; + if ($db->db->getAttribute(PDO::ATTR_DRIVER_NAME) !== 'mysql') { + echo "