Skip to content
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

[Bug]: Reverse Object Relation PHP Fatal error: Allowed memory size #15246

Open
mackrais opened this issue May 22, 2023 · 3 comments
Open

[Bug]: Reverse Object Relation PHP Fatal error: Allowed memory size #15246

mackrais opened this issue May 22, 2023 · 3 comments

Comments

@mackrais
Copy link

Pimcore version

v10.5.19

Steps to reproduce

memory_limit => 256M

When you try to save a date object in which have a field Reverse Object Relation which are more than 1000 objects, you will receive an error

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes)

Expected / actual behavior

Save data object and ignore fields Reverse Object Relation

@mackrais mackrais added the Bug label May 22, 2023
@frithjof
Copy link
Contributor

frithjof commented May 24, 2023

confirmed on 10.5.23
it runs a full load of every related object during save which makes it very consuming on many relations to objects with a gallery inside

@github-actions
Copy link

Thanks a lot for reporting the issue. We did not consider the issue as "Priority" or "Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.

@NiklasBr
Copy link
Contributor

Got the same error in 10.6.9 (EOL I know, will try on 11 soon) on Reverse Object Relation fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants