Generate error - Language warmup for production environment

Can anybody help me with this error I get during generating? (v2026)

Thx

All files generated (40.308 seconds)
Running composer update -n --no-audit --ansi...
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
Running php -d memory_limit=-1 bin/console app:cache:warmup-language --no-interaction
Error: Command failed: php -d memory_limit=-1 bin/console app:cache:warmup-language --no-interaction
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:882:11)
at execSync (node:child_process:954:15)
at global.Exec (C:\Users\xxx\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:512428)
at global.RunConsoleCommand (C:\Users\xxx\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:511547)
at global.WarmUpLanguage (C:\Users\xxx\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:511658)
at global.ClearCache (C:\Users\xxx\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:511728)
at C:\Users\xxx\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:538169
at {
status: 255,
signal: null,
output: [ null, null, null ],
pid: 25080,
stdout: null,
stderr: null
}
Running php -d memory_limit=-1 bin/console cache:clear --env=prod --no-debug
Error: Command failed: php -d memory_limit=-1 bin/console cache:clear --env=prod --no-debug
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:882:11)
at execSync (node:child_process:954:15)
at global.Exec (C:\Users\DiederikKunst\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:512428)
at global.ClearCache (C:\Users\DiederikKunst\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:511879)
at C:\Users\DiederikKunst\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:538169
at
at async main (C:\Users\DiederikKunst\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:537643) {
status: 255,
signal: null,
output: [ null, null, null ],
pid: 38196,
stdout: null,
stderr: null
}
Deleting C:\inetpub\wwwroot\Ikushu2026\var\cache\prod...
C:\inetpub\wwwroot\Ikushu2026\var\cache\prod deleted
Error: Generation completed with error(s), please scroll up (if necessary) to check error(s).

Loeschen Sie den Folder phpmaker2026 in C:\users\Your ... Name ...\AppData\Roaming

Dann zurueck zu PHPMaker2026, Dann template neu erzeugen lassen. Sollte dann funktionieren

(Delete the phpmaker2026 folder in C:\users\Your ... Name ...\AppData\Roaming. Then go back to PHPMaker2026 and regenerate the template. It should then work.)

Delete all files from your project file and generate all files again.

Still doesn’t work. Tried everything and all combinations.

My php log shows this:

[26-Nov-2025 09:43:05 Europe/Belgrade] PHP Parse error: syntax error, unexpected token "trait", expecting identifier in C:\inetpub\wwwroot\AxiaIkushu2026\src\Db\Entity\Trait.php on line 46
[26-Nov-2025 09:43:07 Europe/Belgrade] PHP Parse error: syntax error, unexpected token "trait", expecting identifier in C:\inetpub\wwwroot\AxiaIkushu2026\src\Db\Entity\Trait.php on line 46
[26-Nov-2025 09:50:09 Europe/Belgrade] 2025-11-26T09:50:09+01:00 [info] User Deprecated: Since symfony/framework-bundle 7.3: Not setting the "property_info.with_constructor_extractor" option explicitly is deprecated because its default value will change in version 8.0.
[26-Nov-2025 09:50:09 Europe/Belgrade] 2025-11-26T09:50:09+01:00 [critical] Uncaught Error: syntax error, unexpected token "trait", expecting identifier

I fixed it.

I had a table named ‘Traits‘ and PHPMaker can not handle that. I changed the name to PlantTrait and now I can generate my project.

Thx for thinking along.

Note that trait is PHP reserved word. If a table is named Traits, the entity class is the singular form, i.e. Trait. That is not supported by PHP.