Memory allocation error

Created on 12 May 2023, over 1 year ago
Updated 23 August 2024, about 1 month ago

Problem/Motivation

If you enable the option "Allow users to add existing entities." in the field's form display settings, chances are you might run into a memory allocation error due to the total number of entities which can be referenced.

Steps to reproduce

Depending on your memory limit and target entity type, you might reproduce the issue or not.

Proposed resolution

Apply the patch. you should instead use the getReferenceableEntities method and a limit to avoid running into timeouts, e.g. getReferenceableEntities($limit = 10).

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany tte

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024