Project

General

Profile

Actions

Bug #101815

closed

Error triggered in TYPO3\CMS\Core\ExpressionLanguage\Resolver

Added by Gratian Alinei about 1 year ago. Updated 6 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2023-08-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I get an error triggered at line 47 in TYPO3\CMS\Core\ExpressionLanguage\Resolver when trying to access the Analyze Database Structure in Install Tool. The site configuration has baseVariants.

$providers = GeneralUtility::makeInstance(ProviderConfigurationLoader::class)->getExpressionLanguageProviders()

ProviderConfigurationLoader needs 3 arguments in contructor.

(1/1) ArgumentCountError
Too few arguments to function TYPO3\CMS\Core\ExpressionLanguage\ProviderConfigurationLoader::__construct(), 0 passed in /var/www/html/vendor/typo3/cms-core/Classes/Utility/GeneralUtility.php on line 2969 and exactly 3 expected

Files

backtrace.pdf (81.9 KB) backtrace.pdf Gratian Alinei, 2023-08-31 14:39
Actions #1

Updated by Christian Kuhn about 1 year ago

This looks a bit fishy at first glance, afaik this install tool part should not load "TYPO3\CMS\Core\ExpressionLanguage\Resolver" at all.
Could you provide the full backtrace, please?

Actions #2

Updated by Christian Kuhn about 1 year ago

  • Status changed from New to Needs Feedback
Actions #3

Updated by Gratian Alinei about 1 year ago

Christian Kuhn wrote in #note-1:

Could you provide the full backtrace, please?

Actions #4

Updated by Andreas Kienast about 1 year ago

Did you by chance already try to flush caches? In that state, it's very likely you have to flush caches manually on the filesystem. Depending on the installation mode, the cache directory is either public/typo3temp/var/cache or var/cache.

Actions #5

Updated by Gratian Alinei about 1 year ago

I have flushed caches several times.

Actions #6

Updated by Stefan Bürk about 1 year ago

@Gratian Alinei

Looking through the attached "backtrace.pdf" it looks like the l10nmgr
is interfereing here in a event and try to loading a site for some
language constraints. And if the "yaml" file contains conditions (e.g
baseVariants) it loads the expression stuff and so on.

However, you are reporting this for TYPO3 v12 . looking into the (public)
repository and the TER there is no TYPO3 v12 compat version as far as I
can find.

Please try to remove l10nmanager and check if the error still occurs. If
yes it may be unrelated, if not - report it to the l10nmgr maintainer
referencing to this issue (and dropping here a reference to the issue in the
repository then).

Maybe, this pull-request in l10nmgr may help: https://github.com/CodersCare/l10nmgr/pull/31
Not tested thou.

If it works without l10nmgr report the issue here: https://github.com/CodersCare/l10nmgr/issues

Actions #7

Updated by Eric Harrer 7 months ago

I had the same problem in TYPO3 v12 and can confirm that it works without EXT:l10nmgr installed.

Actions #8

Updated by Georg Ringer 6 months ago

  • Status changed from Needs Feedback to Closed

closing issue as it is no core issue

Actions

Also available in: Atom PDF