DataObjects/Images.php
[Pman.Core] / UpdateDatabase.php
index 70693bb..452a9cb 100644 (file)
@@ -193,18 +193,29 @@ class Pman_Core_UpdateDatabase extends Pman
         }
         
         // ask all the modules to verify the opts
-        echo "Checi options\n";
+        echo "Checking options\n";
         $this->checkOpts($opts);
         
         $response = $this->curl("http://localhost{$this->local_base_url}/Core/UpdateDatabase/VerifyExtensions");
         $json = json_decode($response, true);
         
         if(empty($json['data']) || $json['data'] != 'DONE'){
-            echo $response. "\n";
+            echo "\nError: Missing php extensions:\n";
+            print_r($json['errorMsg']);
             echo "Please install the above extensions and restart the apache.\n";
             exit;
         }
         
+        echo "Checking Setup Requirements\n";
+        require_once 'Pman/Core/UpdateDatabase/VerifyConfig.php';
+        $sq = new Pman_Core_UpdateDatabase_VerifyConfig();
+        $ret = $sq->get($args, $opts);
+        
+        if(!empty($ret)){
+            echo implode("\n", $ret) . "\n";
+            sleep(30);
+        }
+        
         // do this first, so the innodb change + utf8 fixes column max sizes
         
         // this will trigger errors about freetext indexes - we will have to remove them manually.?