Help, error after install

A place to discuss and receive support for the Library DB application.

Help, error after install

Postby Skimenok » Wed May 06, 2009 1:51 am

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()));
         exit;
      }
      
      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()));
         exit;
      }
      
      if ( file_exists('conf/Installer.php') ){
         import('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()));
      exit;
      
   }
Skimenok
 
Posts: 2
Joined: Wed May 06, 2009 12:52 am

Postby shannah » Wed May 06, 2009 3:52 pm

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).

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Library DB Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved