Skip to content

Can't configure Transitory Memory #1

@JoseM166

Description

@JoseM166

At first the bundle didn't work for me (the screen went blank); only exporting files at seemingly random times. Through logs I determined it was a memory issue ('not enough bytes allocated'), and so, I wrote in my .env the "TRANSITORY_MEMORY" variable; but for some reason it didn't recognized it ("Function name must be a string").

After looking through the files, I discovered an error in the "SymfonyEntityExporterAdmin">"transitoryMemory" function, originally...:

public function transitoryMemory() {
$transitoryMemory = self::DEFAULT_TRANSITORY_MEMORY;
if (isset($_ENV[self::TRANSITORY_MEMORY]) && !empty($_ENV[self::TRANSITORY_MEMORY])) {
$transitoryMemory = $_ENV(self::TRANSITORY_MEMORY);
}
ini_set('memory_limit', $transitoryMemory);
}

...the brackets of the line inside the if are not the right ones. The line...:

$transitoryMemory = $_ENV(self::TRANSITORY_MEMORY);

...worked when changed to...

$transitoryMemory = $_ENV[self::TRANSITORY_MEMORY];

That only works on local, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions