Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-1963

Tbx import fails when importing a file

    XMLWordPrintable

Details

    Description

      Problem

      On tbx import the tbx parser throws an exception and the import process is stopped only when the file is uploaded from the users itself.

      Additional fix

      Move the tbxparser -> saveFileLocal function before the file is parsed .

      Stack

      Level: FATALErrorcode: E1027Message: PHP E_ERROR: Uncaught Error: Call to a member function getId() on null in /webs/t5.XXXX.de/application/modules/editor/Models/Import/TermListParser/Tbx.php:802Domain: coreVersion: 3.3.2File (Line): /webs/t5.XXXX.de/application/modules/editor/Models/Import/TermListParser/Tbx.php (802)Request: PUT /editor/worker/217?cleanupSessionAfterRun=1Trace:     Stack trace:    #0 /webs/t5.XXXX.de/application/modules/editor/Models/Import/TermListParser/Tbx.php(492): editor_Models_Import_TermListParser_Tbx->handleDescrip()    #1 /webs/t5.XXXX.de/application/modules/editor/Models/Import/TermListParser/Tbx.php(379): editor_Models_Import_TermListParser_Tbx->handleTermEntry()    #2 /webs/t5.XXXX.de/application/modules/editor/Services/TermCollection/Connector.php(65): editor_Models_Import_TermListParser_Tbx->parseTbxFile(Array, '10')    #3 /webs/t5.XXXX.de/application/modules/editor/Services/Connector.php(163): editor_Services_TermCollection_Connector->addTm(Array, Array)    #4 /webs/t5.XXXX.de/application/modules/editor/Services/ImportWorker.php(72): editor_Services_Connector->__call('addTm', Array)    #5 /webs/t5.XXXX.de/application/modules/editor/Services/ImportWorker.php(55): editor_Services_ImportWorker->doImport()    #6 /webs/t5.XXXX.de/library/ZfExtended/Worker/Abstract.php(510): editor_Services_ImportWorker->work()    #7 /webs/t5.XXXX.de/library/ZfExtended/Worker/Abstract.php(459): ZfExtended_Worker_Abstract->_run()    #8 /webs/t5.XXXX.de/library/ZfExtended/Controllers/WorkerController.php(119): ZfExtended_Worker_Abstract->runQueued()    #9 /webs/mittagqi_meta/other/zend/Zend-z1-php7.3-1.13.2-p1/Zend/Controller/Action.php(516): ZfExtended_WorkerController->putAction()    #10 /webs/t5.XXXX.de/library/ZfExtended/Controllers/AAARestController.php(287): Zend_Controller_Action->dispatch('putAction')    #11 /webs/mittagqi_meta/other/zend/Zend-z1-php7.3-1.13.2-p1/Zend/Controller/Dispatcher/Standard.php(308): ZfExtended_RestController->dispatch('putAction')    #12 /webs/mittagqi_meta/other/zend/Zend-z1-php7.3-1.13.2-p1/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(REST_Controller_Request_Http), Object(Zend_Controller_Response_Http))    #13 /webs/mittagqi_meta/other/zend/Zend-z1-php7.3-1.13.2-p1/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()    #14 /webs/mittagqi_meta/other/zend/Zend-z1-php7.3-1.13.2-p1/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()    #15 /webs/t5.XXXX.de/library/ZfExtended/Application.php(47): Zend_Application->run()    #16 /webs/t5.XXXX.de/library/ZfExtended/BaseIndex.php(145): ZfExtended_Application->run()    #17 /webs/t5.XXXX.de/public/index.php(35): ZfExtended_BaseIndex->startApplication()    #18 {main}      thrown Request: Array(    [cleanupSessionAfterRun] => 1)
      

      Attachments

        Activity

          People

            aleksandar Aleksandar Mitrev
            aleksandar Aleksandar Mitrev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: