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

Backend error on recalculation of the transFound transNotFound and transNotDefined

    XMLWordPrintable

Details

    • Critical
    • FIXED: problem popping when only translations are found but that's homonym ones

    Description

      Problem

      Since 7.5.0 release we are getting this error from multiple instances:

      message: TypeError: array_values(): Argument #1 ($array) must be of type array, null given
      
      HostName: insta360.translate5.net
         AppRoot: /var/www/instances-local/instance-1031
         Version: 7.5.0
      
                id: 845575
             level: ERROR
           created: 2024-05-21 14:25:46
             ecode: E9999
            domain: core
           message: TypeError: array_values(): Argument #1 ($array) must be of type array, null given
        appVersion: 7.5.0
       file (line):  ()
              Host: https://insta360.translate5.net
               URL: PUT https://insta360.translate5.net/editor/taskid/28544/segment/1027110?_dc=1716294344528&tab=1
              User: mathilde.morard (Mathilde Morard) ({e15fd350-eb93-4eb1-a84f-31668b0c8c46})
             Trace:     #0 /var/www/instances-local/instance-1031/application/modules/editor/Plugins/TermTagger/Processor/RecalcTransFound.php(376): array_values()
          #1 /var/www/instances-local/instance-1031/application/modules/editor/Plugins/TermTagger/Processor/RecalcTransFound.php(294): MittagQI\Translate5\Plugins\TermTagger\Processor\RecalcTransFound->getMarkBySrcIdA()
          #2 /var/www/instances-local/instance-1031/application/modules/editor/Plugins/TermTagger/Processor/RecalcTransFound.php(102): MittagQI\Translate5\Plugins\TermTagger\Processor\RecalcTransFound->recalc()
          #3 /var/www/instances-local/instance-1031/application/modules/editor/Plugins/TermTagger/Processor/Tagger.php(502): MittagQI\Translate5\Plugins\TermTagger\Processor\RecalcTransFound->recalcList()
          #4 /var/www/instances-local/instance-1031/application/modules/editor/Plugins/TermTagger/Processor/Tagger.php(219): MittagQI\Translate5\Plugins\TermTagger\Processor\Tagger->markTransFound()
          #5 /var/www/instances-local/instance-1031/application/modules/editor/Plugins/TermTagger/Processor/Tagger.php(208): MittagQI\Translate5\Plugins\TermTagger\Processor\Tagger->applyTaggingResult()
          #6 /var/www/instances-local/instance-1031/application/modules/editor/Plugins/TermTagger/QualityProvider.php(232): MittagQI\Translate5\Plugins\TermTagger\Processor\Tagger->process()
          #7 /var/www/instances-local/instance-1031/application/modules/editor/Segment/Quality/Manager.php(378): editor_Plugins_TermTagger_QualityProvider->processSegment()
          #8 /var/www/instances-local/instance-1031/application/modules/editor/Models/Segment/Updater.php(378): editor_Segment_Quality_Manager->processSegment()
          #9 /var/www/instances-local/instance-1031/application/modules/editor/Models/Segment/Updater.php(179): editor_Models_Segment_Updater->qaBeforeSegmentSaveOnSegmentUpdate()
          #10 /var/www/instances-local/instance-1031/application/modules/editor/Models/Segment/Updater.php(91): editor_Models_Segment_Updater->beforeSegmentUpdate()
          #11 /var/www/instances-local/instance-1031/application/modules/editor/Controllers/SegmentController.php(354): editor_Models_Segment_Updater->update()
          #12 /var/www/instances-local/instance-1031/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Editor_SegmentController->putAction()
          #13 /var/www/instances-local/instance-1031/library/ZfExtended/Controllers/AAARestController.php(349): Zend_Controller_Action->dispatch()
          #14 /var/www/instances-local/instance-1031/vendor/shardj/zf1-future/library/Zend/Controller/Dispatcher/Standard.php(308): ZfExtended_RestController->dispatch()
          #15 /var/www/instances-local/instance-1031/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
          #16 /var/www/instances-local/instance-1031/vendor/shardj/zf1-future/library/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch()
          #17 /var/www/instances-local/instance-1031/vendor/shardj/zf1-future/library/Zend/Application.php(400): Zend_Application_Bootstrap_Bootstrap->run()
          #18 /var/www/instances-local/instance-1031/library/ZfExtended/Application.php(75): Zend_Application->run()
          #19 /var/www/instances-local/instance-1031/library/ZfExtended/BaseIndex.php(170): ZfExtended_Application->run()
          #20 /var/www/instances-local/instance-1031/public/index.php(35): ZfExtended_BaseIndex->startApplication()
          #21 {main}

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: