T3Voila / templavoilaplus

TYPO3 Extension TemplaVoilà! Plus for TYPO3 8/9/10/11/12 LTS
https://extensions.typo3.org/extension/templavoilaplus/
GNU General Public License v2.0
26 stars 27 forks source link

Unhandled RuntimeException of reference index update #524

Closed jpmschuler closed 6 months ago

jpmschuler commented 1 year ago

using TVP 8.2.x-dev aed5032 on a 11LTS with PHP8.1:

Update index of table tt_content
--------------------------------

 29871/55160 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░]  54% 2 mins/3 mins 192.0 MiB

  [ RuntimeException ]
  Data structure file  could not be resolved to an existing file

Exception code: 1478105826

Exception trace:
#0 ()
   vendor/typo3/cms-core/Classes/Configuration/FlexForm/FlexFormTools.php:688
#1 TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools->parseDataStructureByIdentifier()
   vendor/templavoilaplus/templavoilaplus/Classes/Configuration/FlexForm/FlexFormTools8.php:135
#2 Tvp\TemplaVoilaPlus\Configuration\FlexForm\FlexFormTools8->parseDataStructureByIdentifier()
   vendor/templavoilaplus/templavoilaplus/Classes/Configuration/FlexForm/FlexFormTools8.php:171
#3 Tvp\TemplaVoilaPlus\Configuration\FlexForm\FlexFormTools8->traverseFlexFormXMLData()
   vendor/typo3/cms-core/Classes/Database/ReferenceIndex.php:479
#4 TYPO3\CMS\Core\Database\ReferenceIndex->getRelations()
   vendor/typo3/cms-core/Classes/Database/ReferenceIndex.php:306
[redacted]

Possibly an tt_content.tx_templavoilaplus_map value which isn't existing anymore, possibly easy to catch transparently or supply a better exception as soon as I find out the concrete reason.

opi99 commented 6 months ago

Hey @jpmschuler do you have a fix for this?

jpmschuler commented 6 months ago

Just the linked commit with Pokemon exception handling: https://github.com/jpmschuler/templavoilaplus/commit/1f62bc11d6d100146d8ad6dc6ec7234aec6ec3fe

But the error is based on broken data one can fix elsewhere (which I finally found after months), so perhaps just leave it as a reference and close for now.