in2code-de / lux

Living User eXperience - LUX - the Marketing Automation tool for TYPO3.

Home Page:https://www.in2code.de/produkte/lux-typo3-marketing-automation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TYPO3 v9: Invalid argument supplied for foreach() in [...]NamespaceDetectionTemplateProcessor.php line 180

vertexvaar opened this issue · comments

Hi,

i installed lux via composer in a freshly set up TYPO3 environment (composer require typo3/minimal).
Opening the "Analysis" or "Leads" module leads to teh following exception:

PHP Warning: Invalid argument supplied for foreach() in [...]/www/vendor/typo3fluid/fluid/src/Core/Parser/TemplateProcessor/NamespaceDetectionTemplateProcessor.php line 180

I tried to reproduce it but I was not able to see the error.
Installed typo3/minimal with 9.5 and latest lux (and typo3-console). After a db compare everything looks like it should in backend.
Any more information?

composer.json and lock file are attached.

What might be interesting for you: The default setting [SYS][exceptionalErrors] = 12290

I tried it again. Freshly installed typo3 minimal, created the empty start page during setup. Including the TypoScript does not change anything.

composer.zip

TYPO3 Version	9.5.8
Webserver	Apache/2.4.39 (Unix) OpenSSL/1.1.1b
PHP Version	7.3.5
Database (Default)	MySQL 5.7.25
Application Context	Development/Docker
Composer mode	Enabled
Operating System	Linux 5.0.0-20-generic

Screenshot from 2019-07-07 14-29-45

ok, turned exceptionalErrors to 12290, used your composer.lock and did a composer install.
I'm not able to run into that issue.
Same TYPO3 version (of course because of composer.lock), but PHP 7.2 and MySQL 5.7.26.

I can confirm that this warning only appears in PHP 7.3. PHP 7.2 works fine

ok, will test again with 7.3

Thx for pointing me to this issue. For whatever reason it's not possible any more to use inline JS in Fluid in PHP 7.3. I extracted everything to files now. See details in commit message.
Will be fixed in the upcoming version of lux.

4.1.1 just released with this fix