[Kobv-opus-tester] OPUS4, Upgrade, Zend, ini.php, Fehlermeldung

Grigoriev, Igor, Dr. igor.grigoriev at helmholtz-muenchen.de
Mit Feb 2 15:25:30 MET 2011


Liebe Kolleginnen und Kollegen,

wenn ich versuche unter SuSE SLES 11.0 upgrade opus3.4 auf opus4 durchzuführen bekomme ich folgende Fehlermeldung:

PHP Fatal error:  Uncaught exception 'Zend_Config_Exception' with message 'parse_ini_file(/var/local/opus4/opus4/application/configs/config.ini): failed to open stream: No such file or directory' in /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php:181

Wenn ic In ini.php aufmache, dann see ich, dass diese Fehlermeldung folgende Funktion liefert:

protected function _parseIniFile($filename)
    {
        set_error_handler(array($this, '_loadFileErrorHandler'));
        $iniArray = parse_ini_file($filename, true); // Warnings and errors are suppressed
        restore_error_handler();

        // Check if there was a error while loading file
        if ($this->_loadFileErrorStr !== null) {
            /**
             * @see Zend_Config_Exception
             */
            require_once 'Zend/Config/Exception.php';
            throw new Zend_Config_Exception($this->_loadFileErrorStr);
        }

        return $iniArray;
    }

Also fehlt Variable $filename, oder ini-Datei für Applikation.

Wie kann ich diese Datei für Zend-Skripten "sichtbar" machen?

Danke im Voraus für Antwort.


Mit freundlichen Grüßen

Igor Grigoriev
Helmholtz-Zentrum München


P.S.
Die ganze Ablauf bei dem Start opus3-migration.sh sieht so aus:

sh ./opus3-migration.sh -f /var/local/opus4/migration/opus3_dump.xml -p /var/local/opus4/migration/volltexte/
Clean workspace/files/* and workspace/log/import.log and workspace/tmp/* directory
Clean database
Dropping database: opus4
Creating database: opus4
Importing database schema file 'schema/opus400.sql'
Inserting file 'masterdata/000_insert_default_roles.sql'
Inserting file 'masterdata/001_insert_default_privileges.sql'
Inserting file 'masterdata/002_create_languages.sql'
Inserting file 'masterdata/004_create_user_accounts.sql'
Inserting file 'masterdata/010_create_collections_tables.sql'
Inserting file 'masterdata/011_create_collections_data.sql'
Inserting file 'masterdata/012_create_collections_constraints.sql'
Import institutes, collections and licenses
PHP Fatal error:  Uncaught exception 'Zend_Config_Exception' with message 'parse_ini_file(/var/local/opus4/opus4/application/configs/config.ini): failed to open stream: No such file or directory' in /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php:181
Stack trace:
#0 /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php(201): Zend_Config_Ini->_parseIniFile('/var/local/opus...')
#1 /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php(125): Zend_Config_Ini->_loadIniFile('/var/local/opus...')
#2 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(383): Zend_Config_Ini->__construct('/var/local/opus...', 'testing')
#3 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(130): Zend_Application->_loadConfig('/var/local/opus...')
#4 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(92): Zend_Application->setOptions(Array)
#5 /var/local/opus4/opus4/scripts/Opus3Migration_ICL.php(174): Zend_Application->__construct('testing', Array)
#6 {main}
  thrown in /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php on line 181
Import metadata and fulltext
PHP Fatal error:  Uncaught exception 'Zend_Config_Exception' with message 'parse_ini_file(/var/local/opus4/opus4/application/configs/config.ini): failed to open stream: No such file or directory' in /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php:181
Stack trace:
#0 /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php(201): Zend_Config_Ini->_parseIniFile('/var/local/opus...')
#1 /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php(125): Zend_Config_Ini->_loadIniFile('/var/local/opus...')
#2 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(383): Zend_Config_Ini->__construct('/var/local/opus...', 'testing')
#3 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(130): Zend_Application->_loadConfig('/var/local/opus...')
#4 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(92): Zend_Application->setOptions(Array)
#5 /var/local/opus4/opus4/scripts/Opus3Migration_Documents.php(213): Zend_Application->__construct('testing', Array)
#6 {main}
  thrown in /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php on line 181
PHP Fatal error:  Uncaught exception 'Zend_Config_Exception' with message 'parse_ini_file(/var/local/opus4/opus4/application/configs/config.ini): failed to open stream: No such file or directory' in /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php:181
Stack trace:
#0 /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php(201): Zend_Config_Ini->_parseIniFile('/var/local/opus...')
#1 /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php(125): Zend_Config_Ini->_loadIniFile('/var/local/opus...')
#2 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(383): Zend_Config_Ini->__construct('/var/local/opus...', 'testing')
#3 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(130): Zend_Application->_loadConfig('/var/local/opus...')
#4 /opt/Zend/ZendFramework-1.10.8/library/Zend/Application.php(92): Zend_Application->setOptions(Array)
#5 /var/local/opus4/opus4/scripts/SolrIndexBuilder.php(148): Zend_Application->__construct('testing', Array)
#6 {main}
  thrown in /opt/Zend/ZendFramework-1.10.8/library/Zend/Config/Ini.php on line 181
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://listserv.zib.de/mailman/private/kobv-opus-tester/attachments/20110202/98d955ea/attachment.html