8000 CartCollector throws 'No locale has been set and current locale is undefined' exception with new Doctrine option · Issue #17316 · Sylius/Sylius · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CartCollector throws 'No locale has been set and current locale is undefined' exception with new Doctrine option #17316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
loevgaard opened this issue Oct 23, 2024 · 2 comments
Labels
Bug Confirmed bugs or bugfixes. Dependencies Pull requests that update a dependency file

Comments

@loevgaard
Copy link
Contributor

Sylius version affected: 1.12

Description
I have this doctrine configuration:

# config/packages/doctrine.yaml
doctrine:
    orm:
        enable_lazy_ghost_objects: true

When those are enabled the \Sylius\Bundle\CoreBundle\Collector\CartCollector will trigger an exception like this:

image

Notice that it's a circular exception, but I figured out that it works when I set enable_lazy_ghost_objects to false.

I don't have much to go on here, and it may not be a bug in Sylius, but now I've reported it at least :|

@NoResponseMate
Copy link
Contributor

Hi Joachim 👋 ,

It's a known issue, at least it popped up on ResourceBundle some time ago.
AFAIR there's is no fix as of yet, but a solution proposal was opened in the meanwhile.

Some more refs:

Unfortunately, I don't know if we can actually do anything about it on our side since the problem apparently lies inside ORM's ProxyFactory 😕

@GSadee GSadee added Dependencies Pull requests that update a dependency file Bug Confirmed bugs or bugfixes. labels Oct 29, 2024
@GSadee
Copy link
Member
GSadee commented Dec 5, 2024

Hi! I am closing the issue as the problem is not on our side and we are unable to fix it here.

57B9
@GSadee GSadee closed this as completed Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes. Dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

3 participants
0