neos / neos-development-collection

The unified repository containing the Neos core packages, used for Neos development.
https://www.neos.io/
GNU General Public License v3.0
266 stars 222 forks source link

Translation errors cause 500s in backend #2863

Closed beheist closed 3 years ago

beheist commented 4 years ago

Description

And another one, after reporting #2862 I went down to 4.3.9. The installation runs through and the backend works, but if I access a menu item other than the actual content editor (eg Media Module), I get:

Argument 2 passed to Neos\Flow\I18n\Translator_Original::translateById() must be of the type array, int given, called in /Users/bastian/src/pers/oase/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_FluidAdaptor_ViewHelpers_TranslateViewHelper.php on line 139

Steps to Reproduce

  1. composer create-project neos/neos-base-distribution oase ~4.0
  2. Start dev server and do the setup normally
  3. Access the backend and click on the media module --> error.

Affected Versions

Neos 4.3.9 Neos 4.2.17

beheist commented 4 years ago

Update: Just tried out 4.2.17, it has the same issue. :/

albe commented 4 years ago

Could (big "could") be related to https://github.com/neos/neos-development-collection/pull/2856 respectively https://github.com/TYPO3/Fluid/issues/449

At least the translate viewhelper gets invoked with an argument argument that is evaluated as int, which hints at wrong fluid template parsing.

beheist commented 4 years ago

Hey, I just change the title since this also occurs in the newest version. Since this makes everything but content editing unusable, I think its rather critical.. is there a workaround of any sort maybe?

albe commented 4 years ago

Can you try merging in #2856 on your local setup and check if that solves it for you? Still curious if that Fluid bug is indeed the root issue.

albe commented 4 years ago

The PR above is now merged into dev-master of TYPO3 Fluid, so you can check it out by pulling that into your installation.

dlubitz commented 4 years ago

A fix of fluid has been released. Please check if this solves your issue and close the ticket. https://github.com/TYPO3/Fluid/pull/493#issuecomment-581378186