Skip to content

Uncaught exception 'Symfony\Component\Intl\Exception\ResourceBundleNotFoundException' with message #38862

Open
@in-session

Description

@in-session

Preconditions and environment

  • 2.4.6-p6
  • New Relic ESI block Tracelog

Steps to reproduce

image

Expected result

Actual result

Uncaught exception 'Symfony\Component\Intl\Exception\ResourceBundleNotFoundException' with message 'The resource bundle "/htdocs/vendor/symfony/intl/Resources/data/currencies/de_DE.php" does not exist.' in htdocs/vendor/symfony/intl/Data/Bundle/Reader/PhpBundleReader.php:38

image

Additional information

If I look at the path, it should actually be htdocs/vendor/symfony/intl/Resources/data/currencies/de.php default language "de_DE" is used but symfony/intl expects "de".

public function getSymbol($currency = null, $locale = null): ?string
{
if ($currency === null && $locale === null) {
return $this->options['symbol'];
}
$params = $this->checkParams($currency, $locale);
if (!empty($params['currency'])) {
$locale = $this->displayLocale[$params['currency']] ?? $params['locale'];
$symbol = Currencies::getSymbol($params['currency'], $locale);
} else {
$symbol = Currencies::getSymbol($params['name'], $params['locale']);
}
return !empty($symbol) ? $symbol : null;
}

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrameworkComponent: CurrencySymbolIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.4.6-p6Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions