Page 1 of 1

Help, error after install

PostPosted: Wed May 06, 2009 1:51 am
by Skimenok
Warning: Missing argument 1 for dataface_actions_install::handle(), called in C:\xampp\htdocs\librariandb-0.2\dataface\dataface-public-api.php on line 63 and defined in C:\xampp\htdocs\librariandb-0.2\dataface\actions\install.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\librariandb-0.2\dataface\actions\install.php:33) in C:\xampp\htdocs\librariandb-0.2\dataface\actions\install.php on line 81

code between 33-84 lines
Code: Select all
   function handle(&$params){
      $app =& Dataface_Application::getInstance();
      if ( df_get_database_version() == df_get_file_system_version() ){
         header('Location: '.DATAFACE_SITE_HREF.'?--msg='.urlencode('The application database is up to date at version '.df_get_database_version()));
      if ( df_get_database_version() > df_get_file_system_version() ){
         header('Location: '.DATAFACE_SITE_HREF.'?--msg='.urlencode('The database version is greater than the file system version.  Please upgrade your application to match the version in the database (version '.df_get_database_version()));
      if ( file_exists('conf/Installer.php') ){
         $installer = new conf_Installer;
         $methods = get_class_methods('conf_Installer');
         $methods = preg_grep('/^update_([0-9]+)$/', $methods);
         $updates = array();
         foreach ($methods as $method){
            preg_match('/^update_([0-9]+)$/', $method, $matches);
            $version = intval($matches[1]);
            if ( $version > df_get_database_version() and $version <df_get_file_system_version>$method();
            if ( PEAR::isError($res) ) return $res;
            $res = mysql_query("update dataface__version set `version`='".addslashes($update)."'", df_db());
            if ( !$res ) trigger_error(mysql_error(df_db()), E_USER_ERROR);   
      $res = mysql_query("update dataface__version set `version`='".addslashes(df_get_file_system_version())."'", df_db());
      if ( !$res ) trigger_error(mysql_error(df_db()), E_USER_ERROR);
      header('Location: '.DATAFACE_SITE_HREF.'?--msg='.urlencode('The database has been successfully updated to version '.df_get_file_system_version()));

PostPosted: Wed May 06, 2009 3:52 pm
by shannah
not sure why this is happening. Try downloading the latest version of Xataface and replace the dataface folder (in you librariandb distribution) with the xataface that you download. (You'll need to rename the xataface-xx.xx.xx folder to dataface).